راکت

ترجمه راه حل رفع ارور

2 پاسخ

من از لاراول 5.7 استفاده میکنم موقعی که دستور php artisan optimize را میخام اجرا کنم ارور میگیرم
برای رفع ارور من راهکار زیر را پیدا کردم کسی میتونه بگه دقیقا این متن چی میگه؟

To find out where exactly the issue is, you can temporarily remove $this->files->delete($configPath); from vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigCacheCommand.php. By doing so bootstrap/cache/config.php does not get automatically deleted and you can look up the mentioned line (here 241) in the config.php file.
ثبت پرسش جدید

پاسخ‌ها

2
سینا شاه‌اویسی
سینا شاه‌اویسی
@sinashahoveisi

تخصص: برنامه نویس

فکر کنم این دستور رو بزنی درست بشه

php artisan config:cache
مجید
مجید
@MajidDeveloper

تخصص: Laravel-Nuxt

موضوع سر اینه که چه این دستور را بزنم چه دستور php artisan optimize ارور زیر را دارم.


LogicException : Your configuration files are not serializable.

at C:\\xampp\\htdocs\\laravel-course\\digistyle2\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\ConfigCacheCommand.php:71  
67| require $configPath;  
68| } catch (Throwable $e) {  
69| $this->files->delete($configPath);  
70|

> 71| throw new LogicException('Your configuration files are not serializable.', 0, $e);  
> 72| }  
> 73|  
> 74| $this->info('Configuration cached successfully!');  
> 75| }

Exception trace:

1 Error::("Call to undefined method Closure::setstate()")  
C:\\xampp\\htdocs\\laravel-course\\digistyle2\\bootstrap\\cache\\config.php:496

شاید پاسخ شما همین‌جا باشد

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام