관리-도구
편집 파일: PiercingCatalog.php.tar
home/tattooscyy/www/app/PiercingCatalog.php 0000644 00000001604 15224611346 0015073 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class PiercingCatalog extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'piercing_catalogs'; protected $fillable = [ 'name', 'interval', 'picture', 'body', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); PiercingCatalog::observe(new UserActionsObserver); } public function prices(){ return $this->hasMany('App\PiercingPrice', 'piercingcatalog_id'); } } home/tattooscyy/api/app/PiercingCatalog.php 0000604 00000001306 15224655171 0015017 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class PiercingCatalog extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'piercing_catalogs'; protected $fillable = [ 'name', 'interval', 'picture', 'body', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public function prices(){ return $this->hasMany('App\PiercingPrice', 'piercingcatalog_id'); } } home/tattooscyy/test/app/PiercingCatalog.php 0000604 00000001604 15224705710 0015221 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class PiercingCatalog extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'piercing_catalogs'; protected $fillable = [ 'name', 'interval', 'picture', 'body', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); PiercingCatalog::observe(new UserActionsObserver); } public function prices(){ return $this->hasMany('App\PiercingPrice', 'piercingcatalog_id'); } }