Laravel Sanctum provides a featherweight authentication system for single page applications, mobile applications, and simple, token based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform.
composer require laravel/sanctum and composer update
Next, you should publish the Sanctum configuration and migration files using the vendor:publish Artisan command.
I’m a big fan of Amazon Lightsail, I find it better than others for WordPress sites. Recently I was trying to redirect one of my WordPress websites, www traffic to non-www by updating .htaccess file but nothing was working.