Skip to content

Tag: laravel

Laravel – Set global variable from settings table

I’m trying to store all my settings from my settings table into a global variable, but I’m stucked now(I have no idea what’s the next step), this is my actual model and seeder: model – Settings.php seeder – SettingsTableSeeder.php How can I store all the data inside the settings …

How do I get a list of all models in Laravel?

I would like to find a list of all models, database tables as a backup, in a Laravel project. I want to do this to build a dashboard that displays the way data in all of the models has changed over time, I.E. if there is a user model, how many users have been added or modified each day for

How to print the sql count in a view?

I have this But I don’t know how to print the result in a view ? Answer The select method will always return an array of results. To print the count: To print the result in a view you have to pass a variable: Then print the result in your view: To get more details about the database with Laravel,