How to display statistics from a database in laravel?
I connected a template for displaying information to all pages.
The question remains - how to transfer data from the database to this template?
Thank youLaravel Violet Turner, Aug 20, 2020
Docks https://laravel.com/docs/8. x / views # sharing-data-wi ...Anonymous
Get data from the database.
Pass them to the template in the controller.
Output in the template.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!