LARAVEL 5.3 template Blade is not updating page

-2

Good morning.

I'm a beginner in the PHP Laravel framework and I have the following difficulty:

I write my html inside my .blade.php file and call it in a view on Route but the information I've updated in the code is not appearing in the browser, the page stays static without updating the new information even giving CTRL + F5, but if I take the extension .blade.php and leave only .php the information appears. I read several pages on the internet and several gave the solution of setting the 777 permission on the / storage folder inside my ubuntu server that is running apache2. Has anyone encountered this error recently and managed to give a solution to it?

Thank you.

    
asked by anonymous 14.09.2016 / 16:23

1 answer

1

You do not need to type .php or .blade.php in the URL to access a page, use only the name of the route that retorna (return) to view , for example;

Route::get('home/paginax', function(){
    return view('minhaview'); // Este é o nome do arquivo
});

Within your resources/views folder, create a file with the same name that you will use to make return .

minhaview.blade.php .

To access the page just use the url as in the example below;

meudominio.dev/home/paginax

    
14.09.2016 / 16:54