Answers for "laravel composer sanctum"

PHP
0

laravel sanctum

//install
composer require laravel/sanctum
  
// vendor
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
Posted by: Guest on August-15-2021
1

laravel sanctum

return $user->createToken('token-name', ['server:update'])->plainTextToken;
Posted by: Guest on July-24-2021
0

laravel composer sanctum

composer require laravel/sanctum
Posted by: Guest on October-30-2020
0

laravel sanctum

use App\Models\Sanctum\PersonalAccessToken;
use Laravel\Sanctum\Sanctum;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
}
Posted by: Guest on July-24-2021

Browse Popular Code Answers by Language