home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

web.php (766B)


      1 <?php
      2 
      3 use Illuminate\Support\Facades\Route;
      4 
      5 /*
      6 |--------------------------------------------------------------------------
      7 | Web Routes
      8 |--------------------------------------------------------------------------
      9 |
     10 | Here is where you can register web routes for your application. These
     11 | routes are loaded by the RouteServiceProvider and all of them will
     12 | be assigned to the "web" middleware group. Make something great!
     13 |
     14 */
     15 
     16 //Route::view('/', 'welcome');
     17 Route::get('/', function () {
     18     return redirect('/dashboard');
     19 });
     20 
     21 Route::view('dashboard', 'dashboard')
     22     ->middleware(['auth', 'verified'])
     23     ->name('dashboard')->lazy();
     24 
     25 Route::view('profile', 'profile')
     26     ->middleware(['auth'])
     27     ->name('profile')->lazy();
     28 
     29 require __DIR__ . '/auth.php';