skip to Main Content

How to change the default home path in Laravel 11?

<?php namespace AppProviders; use IlluminateCacheRateLimitingLimit; use IlluminateFoundationSupportProvidersRouteServiceProvider as ServiceProvider; use IlluminateHttpRequest; use IlluminateSupportFacadesRateLimiter; use IlluminateSupportFacadesRoute; class RouteServiceProvider extends ServiceProvider { /** * The path to your application's "home" route. * * Typically, users are redirected here after authentication. * *…

VIEW QUESTION

Laravel 11 Middleware route group api doesnt work

I have a api project with Laravel 11, and i want to make a middleware for admin api. AdminMiddleware.php (custom middleware) <?php namespace AppHttpMiddleware; use Closure; use IlluminateHttpRequest; use IlluminateSupportFacadesAuth; use SymfonyComponentHttpFoundationResponse; class AdminMiddleware { /** * Handle an incoming…

VIEW QUESTION

Laravel : JWT Auth access auth()->user() return null

i am trying to use JWT for api authentication i am building, i have managed to get the JWT token with code like the following. $user = User::select('id_user', DB::raw('AES_DECRYPT(id_user, "nur") as username')) ->where('id_user', DB::raw('AES_ENCRYPT("' . $credentials['username'] . '", "...")')) ->where('password',…

VIEW QUESTION
Back To Top
Search