Skip to content

Commit

Permalink
updated ModelLock.php for Laravel 5.7 support
Browse files Browse the repository at this point in the history
called parent::boot inside the boot method of ModelLock.php 
see: laravel/framework#25455
  • Loading branch information
sweet-greg authored Jan 9, 2019
1 parent df2e871 commit 88085a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ModelLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class ModelLock extends Model
*/
protected static function boot()
{
parent::boot();

static::saving(function ($lock) {
if (!$lock->isDirty('locked_until')) {
$lock->locked_until = $lock->lockTimestamp();
Expand Down

0 comments on commit 88085a3

Please sign in to comment.