-
composer.json
Open in GitHub{ // "require": { "php": "^7.4|^8.0", // "laravel/sanctum": "^2.8" }, // }
-
app/Http/Kernel.php
Open in GitHubuse Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { // protected $middlewareGroups = [ // 'api' => [ \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, // ], ]; // }
-
app/Models/Users/User.php
Open in GitHubuse Laravel\Sanctum\HasApiTokens; use App\Notifications\Users\VerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements MustVerifyEmail { use HasApiTokens; // }