Hi Cristian
This is the way I've been doing that...
First you create a middleware. Use php artisan like so:
php artisan make:middleware name
Then you will find the middleware file located here: app/Http/Middleware
Edit the middleware file and place the logic needed (role and other verifications)
You can find an example here: http://laravel.com/docs/master/middleware#defining-middleware
Then, you need to register it on the kernel file: app/Http/Kernel.php.
Here is an example from Laravel documentation:
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
];
The array key is name you are going to give to the middleware (and to be used on the routes) and the value references the class on the middleware file you created earlier.
You can then use the middleware on your routes file and group them as you like.
Route::get('admin/profile', ['middleware' => 'auth', function () {
//
}]);