Skip to content

Instantly share code, notes, and snippets.

@Tmeister
Created July 10, 2015 04:11
Show Gist options
  • Save Tmeister/cfa079d4b0dabe60e083 to your computer and use it in GitHub Desktop.
Save Tmeister/cfa079d4b0dabe60e083 to your computer and use it in GitHub Desktop.
<?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 controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('dashboard', ['middleware' => 'country:Mexico', function(){
return '<h1>Bienvenido!!</h1>';
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment