I have two tables news and comments. News can have many comments: //News public function comments()...
The timestamps are being filled in both the created_at and updated_at when a record is created in my...
when trying to extract some values from the database using the model object User I get the following...
when trying to extract some values from the database using the model object User I get the following...
I'm trying to learn the basics of Laravel 4 and I'm also new to programming so I'm trying to learn a...
$data['photos'] = Userdata::where('name', '=', 'main_photo')->orderBy('updated_at', 'desc')->p...
I have a API endpoint which should list all users who are members of an organisation. Users and Orga...
Hello, I am running into an issue regarding getting all the values from a pivot table. I have a pivo...
Hello, I am new to Laravel and have an issue in one of my models. I have the follwoing: class User e...
Hello i was wondering is there an easy way to describe table that corresponds to specific model like...
Hello, I have a database operation that saves a user in the database. After saving I will send an em...
For some reason I can't get any of my related models when using Eloquent ORM. I have the following s...
I want to add a foreign key field on mysql, but eloquent is making this difficult. When you do the f...
I have 2 tables: listings and listings_specifications Listings table id type status location specifi...
I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...
In Laravel there are these three things: Doctrine Eloquent Illuminate Can someone please provide m...
Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...
Laraphrases is a package for live editing phrases on websites. Github: https://github.com/orkhan/Lar...
This is probably very simple, in Laravel anyway :-) I have a table of products that I access a produ...
Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...
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