What I solved:
following Richard’s idea follows my structure:
views
--layouts
----master.blade.php(estrutura do html)
----sections (alteração minha)
------sidebar.blade.php
------header.blade.php
------footer.blade.php
------styles.blade.php
------scripts.blade.php
------navigation.blade.php
------content.blade.php (será usado para carregar a view que a rota definir)
------alerts.blade.php
My final question was whether I could set a template for a controller instead of using USE in each view. Here’s the answer to my question:
http://laravel.com/docs/4.2/templates
class UserController extends BaseController {
/**
* The layout that should be used for responses.
*/
protected $layout = 'layouts.master';
/**
* Show the user profile.
*/
public function showProfile()
{
$this->layout->content = View::make('user.profile');
}
}
Thanks a lot.
I recommend using this plugin for managing templates: https://github.com/teepluss/laravel-theme
– juniorb2ss