| 12345678910111213141516171819202122232425 |
- <?php
- namespace App\Models;
- use Dcat\Admin\Traits\HasDateTimeFormatter;
- use Illuminate\Database\Eloquent\Model;
- class FittingRoom extends Model
- {
- use HasDateTimeFormatter;
- protected $table = 'fitting_rooms';
- protected $guarded = ['account_id','attire_id'];
- //
- public function attire()
- {
- return $this->belongsTo(\App\Models\Attire::class)->withTrashed();
- }
- public function account()
- {
- return $this->belongsTo(\App\Models\Account::class);
- }
- }
|