mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
21 lines
361 B
PHP
21 lines
361 B
PHP
<?php
|
|
namespace Laraspace;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Laraspace\Invoice;
|
|
|
|
class InvoiceTemplate extends Model
|
|
{
|
|
protected $fillable = ['path', 'view', 'name'];
|
|
|
|
public function invoices()
|
|
{
|
|
return $this->hasMany(Invoice::class);
|
|
}
|
|
|
|
public function getPathAttribute($value)
|
|
{
|
|
return url($value);
|
|
}
|
|
}
|