D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
stage
/
app
/
Filename :
Maintexts.php
back
Copy
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Maintexts extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'maintexts'; protected $fillable = [ 'name', 'body', 'url', 'type', 'lang', 'showhide' ]; public static $showhide = ["show" => "show", "hide" => "hide",]; public static function boot() { parent::boot(); Maintexts::observe(new UserActionsObserver); } }