The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.
This might be quite easy but have no idea how to. I have a table that can have repeated values …
laravel eloquent builderMy guess was to use the following syntax: MyModel::all()->delete(); But that did not work. I'm sure …
laravel laravel-4 eloquentI'm trying to upgrade my project L5.1 -> L5.2. In upgrade guide there's one thing which isn't clear for …
php laravel eloquent query-builder laravel-5.2This might be a simple question, but I cannot figure this out. I am trying to get a user by …
laravel eloquentHow can I retrieve the raw executed SQL query in Laravel 3/4 using Laravel Query Builder or Eloquent ORM? For example, …
php laravel orm eloquent laravel-query-builderIm trying to load my model in my controller and tried this: return Post::getAll(); got the error Non-static method …
php laravel eloquenti try to get results from table with multiple where and/or clauses. My SQL statement is: SELECT * FROM tbl …
sql laravel eloquent