Answer the question
In order to leave comments, you need to log in
Laravel blade templating engine - connect your controller?
Hello everyone
Is it possible to connect your controller to the layouts-name.blade template?
To register another time only include, add it to all pages of the site (for example, take footer.blade) and so that you don’t have to go into each model for each page of the site and register all changes
there
Answer the question
In order to leave comments, you need to log in
It's not entirely clear what you want, but I'll assume that you need a View Composer
Well, if you really want widgets, then here's https://github.com/arrilot/laravel-widgets
Laravel has
@include('layouts.article', ['mainTitle' => "404, page not found", 'mainContent' => "sorry, but the requested page does not exist :("])
or alternatively use arrilot/laravel-widgets, but it's not very comfortable to use, because if a complex widget is very monstrous
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question