Skip to content

Commit

Permalink
🎨 Simplify the route files
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Apr 1, 2024
1 parent 01f141b commit e4793b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
13 changes: 1 addition & 12 deletions routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
11 changes: 0 additions & 11 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit e4793b7

Please sign in to comment.