We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60fe18 commit 977a8eeCopy full SHA for 977a8ee
tests/resources/TestModel.php
@@ -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