I'm using migrate to add foreign key constraints to my tables and I want to link two columns that ar...
Hi, I have controller filters like those: <?php $stats = Stats::all(); $stats_today = $stats-...
I'm getting an error when I wanna insert a lot of items. How can I prevent this of being thrown? It...
i have two tables abc and def. i have models of these two tables named respectively Abc and Def. i A...
I'm trying make a function that returns false if there is no inventory available. I need it to searc...
This is my controller: public function prontuario_index(){ $Prontuarios = Prontuarios::get(15);...
I'm building a REST API for a large data set, and running into a performance issue I'm not sure how...
Hi, i call this somewhere in the CustomerController(): $results = CustomerModel::getCustomers(); Th...
I am new to laravel, please guide me in fetching data from database, i am able to show the data on t...
Hello, I'm hoping I can get help with a dilema I ran into. I hope it's something simple. I have a me...
Hi all, I have the following query: $posts = Post::where('category_id', '=', $category->id)...
Hello guys I have this problem. I have a Form that contains several pages (think a multiple step pol...
Hi, How do i list the table values which are stored on today date using the created at
I feel this may be a simple question; but I can't, for the life of me, figure this out. I'm relative...
I am experimenting with using Laravel for a new project and got stuck at the model definition stage....
I'm trying to deploy my app on google cloud but having some trouble. In my app.yaml i have env_v...
I am saving created_at and updated_at as Unix timestamp in DB. I have overridden my getDateFormat()...
Hey guys, I'm having a small problem regarding the combination of multiple eloquent based libraries....
Ok so I have a certifications table which can have many employees or materials. Also the employees a...
Is there a way to create migration files for existing tables quickly?
Solutions given in the past year. Excluding solutions from thread authors.
The Laravel portal for problem solving, knowledge sharing and community building.
The community