47 lines
805 B
PHP
47 lines
805 B
PHP
<?php
|
|
|
|
namespace App\Models\Branch;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Spatie\Translatable\HasTranslations;
|
|
|
|
class Branch extends Model
|
|
{
|
|
use HasFactory;
|
|
use HasTranslations;
|
|
|
|
/**
|
|
* Table name
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'branches';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
'region',
|
|
'province_id',
|
|
'unique_code',
|
|
'billing_username',
|
|
'billing_password',
|
|
'address',
|
|
'active',
|
|
];
|
|
|
|
/**
|
|
* Translatable fields
|
|
*
|
|
* @var array<string>
|
|
*/
|
|
public $translatable = [
|
|
'name',
|
|
'address',
|
|
];
|
|
}
|