A
A
Aibek Zhaksybaev2017-09-07 15:42:55
Laravel
Aibek Zhaksybaev, 2017-09-07 15:42:55

How to create a sidebar in laravel?

How to create a sidebar in laravel where categories and latest news will be displayed in short widget type. I tried it through
View Composer and didn’t understand how to make queries to the database and then pass them to the view, I tried it through view: share, it only works, I don’t like what it passes to all views, but I only need the sidebar.
ps Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Frank, 2017-09-08
@Akellacom

How to make widgets in laravel?
Widget problem. What is the best way to organize widgets in Laravel 5.2?
https://github.com/arrilot/laravel-widgets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question