diff --git a/app/Console/Commands/UpdateCommand.php b/app/Console/Commands/UpdateCommand.php index 05a2f2da..7b37ff9b 100644 --- a/app/Console/Commands/UpdateCommand.php +++ b/app/Console/Commands/UpdateCommand.php @@ -20,14 +20,14 @@ class UpdateCommand extends Command * * @var string */ - protected $signature = 'crater:update'; + protected $signature = 'core:update'; /** * The console command description. * * @var string */ - protected $description = 'Automatically update your crater app'; + protected $description = 'Automatically update your InvoiceShelf Core App'; /** * Create a new command instance. diff --git a/app/Http/Resources/ModuleResource.php b/app/Http/Resources/ModuleResource.php index 2ff759b7..58e262a2 100644 --- a/app/Http/Resources/ModuleResource.php +++ b/app/Http/Resources/ModuleResource.php @@ -108,7 +108,7 @@ class ModuleResource extends JsonResource return false; } - if (version_compare(Setting::getSetting('version'), $this->latest_module_version->crater_version, '<')) { + if (version_compare(Setting::getSetting('version'), $this->latest_module_version->invoiceshelf_version, '<')) { return false; } diff --git a/app/Models/Company.php b/app/Models/Company.php index 34eac08a..62dbf65c 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -223,7 +223,7 @@ class Company extends Model implements HasMedia 'fiscal_year' => '1-12', 'carbon_date_format' => 'Y/m/d', 'moment_date_format' => 'YYYY/MM/DD', - 'notification_email' => 'noreply@crater.in', + 'notification_email' => 'noreply@invoiceshelf.com', 'notify_invoice_viewed' => 'NO', 'notify_estimate_viewed' => 'NO', 'tax_per_item' => 'NO', diff --git a/app/Models/FileDisk.php b/app/Models/FileDisk.php index 58c5820e..5205c6f5 100644 --- a/app/Models/FileDisk.php +++ b/app/Models/FileDisk.php @@ -119,11 +119,11 @@ class FileDisk extends Model if ($disk == 'dropbox') { $root = $credentials['root'].'/'; } - \Storage::disk($prefix.$disk)->put($root.'crater_temp.text', 'Check Credentials'); + \Storage::disk($prefix.$disk)->put($root.'invoiceshelf_temp.text', 'Check Credentials'); - if (\Storage::disk($prefix.$disk)->exists($root.'crater_temp.text')) { + if (\Storage::disk($prefix.$disk)->exists($root.'invoiceshelf_temp.text')) { $exists = true; - \Storage::disk($prefix.$disk)->delete($root.'crater_temp.text'); + \Storage::disk($prefix.$disk)->delete($root.'invoiceshelf_temp.text'); } } catch (\Exception $e) { $exists = false; diff --git a/app/Space/SiteApi.php b/app/Space/SiteApi.php index a86f944b..472c1013 100644 --- a/app/Space/SiteApi.php +++ b/app/Space/SiteApi.php @@ -16,8 +16,8 @@ trait SiteApi $headers['headers'] = [ 'Accept' => 'application/json', 'Referer' => url('/'), - 'crater' => Setting::getSetting('version'), 'Authorization' => "Bearer {$token}", + 'invoiceshelf' => Setting::getSetting('version'), ]; $data['http_errors'] = false; diff --git a/app/Space/Updater.php b/app/Space/Updater.php index 63aecf4f..3b6b2fa9 100644 --- a/app/Space/Updater.php +++ b/app/Space/Updater.php @@ -118,7 +118,7 @@ class Updater public static function copyFiles($temp_extract_dir) { - if (! File::copyDirectory($temp_extract_dir.'/Crater', base_path())) { + if (! File::copyDirectory($temp_extract_dir.'/InvoiceShelf', base_path())) { return false; } diff --git a/app/Space/helpers.php b/app/Space/helpers.php index becdaa3b..2bb4d1da 100644 --- a/app/Space/helpers.php +++ b/app/Space/helpers.php @@ -43,7 +43,7 @@ function get_page_title($company_id) $routeName = Route::currentRouteName(); $pageTitle = null; - $defaultPageTitle = 'Crater - Self Hosted Invoicing Platform'; + $defaultPageTitle = 'InvoiceShelf - Self Hosted Invoicing Platform'; if (\Storage::disk('local')->has('database_created')) { if ($routeName === 'customer.dashboard') { diff --git a/resources/views/app.blade.php b/resources/views/app.blade.php index 96ff8416..cde034b8 100644 --- a/resources/views/app.blade.php +++ b/resources/views/app.blade.php @@ -26,7 +26,7 @@
+ @if(isset($current_theme)) theme-{{ $current_theme }} @else theme-{{get_app_setting('admin_portal_theme') ?? 'invoiceshelf'}} @endif "> @foreach (\InvoiceShelf\Services\Module\ModuleFacade::allScripts() as $name => $path) diff --git a/resources/views/emails/send/estimate.blade.php b/resources/views/emails/send/estimate.blade.php index 373cde23..8e82bdc3 100644 --- a/resources/views/emails/send/estimate.blade.php +++ b/resources/views/emails/send/estimate.blade.php @@ -28,7 +28,7 @@ {{-- Footer --}} @slot('footer') @component('mail::footer') - Powered by Crater + Powered by InvoiceShelf @endcomponent @endslot @endcomponent diff --git a/resources/views/emails/send/invoice.blade.php b/resources/views/emails/send/invoice.blade.php index 8ce228e5..53e2dce2 100644 --- a/resources/views/emails/send/invoice.blade.php +++ b/resources/views/emails/send/invoice.blade.php @@ -28,7 +28,7 @@ {{-- Footer --}} @slot('footer') @component('mail::footer') - Powered by Crater + Powered by InvoiceShelf @endcomponent @endslot @endcomponent diff --git a/resources/views/emails/send/payment.blade.php b/resources/views/emails/send/payment.blade.php index 463b63a8..4670542d 100644 --- a/resources/views/emails/send/payment.blade.php +++ b/resources/views/emails/send/payment.blade.php @@ -28,7 +28,7 @@ {{-- Footer --}} @slot('footer') @component('mail::footer') - Powered by Crater + Powered by InvoiceShelf @endcomponent @endslot @endcomponent