51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Insurance
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property string $name_full
|
|
* @property string $contact_emails
|
|
* @property bool $active
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereActive($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereContactEmails($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Insurance whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Insurance extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'insurances';
|
|
|
|
protected $casts = [
|
|
'active' => 'bool',
|
|
'contact_emails' => 'array'
|
|
|
|
];
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'contact_emails',
|
|
'active'
|
|
];
|
|
}
|