mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
* Create PHP CS Fixer config and add to CI workflow * Run php cs fixer on project * Add newline at end of file * Update to use PHP CS Fixer v3 * Run v3 config on project * Run seperate config in CI
24 lines
419 B
PHP
24 lines
419 B
PHP
<?php
|
|
|
|
namespace Crater\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class InvoiceTemplate extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['path', 'view', 'name'];
|
|
|
|
public function invoices()
|
|
{
|
|
return $this->hasMany(Invoice::class);
|
|
}
|
|
|
|
public function getPathAttribute($value)
|
|
{
|
|
return url($value);
|
|
}
|
|
}
|