dimanche 26 juin 2016

How to create a catch all url in Laravel 5

I am trying to create a catchall url that starts with the prefix "angular". How do I do this?

I tried the following but does not work:

Route::group(['prefix' => 'angular'], function () {
    Route::get( '{catchall}', function () {
        return "YES!"
    } )->where('catchall', '(.*)');
});



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28Wbsre
via IFTTT

Aucun commentaire:

Enregistrer un commentaire