skip to Main Content

Laravel Namespace Resource Controller Routing

I was working on a laravel project. The following is the code of my UserController: <?php namespace AppHttpControllersBackendAdminUsers; use AppModelsUser; use IlluminateHttpRequest; use SpatiePermissionModelsRole; use AppHttpControllersController; use IlluminateSupportFacadesSession; use AppRepositoriesInterfacesUserRepositoryInterface; class UserController extends Controller { protected $userRepository; public function __construct(UserRepositoryInterface…

VIEW QUESTION

Laravel 9 Route [login] not defined

api.php file:- <?php use AppHttpControllersUserController; use IlluminateHttpRequest; use IlluminateSupportFacadesRoute; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which…

VIEW QUESTION

Laravel 8 – friendly url that call multiple controllers depending on match (products, categories, pages) – How to design it? – SEO

i would like to build a route that catch clean seo friendly url and call correct controller to display page. Examples: https://mypage.com/some-friendly-url-separated-with-dashes [PageController] https://mypage.com/some-cool-eletronic-ipod [ProductController] https://mypage.com/some-furniture-drawers [CategoryController] So I have in app route: Route::get('/{friendlyUrl}', 'RouteController@index'); Each friendly url is a…

VIEW QUESTION
Back To Top
Search