mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-06-07 19:09:00 +00:00
Change namespace
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crater\Notifications\CustomerMailResetPasswordNotification;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Notifications\CustomerMailResetPasswordNotification;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use App;
|
||||
use Barryvdh\DomPDF\Facade as PDF;
|
||||
use Carbon\Carbon;
|
||||
use Crater\Mail\SendEstimateMail;
|
||||
use Crater\Services\SerialNumberFormatter;
|
||||
use Crater\Traits\GeneratesPdfTrait;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Mail\SendEstimateMail;
|
||||
use InvoiceShelf\Services\SerialNumberFormatter;
|
||||
use InvoiceShelf\Traits\GeneratesPdfTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
@@ -68,7 +68,7 @@ class Estimate extends Model implements HasMedia
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('Crater\Models\EstimateItem');
|
||||
return $this->hasMany('InvoiceShelf\Models\EstimateItem');
|
||||
}
|
||||
|
||||
public function customer()
|
||||
@@ -78,12 +78,12 @@ class Estimate extends Model implements HasMedia
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\User', 'creator_id');
|
||||
return $this->belongsTo('InvoiceShelf\Models\User', 'creator_id');
|
||||
}
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\Company');
|
||||
return $this->belongsTo('InvoiceShelf\Models\Company');
|
||||
}
|
||||
|
||||
public function currency()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Crater\Http\Requests\ExchangeRateProviderRequest;
|
||||
use InvoiceShelf\Http\Requests\ExchangeRateProviderRequest;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -61,7 +61,7 @@ class Expense extends Model implements HasMedia
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\User', 'creator_id');
|
||||
return $this->belongsTo('InvoiceShelf\Models\User', 'creator_id');
|
||||
}
|
||||
|
||||
public function getFormattedExpenseDateAttribute($value)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Crater\Carbon;
|
||||
use InvoiceShelf\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use App;
|
||||
use Barryvdh\DomPDF\Facade as PDF;
|
||||
use Carbon\Carbon;
|
||||
use Crater\Mail\SendInvoiceMail;
|
||||
use Crater\Services\SerialNumberFormatter;
|
||||
use Crater\Traits\GeneratesPdfTrait;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Mail\SendInvoiceMail;
|
||||
use InvoiceShelf\Services\SerialNumberFormatter;
|
||||
use InvoiceShelf\Traits\GeneratesPdfTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
@@ -74,7 +74,7 @@ class Invoice extends Model implements HasMedia
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany('Crater\Models\InvoiceItem');
|
||||
return $this->hasMany('InvoiceShelf\Models\InvoiceItem');
|
||||
}
|
||||
|
||||
public function taxes()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
@@ -33,7 +33,7 @@ class Item extends Model
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\User', 'creator_id');
|
||||
return $this->belongsTo('InvoiceShelf\Models\User', 'creator_id');
|
||||
}
|
||||
|
||||
public function currency()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Barryvdh\DomPDF\Facade as PDF;
|
||||
use Carbon\Carbon;
|
||||
use Crater\Jobs\GeneratePaymentPdfJob;
|
||||
use Crater\Mail\SendPaymentMail;
|
||||
use Crater\Services\SerialNumberFormatter;
|
||||
use Crater\Traits\GeneratesPdfTrait;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Jobs\GeneratePaymentPdfJob;
|
||||
use InvoiceShelf\Mail\SendPaymentMail;
|
||||
use InvoiceShelf\Services\SerialNumberFormatter;
|
||||
use InvoiceShelf\Traits\GeneratesPdfTrait;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\MediaLibrary\HasMedia;
|
||||
@@ -107,7 +107,7 @@ class Payment extends Model implements HasMedia
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\User', 'creator_id');
|
||||
return $this->belongsTo('InvoiceShelf\Models\User', 'creator_id');
|
||||
}
|
||||
|
||||
public function currency()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crater\Http\Requests\RecurringInvoiceRequest;
|
||||
use Crater\Services\SerialNumberFormatter;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Http\Requests\RecurringInvoiceRequest;
|
||||
use InvoiceShelf\Services\SerialNumberFormatter;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Cron;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crater\Http\Requests\UserRequest;
|
||||
use Crater\Notifications\MailResetPasswordNotification;
|
||||
use Crater\Traits\HasCustomFieldsTrait;
|
||||
use InvoiceShelf\Http\Requests\UserRequest;
|
||||
use InvoiceShelf\Notifications\MailResetPasswordNotification;
|
||||
use InvoiceShelf\Traits\HasCustomFieldsTrait;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
@@ -114,7 +114,7 @@ class User extends Authenticatable implements HasMedia
|
||||
|
||||
public function creator()
|
||||
{
|
||||
return $this->belongsTo('Crater\Models\User', 'creator_id');
|
||||
return $this->belongsTo('InvoiceShelf\Models\User', 'creator_id');
|
||||
}
|
||||
|
||||
public function companies()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Crater\Models;
|
||||
namespace InvoiceShelf\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
Reference in New Issue
Block a user