mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 13:41:09 -04:00 
			
		
		
		
	refactor namespace and update routes for api
This commit is contained in:
		| @ -1,9 +1,9 @@ | ||||
| <?php | ||||
| namespace Laraspace; | ||||
| namespace Crater; | ||||
|  | ||||
| use Illuminate\Database\Eloquent\Model; | ||||
| use Laraspace\InvoiceTemplate; | ||||
| use Laraspace\Payment; | ||||
| use Crater\InvoiceTemplate; | ||||
| use Crater\Payment; | ||||
| use Carbon\Carbon; | ||||
| use Illuminate\Support\Facades\DB; | ||||
|  | ||||
| @ -90,7 +90,7 @@ class Invoice extends Model | ||||
|  | ||||
|     public function items() | ||||
|     { | ||||
|         return $this->hasMany('Laraspace\InvoiceItem'); | ||||
|         return $this->hasMany('Crater\InvoiceItem'); | ||||
|     } | ||||
|  | ||||
|     public function taxes() | ||||
| @ -105,7 +105,7 @@ class Invoice extends Model | ||||
|  | ||||
|     public function user() | ||||
|     { | ||||
|         return $this->belongsTo('Laraspace\User'); | ||||
|         return $this->belongsTo('Crater\User'); | ||||
|     } | ||||
|  | ||||
|     public function invoiceTemplate() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user