Skip to content

Commit 977a8ee

Browse files
Add base model
1 parent e60fe18 commit 977a8ee

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/resources/TestModel.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SebastiaanLuca\BooleanDates\Tests\resources;
6+
7+
use Illuminate\Database\Eloquent\Model;
8+
use SebastiaanLuca\BooleanDates\BooleanDates;
9+
10+
class TestModel extends Model
11+
{
12+
use BooleanDates;
13+
14+
/**
15+
* @var array
16+
*/
17+
protected $booleanDates = [
18+
'has_accepted_terms_and_conditions' => 'accepted_terms_at',
19+
'allows_data_processing' => 'accepted_processing_at',
20+
'has_agreed_to_something' => 'agreed_to_something_at',
21+
];
22+
}

0 commit comments

Comments
 (0)