Answers for "laravel database fresh"

PHP
5

migration rollback

php artisan migrate:rollback
Posted by: Guest on May-04-2020
2

fresh laravel

$flight = Flight::where('number', 'FR 900')->first();

$flight->number = 'FR 456';

$flight->refresh();

$flight->number; // "FR 900"
Posted by: Guest on December-29-2020
2

php artisan see last migration

php artisan migrate:status
Posted by: Guest on May-06-2020

Browse Popular Code Answers by Language