Html with laravel 5.2 [closed]

3

I have a button in my index. I want to call another page like I do in laravel 5.2? Was it through the routes?

    
asked by anonymous 14.08.2016 / 01:05

1 answer

3

Correct is to use the structure of MVC going through Controller

In your View :

<a href="pagina">Ir</a>
...

In the routes.php file:

Route::get('pagina', 'SeuController@redireciona');

And in your YourController :

public function redireciona()
{
    //Manda para view responsável pela página
    return view('suaview');
}
    
14.08.2016 / 01:32