You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
519 B
27 lines
519 B
<?php
|
|
|
|
namespace App\Entities\Invoices;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BankAccount extends Model
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'name', 'number', 'account_name', 'description', 'is_active',
|
|
];
|
|
|
|
/**
|
|
* Get status attribute.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getStatusAttribute()
|
|
{
|
|
return $this->is_active == 1 ? __('app.active') : __('app.in_active');
|
|
}
|
|
}
|