skip to Main Content

Error with mapping out routes to controller classes in Laravel

I am having an issue when trying to define my routes to controller classes in Laravel. My web.php route looks like this: use AppHttpControllersFrontendArticlesController as FrontEndArticlesController; Route::get('/articles/{article:slug}', [FrontendArticlesController::class, 'show']); The controller looks like this: namespace AppHttpControllers; use AppModelsArticle; use IlluminateHttpRequest;…

VIEW QUESTION

Take value execute class string – PHP

I have class for take values inside loop as this : $db_user->take_phone[1]; Inside loop I need take different values for the class $a=array("phone","name","street"); foreach($a as $aa) { echo $db_user->take_'$aa.'[1] } As you can see inside the loop I need to…

VIEW QUESTION
Back To Top
Search