Gang Of Coders
Home
About Us
Contact Us
All Eloquent Solutions on Gang of Coders
Total of 121 Eloquent Solutions
How to update column value in laravel
Laravel
Laravel 4
Eloquent
What is the difference between BelongsTo And HasOne in Laravel
Php
Laravel
Laravel 5
Eloquent
Eloquent: find() and where() usage laravel
Php
Eloquent
Laravel 5.3
How to check if a record is new in Laravel?
Laravel
Eloquent
Select all from table with Laravel and Eloquent
Php
Mysql
Laravel
Laravel 4
Eloquent
Truncate a table in Laravel 5
Php
Laravel
Laravel 5
Eloquent
How to set a default attribute value for a Laravel / Eloquent model?
Php
Model
Laravel
Laravel 4
Eloquent
laravel migration re-organising column order
Laravel 4
Eloquent
Fluent
Eloquent column list by key with array as values?
Php
Laravel
Laravel 4
Eloquent
Laravel Recursive Relationships
Php
Laravel
Eloquent
laravel updateOrCreate method
Php
Jquery
Forms
Laravel
Eloquent
How do you check "if not null" with Eloquent?
Laravel
Eloquent
Saving related records in laravel
Laravel
Laravel 4
One to-Many
Eloquent
Laravel how to get query with bindings?
Laravel
Eloquent
PHPStorm is not recognizing methods of my Model class in Laravel 5.0
Php
Laravel
Model
Eloquent
Phpstorm
How to Use Order By for Multiple Columns in Laravel 4?
Php
Laravel
Laravel 4
Eloquent
Laravel Query-Builder
Get Specific Columns Using “With()” Function in Laravel Eloquent
Php
Laravel
Orm
Eloquent
Laravel Query-Builder
How is a pivot table created by Laravel?
Laravel
Pivot Table
Laravel 4
Eloquent
Laravel Migration Change to Make a Column Nullable
Laravel
Laravel 5
Eloquent
Nullable
Laravel Migrations
Laravel Eloquent with and find
Laravel
Eloquent
Laravel Model with Two Primary Keys update
Php
Laravel
Laravel 5
Eloquent
Composite Primary-Key
Laravel Eloquent: Ordering results of all()
Laravel
Laravel 4
Eloquent
Sql Order-By
Add a custom attribute to a Laravel / Eloquent model on load?
Php
Orm
Laravel
Eloquent
Laravel 4: how to "order by" using Eloquent ORM
Php
Laravel
Laravel 4
Eloquent
Disable Laravel's Eloquent timestamps
Php
Laravel
Eloquent
Migration: Cannot add foreign key constraint
Laravel
Laravel 4
Foreign Keys
Migration
Eloquent
How to select specific columns in laravel eloquent
Laravel
Laravel 5
Orm
Eloquent
Select Last Row in the Table
Laravel
Eloquent
Bulk Insertion in Laravel using eloquent ORM
Php
Laravel
Eloquent
What does "Mass Assignment" mean in Laravel?
Php
Laravel
Eloquent
Mass Assignment
Automatically deleting related rows in Laravel (Eloquent ORM)
Php
Laravel
Eloquent
Eloquent Relationship
Laravel Eloquent "WHERE NOT IN"
Laravel
Laravel 4
Eloquent
How to insert multiple rows from a single query using eloquent/fluent
Php
Sql
Laravel
Eloquent
How to delete all the rows in a table using Eloquent?
Laravel
Laravel 4
Eloquent
Get the Query Executed in Laravel 3/4
Php
Laravel
Orm
Eloquent
Laravel Query-Builder
How to alias a table in Laravel Eloquent queries (or using Query Builder)?
Php
Laravel
Laravel 4
Eloquent
Creating and Update Laravel Eloquent
Php
Laravel
Eloquent
Laravel Query-Builder
Laravel Check If Related Model Exists
Php
Laravel
Laravel 4
Eloquent
Laravel 5
How do I get the query builder to output its raw SQL query as a string?
Php
Sql
Laravel
Eloquent
Laravel Query-Builder
How to do this in Laravel, subquery where in
Php
Mysql
Laravel
Eloquent
Subquery
Eloquent - where not equal to
Laravel
Eloquent
Laravel Eloquent groupBy() AND also return count of each group
Laravel
Laravel 4
Eloquent
How to Make Laravel Eloquent "IN" Query?
Php
Laravel
Orm
Eloquent
Laravel Eloquent Sum of relation's column
Php
Laravel
Eloquent
Relation
Laravel Pagination links not including other GET parameters
Pagination
Laravel
Laravel 4
Eloquent
Blade
Retrieve Laravel Model results based on multiple ID's
Php
Laravel
Eloquent
Zend Search-Lucene
Relevance
Is there a way to "limit" the result with ELOQUENT ORM of Laravel?
Mysql
Laravel
Eloquent
Sql Limit
Property [title] does not exist on this collection instance
Php
Laravel
Eloquent
Properties
Managing relationships in Laravel, adhering to the repository pattern
Oop
Laravel
Laravel 4
Repository Pattern
Eloquent
How to select from subquery using Laravel Query Builder?
Sql
Laravel
Laravel 4
Eloquent
Query Builder
Laravel. Use scope() in models with relation
Laravel
Laravel 4
Eloquent
Eloquent get only one column as an array
Php
Laravel
Eloquent
Laravel where on relationship object
Php
Laravel
Eloquent
Relationship
Where Clause
How to get distinct values for non-key column fields in Laravel?
Laravel
Eloquent
Builder
Laravel Eloquent - distinct() and count() not working properly together
Laravel
Count
Eloquent
Distinct
How to Merge Two Eloquent Collections?
Php
Laravel
Eloquent
Laravel Collection
Preventing Laravel adding multiple records to a pivot table
Php
Laravel
Laravel 4
Eloquent
Laravel Eloquent - Get one Row
Laravel
Eloquent
How to Create Multiple Where Clause Query Using Laravel Eloquent?
Php
Laravel
Eloquent
Laravel Query-Builder
How to get all rows (soft deleted too) from a table in Laravel?
Php
Laravel
Laravel 4
Eloquent
Clone an Eloquent object including all relationships?
Laravel
Laravel 4
Clone
Eloquent
Laravel Eloquent limit and offset
Laravel
Eloquent
Limit
Offset
Laravel Eloquent: How to get only certain columns from joined tables
Php
Laravel
Eloquent
Laravel, sync() - how to sync an array and also pass additional pivot fields?
Php
Laravel
Pivot
Eloquent
Sync
Laravel Eloquent update just if changes have been made
Php
Laravel
Eloquent
Laravel save / update many to many relationship
Laravel
Laravel 4
Eloquent
Relationship
Laravel 5.2 - Use a String as a Custom Primary Key for Eloquent Table becomes 0
Php
Mysql
Laravel
Laravel 5
Eloquent
Change default primary key in Eloquent
Laravel 4
Eloquent
Eloquent ORM laravel 5 Get Array of ids
Php
Laravel
Laravel 5
Eloquent
Model
Laravel Eloquent where field is X or null
Php
Laravel
Eloquent
Laravel Eloquent vs DB facade: Why use Eloquent and decrease performance?
Laravel
Performance
Eloquent
Orm
Query Builder
Why I'm getting 'Non-static method should not be called statically' when invoking a method in a Eloquent model?
Php
Laravel
Eloquent
Using Eloquent ORM in Laravel to perform search of database using LIKE
Orm
Laravel
Eloquent
Sql Like
eloquent laravel: How to get a row count from a ->get()
Php
Sql
Laravel
Eloquent
laravel collection to array
Php
Arrays
Laravel
Eloquent
Laravel update model with unique validation rule for attribute
Php
Laravel
Validation
Eloquent
Timestamps are not updating while attaching data in pivot table
Laravel
Laravel 4
Eloquent
Laravel 5 Eloquent where and or in Clauses
Sql
Laravel
Eloquent
Laravel Eloquent - Attach vs Sync
Php
Laravel
Laravel 4
Eloquent
Relationship
First Or Create
Laravel
Laravel 4
Eloquent
Laravel - find by custom column or fail
Laravel
Laravel 4
Eloquent
Laravel 5
How to set every row to the same value with Laravel's Eloquent/Fluent?
Laravel
Eloquent
Fluent
Laravel 3
How to exclude certains columns while using eloquent
Php
Laravel
Eloquent
Update without touching timestamps (Laravel)
Php
Laravel
Laravel 4
Eloquent
Eloquent ->first() if ->exists()
Php
Laravel
Eloquent
Laravel: How to get last N entries from DB
Php
Database
Laravel
Laravel 4
Eloquent
Laravel OrderBy relationship count
Php
Mysql
Laravel
Eloquent
How to access model hasMany Relation with where condition?
Laravel
Laravel 4
Eloquent
Laravel 5 Querying with relations causes "Call to a member function addEagerConstraints() on null" error
Php
Mysql
Laravel
Laravel 5
Eloquent
Laravel 5.2 - pluck() method returns array
Php
Laravel
Eloquent
Query Builder
Laravel 5.2
Get previous attribute value in Eloquent model event
Php
Laravel
Laravel 4
Eloquent
Eloquent eager load Order by
Laravel
Laravel 4
Eloquent
Eager Loading
Laravel firstOrNew how to check if it's first or new?
Php
Laravel
Laravel 5
Eloquent
Laravel Eloquent: eager loading of multiple nested relationships
Laravel
Eloquent
Eager Loading
How to select count with Laravel's fluent query builder?
Mysql
Activerecord
Fluent
Laravel
Eloquent
Get the Last Inserted Id Using Laravel Eloquent
Php
Database
Laravel
Eloquent
Laravel Checking If a Record Exists
Php
Laravel
Laravel 5
Eloquent
Conditional Statements
Laravel Eloquent inner join with multiple conditions
Php
Laravel
Eloquent
Filtering Eloquent collection data with $collection->filter()
Laravel
Laravel 4
Eloquent
Select the first 10 rows - Laravel Eloquent
Php
Orm
Laravel
Eloquent
hasMany vs belongsToMany in laravel 5.x
Php
Laravel
Eloquent
Difference between Eloquent\Model::get() and all()
Php
Laravel
Laravel 5
Eloquent
Eloquent model mass update
Php
Laravel
Laravel 4
Eloquent
How to reload/refresh model from database in Laravel?
Php
Laravel
Unit Testing
Laravel 4
Eloquent
Laravel Eloquent Query Using WHERE with OR AND OR?
Php
Laravel
Eloquent
Laravel Query-Builder
Laravel 5 migration identifier name too long
Php
Laravel
Eloquent
Laravel 5
Laravel eloquent update record without loading from database
Php
Eloquent
Laravel 5
Eloquent error: A facade root has not been set
Eloquent
Illuminate Container
Eloquent push() and save() difference
Laravel
Laravel 4
Eloquent
Eloquent collections: each vs foreach
Php
Laravel
Eloquent
Laravel Collection
Laravel get class name of related model
Php
Laravel
Eloquent
Seed multiple rows at once laravel 5
Php
Laravel
Schema
Eloquent
Seed
Find max value of a column in laravel
Laravel
Laravel 5
Eloquent
Laravel - Eloquent or Fluent random row
Php
Laravel
Random
Eloquent
Fluent
How to manually create a new empty Eloquent Collection in Laravel 4
Php
Laravel
Laravel 4
Eloquent
How to check if row is soft-deleted in Eloquent?
Php
Laravel
Eloquent
Laravel 5.1
Soft Delete
Laravel - Eloquent "Has", "With", "WhereHas" - What do they mean?
Laravel
Orm
Eloquent
Relational Database
Relationship
Eloquent Collection: Counting and Detect Empty
Laravel
Laravel 4
Eloquent
Laravel Collection
Laravel Eloquent: Return Array key as the fields ID
Php
Laravel
Eloquent
laravel select where and where condition
Laravel
Laravel 4
Eloquent
Laravel Eloquent how to use between operator
Php
Sql
Laravel
Laravel 4
Eloquent