Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install sanctum

composer require laravel/sanctum

php artisan vendor:publish --provider="LaravelSanctumSanctumServiceProvider"

php artisan migrate


"!!!!!!Next, if you plan to utilize Sanctum to authenticate an SPA, you should add Sanctum's middleware to your api middleware group within your application's app/Http/Kernel.php file:!!!!!"
'api' => [
    LaravelSanctumHttpMiddlewareEnsureFrontendRequestsAreStateful::class,
    'throttle:api',
    IlluminateRoutingMiddlewareSubstituteBindings::class,
],
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install gulp 
Shell :: uninstall tensorflow 
Shell :: database already registered 
Shell :: python install mysql connector 
Shell :: stop all kubernetis pods 
Shell :: magento 2 check version command line 
Shell :: set git user name and user email 
Shell :: installing gnome tweak tool 
Shell :: roll back last commit in git 
Shell :: how to install pip in ubuntu 
Shell :: install react select 
Shell :: appcenter cli 
Shell :: create venv ubuntu 20.04 
Shell :: pip reinstall 
Shell :: how to clone from heroku 
Shell :: chromium for mac 
Shell :: android_home ubuntu 
Shell :: gzip folder with tar 
Shell :: delete local branch 
Shell :: git pull all branches at once 
Shell :: reset last commit without losing changes 
Shell :: how to install flatpak ubuntu 
Shell :: conda install tensorflow windows 
Shell :: apt-get update 
Shell :: git delete local branch no longer on remote 
Shell :: install webmin ubuntu 20.04 
Shell :: Error: Unable to resolve module `react-native-screens` from `node_modules/@react-navigation/bottom-tabs/src/views/BottomTabView.tsx`: react-native-screens could not be found within the project. 
Shell :: uninstall node js from ubuntu 
Shell :: how to remove go in ubuntu 
Shell :: mac find large folders 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =