config/sanctum.php

tailadmin-laravel · config/sanctum.php · php · MIT
auth

sanctum.php from sinan-aydogan/tailadmin-laravel

// Source: https://github.com/sinan-aydogan/tailadmin-laravel | License: MIT | Copyright 2021 Sinan AYDOĞAN
// Provided via justclaw.it.com; keep this notice with the code.
<?php

use Laravel\Sanctum\Sanctum;

return [

    /*
    |--------------------------------------------------------------------------
    | Stateful Domains
    |--------------------------------------------------------------------------
    |
    | Requests from the following domains / hosts will receive stateful API
    | authentication cookies. Typically, these should include your local
    | and production domains which access your API via a frontend SPA.
    |
    */

    'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
        '%s%s',
        'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key