skip to Main Content

can't run laravel 5.7 on php8 – PHP Versions

hi guys I need help for this case I can't run laravel 5.7 on php8, when I do "php artisan serve" I got error: thrown in /var/www/html/myProject/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 838 PHP Fatal error: Uncaught ErrorException: Method ReflectionParameter::getClass() is deprecated in…

VIEW QUESTION

I call Controller and view through route first time but it show error like this – PHP Versions

home.php //controller <?php namespace AppHttpControllers; use IlluminateHttpRequest; class home extends Controller { public function index($home) { return view('home',['home'=>$home]); } } web.php Route::get('home/{home}',[home::class,'index']); home.blade.php {{home}} ErrorException Use of undefined constant home - assumed 'home' (this will throw an Error in a…

VIEW QUESTION
Back To Top
Search