관리-도구
편집 파일: Client.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Client extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'clients'; protected $fillable = [ 'manager_id', 'name', 'email', 'phone', 'showhide', 'status' ]; public static function boot() { parent::boot(); Picture::observe(new UserActionsObserver); } public function pictures(){ return $this->hasMany('App\PictureManager', 'client_id'); } }