dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.32k stars 1.25k forks source link

Laravel Sanctum Spa Auth Provider #1742

Open qazz92 opened 3 years ago

qazz92 commented 3 years ago

in config/api.php

'auth' => [ 'sanctum' => \Dingo\Api\Auth\Provider\SanctumSPA::class ],

specialtactics commented 3 years ago

Hey thanks @qazz92 - would you mind just also listing some install instructions? I see there is that middleware in api.php config, is there anything else if someone wants to use it?

danieltharp commented 3 years ago

While this is a needed enhancement for the package I personally don't like some of the details of implementation, like commented code in the config/api.php file instead of adding it to the wiki as documentation. If this omitted that and the unnecessary change to the composer.json file and added the relevant info to the Wiki, it would be great.