The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.
What laravel says: $books = App\Book::with('author.contacts')->get(); What I need is something like this $books = …
laravel eloquent eager-loadingI have created a method in my User model to upload a poster (with intervention)for the user: /** * Store user's …
laravel eloquent request image-uploading interventionNot sure if this is possible but im trying to run array_unique over a collection of items i have, …
php laravel laravel-4 eloquent array-uniqueI'm creating a row in pivot table using the following attach statement. $music = Music::find(1); $music->users()->…
laravel laravel-4 eloquentSo, I'm receiving the following error from Laravel framework; but I couldn't find why this framework is producing this error: …
mysql laravel eloquent laravel-4 relationshipI have a model Role which belongs to many Users. Class Role { public $fillable = ["name"]; public function users() { return $this-&…
php mysql laravel eloquent relationship