Taylor Otwell announced two new features coming to Laravel 5.3 on twitter today. You will be able to roll back one migration at a time and you will have access to the $loop variable in blade foreach loops.
Rolling back one migration at a time
This new feature will come in handy when one of your migrations fail for some reason. You will be able to use it this way:
php artisan migrate:rollback --step=1
Small new feature in Laravel 5.3: roll back one migration at a time. pic.twitter.com/Q2mfslDXo9
— Laravel (@laravelphp) 6 juni 2016
Blade $loop variable
In blade foreach loops you will have access to a $loop variable, it will allow you to do things like this, but knowing Taylor there will be a lot more available.
@foreach($users as $user) @if($loop->first) <!-- First iterartion --> @endif @if($loop->last) <!-- Last iteration --> @endif @endforeach
Also coming in Laravel 5.3... $loop variable in Blade "foreach" loops provides helpful info! pic.twitter.com/K7URBZNm0Q
— Laravel (@laravelphp) 6 juni 2016
Code credits go to Taylor Otwell & Laravel php