41 lines
648 B
PHP
41 lines
648 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Branch
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
*
|
|
* @property Collection|Booking[] $bookings
|
|
* @property Collection|SfGuardUser[] $sf_guard_users
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class Branch extends Model
|
|
{
|
|
protected $table = 'branch';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'name'
|
|
];
|
|
|
|
public function bookings()
|
|
{
|
|
return $this->hasMany(Booking::class);
|
|
}
|
|
|
|
public function sf_guard_users()
|
|
{
|
|
return $this->hasMany(SfGuardUser::class);
|
|
}
|
|
}
|