관리-도구
편집 파일: Size.php.tar
home/tattooscyy/www/app/Size.php 0000644 00000001374 15224610450 0012751 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Size extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'size'; protected $fillable = [ 'size', 'catalogs_id', 'price', 'coef' ]; public static function boot() { parent::boot(); Size::observe(new UserActionsObserver); } public function catalogs() { return $this->hasOne('App\Catalogs', 'id', 'catalogs_id'); } } home/tattooscyy/api/app/Size.php 0000604 00000001104 15224664066 0012675 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Size extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'size'; protected $fillable = [ 'size', 'catalogs_id', 'price', 'coef' ]; public function catalogs() { return $this->hasOne('App\Catalogs', 'id', 'catalogs_id'); } } home/tattooscyy/test/app/Size.php 0000604 00000001374 15224705154 0013106 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; use Laraveldaily\Quickadmin\Observers\UserActionsObserver; use Illuminate\Database\Eloquent\SoftDeletes; class Size extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'size'; protected $fillable = [ 'size', 'catalogs_id', 'price', 'coef' ]; public static function boot() { parent::boot(); Size::observe(new UserActionsObserver); } public function catalogs() { return $this->hasOne('App\Catalogs', 'id', 'catalogs_id'); } }