Fix boot magic name in trait
This commit is contained in:
parent
f13c961863
commit
aac355b077
@ -6,7 +6,7 @@ use App\Models\Expense;
|
|||||||
|
|
||||||
trait ExpensableTrait
|
trait ExpensableTrait
|
||||||
{
|
{
|
||||||
public static function bootExpensable()
|
public static function bootExpensableTrait()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ trait HashIdTrait
|
|||||||
/**
|
/**
|
||||||
* Register callbacks
|
* Register callbacks
|
||||||
*/
|
*/
|
||||||
protected static function bootHashId()
|
protected static function bootHashIdTrait()
|
||||||
{
|
{
|
||||||
static::creating(function ($model) {
|
static::creating(function ($model) {
|
||||||
if (empty($model->id)) {
|
if (empty($model->id)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user