Open Tinker
sail artisan tinker
Create a variable for your API Class
$base = new ServiceProdiverAPI();
Call an API from your class
$base->api_get(‘users’);
Sanctum Generate Token
$user = App\Models\User::first();
$user->createToken(‘tokenName’);
Open Tinker
sail artisan tinker
Create a variable for your API Class
$base = new ServiceProdiverAPI();
Call an API from your class
$base->api_get(‘users’);
Sanctum Generate Token
$user = App\Models\User::first();
$user->createToken(‘tokenName’);