Skip to content

Instantly share code, notes, and snippets.

View tobyokeke's full-sized avatar

Toby Okeke tobyokeke

View GitHub Profile
<?php
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
...
'scopes' => CheckForAllScopes::class,
];
@tobyokeke
tobyokeke / api.php
Last active March 17, 2021 06:02
Laravel Multi-Auth
<?php
Route::group(['prefix' => 'v1'],function(){
//general unauthenticated routes here
Route::group(['prefix' => 'customer'],function(){
Route::post('sign-up','CustomerController@signUp');
//unauthenticated routes for customers here