Created
November 5, 2019 03:04
-
-
Save nasrulhazim/01629a1d719b05d78a2a3eeee904260e to your computer and use it in GitHub Desktop.
Base Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Contracts\Datatable as DatatableContract; | |
use App\Traits\HasDatatable; | |
use App\Traits\HasMediaExtended; | |
use App\Traits\SelectOptionTrait; | |
use App\Traits\WithDetailsTrait; | |
use Illuminate\Database\Eloquent\Model; | |
use OwenIt\Auditing\Contracts\Auditable; | |
use Spatie\MediaLibrary\HasMedia\HasMedia as MediaContract; | |
class Base extends Model implements Auditable, DatatableContract, MediaContract | |
{ | |
use \OwenIt\Auditing\Auditable; | |
use HasDatatable; | |
use SelectOptionTrait; | |
use WithDetailsTrait; | |
use HasMediaExtended; | |
protected $guarded = [ | |
'id', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment