For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');
-> Added new hasManyThrough relationship type. | |
-> Cloned Eloquent query builders now clone the underlying query builder. | |
-> Allow for passing of custom attributes into Validator::make as fourth parameter. | |
-> Allow comma delimited list of queues to be passed to queue:listen / queue:work to implement queue priority. | |
-> When new bindings are added to container, old aliases bound to that key will now be dropped. |