From aac355b077ec440b1d84f799d08cab4afb46237b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 8 Mar 2018 08:56:27 -0600 Subject: [PATCH] Fix boot magic name in trait --- app/Models/Traits/ExpensableTrait.php | 2 +- app/Models/Traits/HashIdTrait.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Traits/ExpensableTrait.php b/app/Models/Traits/ExpensableTrait.php index 8e7cf8da..fae227f5 100644 --- a/app/Models/Traits/ExpensableTrait.php +++ b/app/Models/Traits/ExpensableTrait.php @@ -6,7 +6,7 @@ use App\Models\Expense; trait ExpensableTrait { - public static function bootExpensable() + public static function bootExpensableTrait() { } diff --git a/app/Models/Traits/HashIdTrait.php b/app/Models/Traits/HashIdTrait.php index 5ba489d9..18b82a10 100644 --- a/app/Models/Traits/HashIdTrait.php +++ b/app/Models/Traits/HashIdTrait.php @@ -20,7 +20,7 @@ trait HashIdTrait /** * Register callbacks */ - protected static function bootHashId() + protected static function bootHashIdTrait() { static::creating(function ($model) { if (empty($model->id)) {