We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
2 | |||
3 | namespace Backpack\CRUD\Tests\Config\Models; |
||
4 | |||
5 | use Backpack\CRUD\app\Models\Traits\CrudTrait; |
||
6 | use Backpack\CRUD\app\Models\Traits\SpatieTranslatable\HasTranslations; |
||
7 | use Illuminate\Database\Eloquent\Model; |
||
8 | |||
9 | class TranslatableModel extends Model |
||
10 | { |
||
11 | use CrudTrait; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
12 | use HasTranslations; |
||
0 ignored issues
–
show
The trait
Backpack\CRUD\app\Models...latable\HasTranslations requires some properties which are not provided by Backpack\CRUD\Tests\Conf...odels\TranslatableModel : $allowEmptyStringForTranslation , $fallbackAny , $missingKeyCallback , $fallbackLocale , $useFallbackLocale , $allowNullForTranslation
![]() |
|||
13 | |||
14 | protected $fillable = [ |
||
15 | 'title', |
||
16 | 'description', |
||
17 | ]; |
||
18 | |||
19 | protected $translatable = [ |
||
20 | 'title', |
||
21 | 'description', |
||
22 | ]; |
||
23 | |||
24 | public $timestamps = false; |
||
25 | |||
26 | protected $table = 'translatable'; |
||
27 | } |
||
28 |