Created
July 8, 2015 13:56
-
-
Save helmerdavila/7577758355aac3b4100e to your computer and use it in GitHub Desktop.
Laravel para Diseño
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//donde se pone la vista se genera una ruta | |
Route::group(['middleware' => 'auth'], function () { | |
Route::get('{view}', function ($view) { | |
try { | |
return view($view); | |
} catch (\Exception $e) { | |
abort(404); | |
} | |
})->where('view', '.*'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment