Skip to content

Instantly share code, notes, and snippets.

@njxqlus
Last active June 6, 2021 11:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njxqlus/5396269ac5add0e0e71dfea5ac51ac3c to your computer and use it in GitHub Desktop.
Save njxqlus/5396269ac5add0e0e71dfea5ac51ac3c to your computer and use it in GitHub Desktop.
Laravel Voyager + Laravel Passport Routes
<?php
Route::group(['prefix' => 'admin'], function ()
{
Voyager::routes();
Route::post('logout', ['uses' => 'Auth\LoginController@logout'])->name('voyager.logout');
Route::post('login', ['uses' => 'Auth\LoginController@login'])->name('voyager.postlogin');
Route::get('login', ['uses' => 'Auth\LoginController@showLoginForm'])->name('voyager.login');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment