added jwt authentication token

This commit is contained in:
Abhishek Mali
2025-11-05 15:44:04 +05:30
parent dbe47a23c7
commit ccbef09484
9 changed files with 748 additions and 25 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* Define your route model bindings, pattern filters, and other route configuration.
*/
public function boot(): void
{
$this->routes(function () {
Route::prefix('api')
->middleware('api')
->group(base_path('routes/api.php'));
Route::middleware('web')
->group(base_path('routes/web.php'));
});
}
}