V
V
vism2019-01-16 15:58:47
Laravel
vism, 2019-01-16 15:58:47

What are the pitfalls of setting default attributes this way?

What are the pitfalls of setting default attributes this way?

protected $attributes = [
        'vat_id' => VatList::ID__PERCENT_0,
        'approve_status' => Banking::APPROVE_STATUS__NO,
    ];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2019-01-16
@vism

Since this method is in the documentation , then there should not be any.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question