Skip to content

Laravel-Moris/laradevs-api

Repository files navigation

Create User token

use App\Models\User;

$user = User::find(1);

$token = $user->createToken('my-token', [
    'create-developer',
    'read-developer',
    'update-developer',
    'delete-developer',
]);

$token->plainTextToken;

GET Developers

GET https://laradevs.test/api/v1/developers

use Illuminate\Support\Facades\Http;

$response = Http::withToken('<token here>')->get('https://laradevs.test/api/v1/developers');

$response->json();

Releases

No releases published

Packages

No packages published

Languages