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?
Should this work to see if a row does or doesn't exist? $exists = DB::table('roles')->where('nam...
Hi. I have a user with countries relationship. (hasMany) user_id 1 country_id 1 user_id 1 country_i...
Hello all, I've been struggling with a strange behaviour when trying to load partial information fro...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community