관리-도구
편집 파일: PictureManager.php.tar
home/tattooscyy/test/app/PictureManager.php 0000604 00000001570 15224663424 0015103 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class PictureManager extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'picture_manager'; protected $fillable = [ 'picture', 'manager_id', 'client_id', 'ip', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public function clients(){ return $this->belongsTo('App\Client','client_id'); } public static function boot() { parent::boot(); Picture::observe(new UserActionsObserver); } } home/tattooscyy/www/app/PictureManager.php 0000644 00000001570 15224676771 0014765 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class PictureManager extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'picture_manager'; protected $fillable = [ 'picture', 'manager_id', 'client_id', 'ip', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public function clients(){ return $this->belongsTo('App\Client','client_id'); } public static function boot() { parent::boot(); Picture::observe(new UserActionsObserver); } }