From e4793b7aaef7bbc942ed2a7e214db204b07a5510 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 1 Apr 2024 11:46:28 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Simplify=20the=20route=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/console.php | 13 +------------ routes/web.php | 11 ----------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/routes/console.php b/routes/console.php index e05f4c9..eff2ed2 100644 --- a/routes/console.php +++ b/routes/console.php @@ -3,17 +3,6 @@ use Illuminate\Foundation\Inspiring; 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 () { $this->comment(Inspiring::quote()); -})->purpose('Display an inspiring quote'); +})->purpose('Display an inspiring quote')->hourly(); diff --git a/routes/web.php b/routes/web.php index e86bec8..53854eb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,16 +4,5 @@ use App\Livewire\Post\Show as PostShow; 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 and all of them will -| be assigned to the "web" middleware group. Make something great! -| -*/ - Route::get('/', Home::class)->name('home'); Route::get('/article/{post:slug}', PostShow::class)->name('post.show');