Clearing your router of comments
This commit is contained in:
parent
ecbb66b843
commit
4b5e3b81bc
@ -4,21 +4,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| API Routes
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Here is where you can register API routes for your application. These
|
|
||||||
| routes are loaded by the RouteServiceProvider within a group which
|
|
||||||
| is assigned the "api" middleware group. Enjoy building your API!
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
|
||||||
// return $request->user();
|
|
||||||
// });
|
|
||||||
|
|
||||||
Route::get('ping', function () {
|
Route::get('ping', function () {
|
||||||
return ['message' => 'pong'];
|
return ['message' => 'pong'];
|
||||||
});
|
});
|
||||||
|
@ -1,19 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Illuminate\Foundation\Inspiring;
|
use Illuminate\Foundation\Inspiring;
|
||||||
use Illuminate\Support\Facades\Artisan;
|
use Illuminate\Support\Facades\Artisan;
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Console Routes
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| This file is where you may define all of your Closure based console
|
|
||||||
| commands. Each Closure is bound to a command instance allowing a
|
|
||||||
| simple approach to interacting with each command's IO methods.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Artisan::command('inspire', function () {
|
Artisan::command('inspire', function () {
|
||||||
$this->comment(Inspiring::quote());
|
$this->comment(Inspiring::quote());
|
||||||
})->purpose('Display an inspiring quote');
|
})->purpose('Display an inspiring quote');
|
||||||
|
@ -1,17 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
declare(strict_types=1);
|
||||||
|
|
||||||
/*
|
use Illuminate\Support\Facades\Route;
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Web Routes
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Here is where you can register web routes for your application. These
|
|
||||||
| routes are loaded by the RouteServiceProvider within a group which
|
|
||||||
| contains the "web" middleware group. Now create something great!
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Route::name('admin.')->group(function () {
|
Route::name('admin.')->group(function () {
|
||||||
Route::namespace('Dashboard')->middleware('auth')->group(function () {
|
Route::namespace('Dashboard')->middleware('auth')->group(function () {
|
||||||
@ -50,6 +41,7 @@ Route::name('admin.')->group(function () {
|
|||||||
->name('destroy');
|
->name('destroy');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::name('auth.')->namespace('Auth')->group(function () {
|
Route::name('auth.')->namespace('Auth')->group(function () {
|
||||||
Route::get('login', 'LoginController@login')
|
Route::get('login', 'LoginController@login')
|
||||||
->name('login');
|
->name('login');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user