जब मैं आधिकारिक गाइड का उपयोग कर Laravel 5.1 से Laravel 5.2 के लिए हमारी मौजूदा परियोजना अद्यतन करने के लिए प्रयास करते हैं, मैं एक त्रुटि संगीतकार अद्यतन के बाद जब पोस्ट अद्यतनLaravel 5.1 5.2 उन्नयन त्रुटि के
php कारीगर स्पष्ट संकलित मिल
चलाया गया है। यहां त्रुटि है।
कक्षा रोशन \ फाउंडेशन \ संगीतकार मौजूद नहीं है
किसी को भी एक ऐसी ही समस्या थी गया है? जब मैं कोई स्क्रिप्ट ध्वज के साथ संगीतकार अद्यतन चलाता हूं तो यह नियमित रूप से अपडेट होता है, इसलिए यह स्पष्ट-संकलित पर एक समस्या है।
नीचे मेरे सेवा प्रदाता और मेरी संगीतकार.जेसन फ़ाइल हैं।
सेवा प्रदाता
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
// Illuminate\Redis\RedisServiceProvider::class,
Vetruvet\PhpRedis\PhpRedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Laravel\Socialite\SocialiteServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Torann\GeoIP\GeoIPServiceProvider::class,
Jenssegers\Agent\AgentServiceProvider::class,
Barryvdh\Debugbar\ServiceProvider::class,
composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"fzaninotto/faker": "^[email protected]",
"laravelcollective/html": "5.2.*",
"laravelcollective/remote": "~5.2",
"kriswallsmith/assetic": "^[email protected]",
"pda/pheanstalk": "^[email protected]",
"aws/aws-sdk-php-laravel": "~3.0",
"illuminate/http": "~5.2",
"illuminate/session": "~5.2",
"illuminate/support": "~5.2",
"nesbot/carbon": "~1.18",
"guzzlehttp/guzzle": "~5.3|~6.0",
"vetruvet/laravel-phpredis": "dev-master",
"predis/predis": "^[email protected]",
"laravel/socialite": "^[email protected]",
"intervention/image": "^[email protected]",
"brightcove/api": "^[email protected]",
"torann/geoip": "dev-master",
"graham-campbell/throttle": "~5.1",
"jenssegers/agent": "^[email protected]"
},
"require-dev": {
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"symfony/dom-crawler": "~3.0",
"symfony/css-selector": "~3.0",
"barryvdh/laravel-debugbar": "^[email protected]",
"laracasts/generators": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/nardev/laravel-vzaar.git"
}
],
"autoload": {
"classmap": [
"database",
"app/Models",
"app/Footgoll"
],
"files": [
"app/helpers.php"
],
"psr-4": {
"Myapp\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "dev",
"prefer-stable": true
}
जब मैं चलाने
ग्रेप राष्ट्रीय राजमार्ग -d recurse 'संगीतकार' बूटस्ट्रैप/ऐप्स/config/
यह लौटाया गया है:
बूटस्ट्रैप/autoload.php: 7: | संगीतकार ऑटो लोडर बूटस्ट्रैप/autoload.php पंजीकृत करें: 10: | संगीतकार एक सुविधाजनक, स्वचालित रूप से जेनरेट किया गया क्लास लोडर बूटस्ट्रैप/autoload.php प्रदान करता है: 42: | स्थानीय रूप से काम करते समय।
<?php define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for our application. We just need to utilize it! We'll require it | into the script here so that we do not have to worry about the | loading of any our classes "manually". Feels great to relax. | */ require __DIR__.'/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Include The Compiled Class File |-------------------------------------------------------------------------- | | To dramatically increase your application's performance, you may use a | compiled class file which contains all of the classes commonly used | by a request. The Artisan "optimize" is used to create this file. | */ $compiledPath = __DIR__.'/cache/compiled.php'; if (file_exists($compiledPath)) { require $compiledPath; } /* |-------------------------------------------------------------------------- | Register The Workbench Loaders |-------------------------------------------------------------------------- | | The Laravel workbench provides a convenient place to develop packages | when working locally. However we will need to load in the Composer | auto-load files for the packages so that these can be used here. | */ if (is_dir($workbench = __DIR__.'/../workbench')) { Xtwoend\Workbench\Starter::start($workbench); }
यह कार्यक्षेत्र के बारे में कुछ हो सकता है: हालांकि हम संगीतकार
यह कैसे autoload.php फ़ाइल लगता है कि है में लोड करने के लिए की आवश्यकता होगी?
अपडेट: 5.1 से विक्रेता/लार्वेल/फ्रेमवर्क/src/Illuminate/फाउंडेशन से Composer.php को वापस करने का वास्तव में एक भयानक फिक्स ऐप को सामान्य रूप से कार्य करने देता है लेकिन मुझे वास्तव में एक बेहतर समाधान की आवश्यकता है, जिसे उत्पादन पर धकेल दिया जा सकता है ।
मिले मैं एक ही समस्या आ रही है और यह भी एक समाधान के लिए देख रहा हूँ। – murze
नहीं, ऑटोलोड प्रासंगिक नहीं है। वे सिर्फ टिप्पणी हैं। Grep का कहना है कि 'संगीतकार' वर्ग का कोई संदर्भ नहीं है। मैं ईमानदारी से सोचता हूं कि 'compiled.php' फ़ाइल को हटाकर इसे ठीक किया गया है और आपको फिर से संगीतकार चलाने की आवश्यकता हो सकती है – andrewtweber
भावी पाठकों के लिए, आप [लैरवेल 5.1 से लैरवेल 5.2 तक अपग्रेड स्वचालित कर सकते हैं] (https://laravelshift.com/upgrade -laravel-5.1-टू-laravel-5.2)। –