Skip to content

Commit f2b65b6

Browse files
update web route
1 parent cabf0cc commit f2b65b6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

routes/web.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Illuminate\Support\Facades\Artisan;
34
use Illuminate\Support\Facades\Route;
45
use Inertia\Inertia;
56

@@ -13,5 +14,13 @@
1314
})->name('dashboard');
1415
});
1516

16-
require __DIR__.'/settings.php';
17-
require __DIR__.'/auth.php';
17+
require __DIR__ . '/settings.php';
18+
require __DIR__ . '/auth.php';
19+
20+
21+
// Not recommended in production
22+
23+
Route::get('fresh', function () {
24+
Artisan::call('migrate:fresh --seed');
25+
return back();
26+
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy