관리-도구
편집 파일: Galleries.php.tar
home/tattooscyy/www/app/Galleries.php 0000644 00000001405 15224611325 0013743 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Galleries extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'galleries'; protected $fillable = [ 'name', 'picture', 'artist_id', 'type' ]; public static function boot() { parent::boot(); Galleries::observe(new UserActionsObserver); } public function artist() { return $this->hasOne('App\Artist', 'id', 'artist_id'); } } home/tattooscyy/test/app/Galleries.php 0000604 00000001405 15224674742 0014106 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Galleries extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'galleries'; protected $fillable = [ 'name', 'picture', 'artist_id', 'type' ]; public static function boot() { parent::boot(); Galleries::observe(new UserActionsObserver); } public function artist() { return $this->hasOne('App\Artist', 'id', 'artist_id'); } }