jcadima
12/11/2017 - 10:19 PM

Laravel Route except specific string


<?php

Route::get('{slug}', 'PagesController@view')->name('page.view')
->where( 'slug' , '^((?!laravel-filemanager).)*$' );


/*
this route will be useful when we need to ommit a specific route

*/