19 lines
320 B
PHP
19 lines
320 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Seat extends Model
|
|
{
|
|
protected $fillable = ['name', 'id'];
|
|
|
|
public function event(){
|
|
return $this->belongsTo('App\Event', 'event_id');
|
|
}
|
|
|
|
public function singleSeats(){
|
|
return $this->hasMany('App\SingleSeat');
|
|
}
|
|
}
|