The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.
I have historical data that I want to load in new DB. I could do it by running MySQL command …
mysql eloquent laravel-5.1 laravel-artisanI got two DB tables: Posts $table->increments('id'); $table->integer('country_id')->unsigned(); $table->…
php laravel laravel-5 eloquent eager-loadingI have a Model Review that has a unix timestamp as 1 of it's attributes (table columns). I use 2 accessors inside …
laravel laravel-5 eloquent laravel-5.5 accessorI have one User who can be assigned to many Company. I'm trying to render a table using Laravel Datatables &…
php laravel-5 datatables eloquent yajra-datatableI've got a categories table. Each category can have an optional parent (Defaults to 0 if no parent). What I want …
php parent-child laravel laravel-4 eloquentIn one of the my worker scripts to store aggregate counts based on some metrics, I am not using Eloquent …
laravel laravel-5 eloquent query-builder laravel-query-builderI'm using Laravel 5 and I have a table of users, and two tables 'clients' and 'employes' which contain relations between …
php mysql laravel-5 eloquent query-builderFor several console commands, I have the need to change databases so all my eloquent commands and queries run on …
laravel eloquent codeceptionI have this (simplified) table structure: users - id - type (institutions or agents) institutions_profile - id - user_…
laravel eloquent relationships