davide-casiraghi/laravel-columns

View on GitHub
src/Models/Column.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace DavideCasiraghi\LaravelColumns\Models;

use Astrotomic\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;

class Column extends Model
{
    protected $table = 'columns';

    use Translatable;

    public $translatedAttributes = ['title', 'body', 'button_text', 'image_alt'];
    protected $fillable = [
        'columns_group',
        'column_flex',
        'separator_color',
        'image_file_name',
        'fontawesome_icon_class',
        'icon_color',
        'button_url',
    ];
}