Issues (8)

src/Models/Card.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace DavideCasiraghi\LaravelCards\Models;
4
5
use Astrotomic\Translatable\Translatable;
6
use Illuminate\Database\Eloquent\Model;
7
8
class Card extends Model
9
{
10
    protected $table = 'cards';
11
12
    use Translatable;
0 ignored issues
show
The trait Astrotomic\Translatable\Translatable requires the property $each which is not provided by DavideCasiraghi\LaravelCards\Models\Card.
Loading history...
13
14
    public $translatedAttributes = ['heading', 'title', 'body', 'button_text', 'image_alt'];
15
    protected $fillable = [
16
        'image_file_name',
17
        'img_alignment',
18
        'img_col_size',
19
        'bkg_color',
20
        'text_color',
21
        'button_url',
22
        'button_color',
23
        'button_corners',
24
        'button_icon',
25
        'container_wrap',
26
    ];
27
}
28