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