관리-도구
편집 파일: Artist.php.tar
home/tattooscyy/www/app/Artist.php 0000644 00000001751 15224601142 0013302 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Artist extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'artist'; protected $fillable = [ 'name', 'body', 'saloon_id', 'picture', 'categories', 'contacts', 'order_by', 'showhide' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); Artist::observe(new UserActionsObserver); } public function saloon() { return $this->hasOne('App\Saloon', 'id', 'saloon_id'); } public function orders(){ return $this->hasMany('App\Orders','artist_id'); } } home/tattooscyy/api/app/Artist.php 0000604 00000001322 15224653556 0013235 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Artist extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'artist'; protected $fillable = [ 'name', 'body', 'saloon_id', 'picture', 'categories', 'contacts', 'showhide' ]; public function saloon() { return $this->hasOne('App\Saloon', 'id', 'saloon_id'); } public function galleries(){ return $this->hasMany('App\Galleries', 'artist_id'); } } home/tattooscyy/test/app/Artist.php 0000604 00000001751 15224667062 0013446 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Artist extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'artist'; protected $fillable = [ 'name', 'body', 'saloon_id', 'picture', 'categories', 'contacts', 'order_by', 'showhide' ]; public static $showhide = ["show" => "show", "hide" => "hide", ]; public static function boot() { parent::boot(); Artist::observe(new UserActionsObserver); } public function saloon() { return $this->hasOne('App\Saloon', 'id', 'saloon_id'); } public function orders(){ return $this->hasMany('App\Orders','artist_id'); } } home/tattooscyy/api2/app/Models/Artist.php 0000604 00000001322 15224705677 0014544 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Artist extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'artist'; protected $fillable = [ 'name', 'body', 'saloon_id', 'picture', 'categories', 'contacts', 'showhide' ]; public function saloon() { return $this->hasOne('App\Saloon', 'id', 'saloon_id'); } public function galleries(){ return $this->hasMany('App\Galleries', 'artist_id'); } }