Skip to content
Snippets Groups Projects
Select Git revision
  • d810c62493fcbeb0b12df7037be4fa27755db523
  • main default protected
  • master
3 results

web.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    web.php 1.00 KiB
    <?php
    
    use Illuminate\Support\Facades\Auth;
    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::get('/', function () {
        return view('welcome');
    })->name('welcome');
    
    Auth::routes([
        'login'     => true,
        'logout'    => true,
        'register'  => true,
        'reset'     => true,
        'confirm'   => false,
        'verify'    => false
    ]);
    
    Auth::routes();
    
    Route::get('/home', 'HomeController@index')->name('home');
    
    Route::get('/templates/{template_id}', 'HomeController@showPopulationTemplate')->name('template.show');
    
    Route::get('/templates/{template_id}/populations/{population_id}', 'HomeController@showPopulation')->name('population.show');