D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
api
/
app
/
Filename :
PiercingPrice.php
back
Copy
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class PiercingPrice extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; protected $table = 'piercing_price'; protected $fillable = [ 'name', 'price', 'intervals', 'picture', 'coef', 'piercingcatalog_id', 'body', 'showhide', 'type' ]; public static $showhide = ["show" => "show", "hide" => "hide",]; public function catalog() { return $this->belongsTo('App\PiercingCatalog', 'piercingcatalog_id'); } }