Hi Guys, i have a problem with my table structure and the query builder, as i am not able to build t...
When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...
I'm not 100% sure if this is a bug in Ardent or Laravel, but I cannot seem to get the email validati...
I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...
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...
Hello i was wondering is there an easy way to describe table that corresponds to specific model like...
Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...
Hey guys, I have this working controller, that I would like to clean up if possible, since i am sure...
I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...
I have a simple query like this: $userIdLists = Users::whereIn('id', $idList)->select(array('id')...
I'm trying to make simple example of reading data from multiple sources, storing that data in associ...
Hello, I would like to know some suggestion about using using mongodb with laravel4. thanks.
Hi, I have 3 tables in my database listings (id, title) categories (id, name, parent_id) category_l...
$data = array( 'name' => Input::get('name') 'itemCart' => Cart::conte...
Hi. I'm replacing old system to new laravel based one. There are many Database-Servers and tables, a...
I'm not using the auto increment for the id instead i'm using the 32 char unique id. So when i creat...
Hey! I'm trying to build a simple json api where some attributes are of type boolean. The problem is...
I have a post table and that post may be included in multiple sections so now I have 3 tables: post...
I want to use the created_at, updated_at and deleted_at fields with unix timestamp.
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