Refresh / Reload new Model values from database in Laravel

If you are looking to refresh or reload the new values from the database for a Model, you can do the following


$model->refresh();

For example


$user  = User::find('242');
$user->active = 1;
$user->save();
..
$user->refresh();

Site Footer