Skip to content

Commit

Permalink
Added table name to test model for proper guarded support in Larave…
Browse files Browse the repository at this point in the history
…l 7.24.0+ and 6.18.35+
  • Loading branch information
fulopattila122 committed Nov 4, 2020
1 parent ee67da6 commit 4b12d51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Models/OrderV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class OrderV2 extends Model
{
use CastsEnums;

protected $table = 'orders';

protected $guarded = ['id'];

protected $casts = [
Expand Down

0 comments on commit 4b12d51

Please sign in to comment.