Framework Laravel

Asked

Viewed 77 times

-1

I’m new with Laravel Framework 5.3 and can’t change the default index, which is the file /Resources/views/welcome.blade.php.

I tried two things:

  1. Change the default file;
  2. Create a new file and swap the route in /routes/web.php.

In these two paths, the page remained the same.

  • How was the attempt to change the default file? What did you do? And the route you tried to create, what was it like? Add more details and relevant code snippets! Use the [Edit] link above.

2 answers

1

and I can’t change the default index, which is the /Resources/views/Welcome.blade.php file.

You changed the welcome.blade.php, saved after changing, and the change did not appear when updating the browser? And in the other option, you created a file nome_novo.blade.php in the views directory and added the route using nome_novo?

0

Go to the file containing the routes:

application/Routes.php

and set the controller to redirect to your view

    Route::get('/', function()
{
    // controller para seu template
});

Browser other questions tagged

You are not signed in. Login or sign up in order to post.