mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-03 14:03:18 -05: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);
 | 
						|
    }
 | 
						|
}
 |