lundi 24 juillet 2017

How should I use route and view in laravel

I have started to learn laravel. I want to display test view on link click from welcome view, so I used

route method,

Route::get('AGE/',function() {
    return view('test');
});

In my welcome view I used

<a href="http://localhost:8000/AGE">Test</a>

to display testview.

I just want to know the way that I have used to perform required task is a good practice or not. If not please suggest me how to do so? Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire