laravel sanctum
//install
composer require laravel/sanctum
// vendor
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
laravel sanctum
//install
composer require laravel/sanctum
// vendor
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
laravel sanctum
composer create-project --prefer-dist laravel/laravel appname
composer require laravel/sanctum
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
composer require laravel/jetstream
php artisan jetstream:install inertia
php artisan migrate
npm install
php artisan vendor:publish --tag=jetstream-views
php artisan serve
npm run hot
laravel sanctum
return $user->createToken('token-name', ['server:update'])->plainTextToken;
laravel sanctum issue token
use Illuminate\Http\Request;
Route::post('/tokens/create', function (Request $request) {
$token = $request->user()->createToken($request->token_name);
return ['token' => $token->plainTextToken];
});
sanctum laravel
composer require laravel/sanctum
sanctum laravel
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us