lundi 10 juin 2019

How to redirect homepage for any path except my targeted one?

I can redirect to home.blade.php for anything after '/' this path. But i need to redirect home.blade.php file for any path except '/text' path. how can i solve this ?

I have used bellows code for redirection after hitting anything.

@php
    Route::get('/{any}', function(){
        return view('home');
    })->where('any', '.*');
@endphp



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire