The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.
I am running the following code, if( $organisation->save() ) { if(isset($members)) { $organisation->users()->sync($members); } …
php laravel eloquent relationshipsLet's say I have three tables (this is just an example): users user_id username roles role_id name user_…
php laravel filtering eloquent pivot-tableTrying to add new property to existing collection and access that. What I need is something like: $text = Text::find(1); //…
laravel laravel-5 eloquent laravel-5.2 laravel-collectionI have two tables: categories and videos, I then have a pivot table for these as it's a belongsToMany relationship. …
php mysql laravel eloquent has-and-belongs-to-manyThere is a query I use to run in mysql : select * from my_table where $val between col1 and coL2; …
php mysql laravel eloquent query-builderIs there a way to merge 2 relationships in laravel? this is the way it's setup now, but Is there a …
php laravel-4 eloquent relationshipsI am trying to access the child objects of nested relationships that return many results from the parents object. Let's …
laravel nested eloquent relationshipsIn Laravel 4; I have model Project and Part, they have a many-to-many relationship with a pivot table project_part. The …
laravel laravel-4 eloquent relationships