47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Uwil\LaravelActivityLogs\Traits\HasActivityLog;
|
|
use Uwil\LaravelBackend\Traits\Models\HasCache;
|
|
use Uwil\LaravelBackend\Traits\Models\HasModelNaming;
|
|
use Uwil\LaravelI18n\Traits\Models\HasTranslations;
|
|
|
|
/**
|
|
* @property integer $id Id of the invoice company.
|
|
* @property string $name Name of the invoice company.
|
|
* @property-read \Illuminate\Support\Carbon $created_at Date the invoice company was created.
|
|
* @property-read \Illuminate\Support\Carbon $updated_at Date the invoice company was updated.
|
|
* @property-read \Illuminate\Support\Carbon $deleted_at Date the invoice company was deleted.
|
|
*/
|
|
class InvoiceCompany extends Model
|
|
{
|
|
use HasActivityLog;
|
|
use HasCache;
|
|
/** @use \Illuminate\Database\Eloquent\Factories\HasFactory<\Database\Factories\InvoiceCompanyFactory> */
|
|
use HasFactory;
|
|
use HasModelNaming;
|
|
use HasTranslations;
|
|
use SoftDeletes;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
];
|
|
|
|
/**
|
|
* The translatable columns.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
public $translatable = [
|
|
'name',
|
|
];
|
|
}
|