관리-도구
편집 파일: Promotion.php.tar
home/tattooscyy/www/app/Promotion.php 0000644 00000000640 15224611323 0014020 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; class Promotion extends Model { public $fillable = ['thema', 'body', ' saloon_id ', 'type_tattoo', 'type_piercing', 'user_id', 'counts']; public function saloons() { return $this->belongsTo('App\Saloon', 'saloon_id'); } public function emails(){ return $this->hasMany('App\PromotionEmail', 'promotion_id'); } } home/tattooscyy/test/app/Promotion.php 0000604 00000000640 15224653175 0014162 0 ustar 00 <?php namespace App; use Illuminate\Database\Eloquent\Model; class Promotion extends Model { public $fillable = ['thema', 'body', ' saloon_id ', 'type_tattoo', 'type_piercing', 'user_id', 'counts']; public function saloons() { return $this->belongsTo('App\Saloon', 'saloon_id'); } public function emails(){ return $this->hasMany('App\PromotionEmail', 'promotion_id'); } }