<?php /** * Shift-specific routing rules and filter definitions. */ Route::whenRegex('/^(?!install)/i', 'shift.account');
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ Route::whenRegex('/^(login)|(registro-profesor)|(recuperar-password)|(password.*)/', 'guest'); Route::whenRegex('/^(?!login)(?!registro-profesor)(?!recuperar-password)(?!password.*)/', 'auth'); Route::when('*', 'csrf', array('post', 'put', 'delete')); Route::get('/', function () { $vista = ""; switch (Auth::user()->rol) { case "profesor": $vista = "principal-p"; break; case "JDA": $vista = "principal-jda"; break; case "PDA": $vista = "principal-pda"; break; case "JDD": $vista = "principal-jdd"; break; case "subdirector":