PHP code example of mileswu / sanctum-auth-api
1. Go to this page and download the library: Download mileswu/sanctum-auth-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mileswu / sanctum-auth-api example snippets
return [
'model' => env('SANCTUM_AUTH_API_MODEL', 'App\Models\User'),
];
bash
php artisan vendor:publish --tag="sanctum-auth-api-config"