Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kick-start project #1

Merged
merged 25 commits into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ Homestead.yaml
/.scribe
!storage/fonts/.gitkeep
.DS_Store
.php-cs-fixer.cache
/storage/fonts*
4 changes: 2 additions & 2 deletions app/Console/Commands/CheckEstimateStatus.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Carbon\Carbon;
use Crater\Models\Estimate;
use InvoiceShelf\Models\Estimate;
use Illuminate\Console\Command;

class CheckEstimateStatus extends Command
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/CheckInvoiceStatus.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Carbon\Carbon;
use Crater\Models\Invoice;
use InvoiceShelf\Models\Invoice;
use Illuminate\Console\Command;

class CheckInvoiceStatus extends Command
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/CreateTemplateCommand.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/InstallModuleCommand.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Crater\Space\ModuleInstaller;
use InvoiceShelf\Space\ModuleInstaller;
use Illuminate\Console\Command;

class InstallModuleCommand extends Command
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/ResetApp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
Expand Down
10 changes: 5 additions & 5 deletions app/Console/Commands/UpdateCommand.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Console\Commands;
namespace InvoiceShelf\Console\Commands;

use Crater\Models\Setting;
use Crater\Space\Updater;
use InvoiceShelf\Models\Setting;
use InvoiceShelf\Space\Updater;
use Illuminate\Console\Command;

// Implementation taken from Akaunting - https://github.com/akaunting/akaunting
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Console;
namespace InvoiceShelf\Console;

use Crater\Models\CompanySetting;
use Crater\Models\RecurringInvoice;
use InvoiceShelf\Models\CompanySetting;
use InvoiceShelf\Models\RecurringInvoice;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

Expand Down
2 changes: 1 addition & 1 deletion app/Events/ModuleDisabledEvent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Events;
namespace InvoiceShelf\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
Expand Down
2 changes: 1 addition & 1 deletion app/Events/ModuleEnabledEvent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Events;
namespace InvoiceShelf\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
Expand Down
2 changes: 1 addition & 1 deletion app/Events/ModuleInstalledEvent.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Events;
namespace InvoiceShelf\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
Expand Down
2 changes: 1 addition & 1 deletion app/Events/UpdateFinished.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Events;
namespace InvoiceShelf\Events;

use Illuminate\Foundation\Events\Dispatchable;

Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Exceptions;
namespace InvoiceShelf\Exceptions;

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
Expand Down
8 changes: 4 additions & 4 deletions app/Generators/CustomPathGenerator.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Crater\Generators;
namespace InvoiceShelf\Generators;

use Crater\Models\Estimate;
use Crater\Models\Invoice;
use Crater\Models\Payment;
use InvoiceShelf\Models\Estimate;
use InvoiceShelf\Models\Invoice;
use InvoiceShelf\Models\Payment;
use Spatie\MediaLibrary\MediaCollections\Models\Media;
use Spatie\MediaLibrary\Support\PathGenerator\PathGenerator;

Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/AppVersionController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Http\Controllers;
namespace InvoiceShelf\Http\Controllers;

use Crater\Models\Setting;
use InvoiceShelf\Models\Setting;
use Illuminate\Http\Request;

class AppVersionController extends Controller
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Crater\Http\Controllers;
namespace InvoiceShelf\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use Crater\Providers\RouteServiceProvider;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\ConfirmsPasswords;

class ConfirmPasswordController extends Controller
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use InvoiceShelf\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Http\Request;

Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/V1/Admin/Auth/LoginController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use Crater\Providers\RouteServiceProvider;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/V1/Admin/Auth/RegisterController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use Crater\Models\User;
use Crater\Providers\RouteServiceProvider;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Models\User;
use InvoiceShelf\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Validator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use Crater\Providers\RouteServiceProvider;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Foundation\Auth\ResetsPasswords;
use Illuminate\Http\Request;
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/V1/Admin/Auth/VerificationController.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Auth;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Auth;

use Crater\Http\Controllers\Controller;
use Crater\Providers\RouteServiceProvider;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\VerifiesEmails;

class VerificationController extends Controller
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/V1/Admin/Backup/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// Implementation taken from nova-backup-tool - https://github.com/spatie/nova-backup-tool/

namespace Crater\Http\Controllers\V1\Admin\Backup;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Backup;

use Crater\Http\Controllers\Controller;
use InvoiceShelf\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;

class ApiController extends Controller
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/V1/Admin/Backup/BackupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

// Implementation taken from nova-backup-tool - https://github.com/spatie/nova-backup-tool/

namespace Crater\Http\Controllers\V1\Admin\Backup;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Backup;

use Crater\Jobs\CreateBackupJob;
use Crater\Rules\Backup\PathToZip;
use InvoiceShelf\Jobs\CreateBackupJob;
use InvoiceShelf\Rules\Backup\PathToZip;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// Implementation taken from nova-backup-tool - https://github.com/spatie/nova-backup-tool/

namespace Crater\Http\Controllers\V1\Admin\Backup;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Backup;

use Crater\Rules\Backup\PathToZip;
use InvoiceShelf\Rules\Backup\PathToZip;
use Illuminate\Http\Request;
use Spatie\Backup\BackupDestination\Backup;
use Spatie\Backup\BackupDestination\BackupDestination;
Expand Down
12 changes: 6 additions & 6 deletions app/Http/Controllers/V1/Admin/Company/CompaniesController.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Company;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Company;

use Crater\Http\Controllers\Controller;
use Crater\Http\Requests\CompaniesRequest;
use Crater\Http\Resources\CompanyResource;
use Crater\Models\Company;
use Crater\Models\User;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Http\Requests\CompaniesRequest;
use InvoiceShelf\Http\Resources\CompanyResource;
use InvoiceShelf\Models\Company;
use InvoiceShelf\Models\User;
use Illuminate\Http\Request;
use Silber\Bouncer\BouncerFacade;
use Vinkla\Hashids\Facades\Hashids;
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/V1/Admin/Company/CompanyController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Company;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Company;

use Crater\Http\Controllers\Controller;
use Crater\Http\Resources\CompanyResource;
use Crater\Models\Company;
use InvoiceShelf\Http\Controllers\Controller;
use InvoiceShelf\Http\Resources\CompanyResource;
use InvoiceShelf\Models\Company;
use Illuminate\Http\Request;

class CompanyController extends Controller
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Config;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Config;

use Crater\Http\Controllers\Controller;
use InvoiceShelf\Http\Controllers\Controller;
use Illuminate\Http\Request;

class FiscalYearsController extends Controller
Expand All @@ -16,7 +16,7 @@ class FiscalYearsController extends Controller
public function __invoke(Request $request)
{
return response()->json([
'fiscal_years' => config('crater.fiscal_years'),
'fiscal_years' => config('invoiceshelf.fiscal_years'),
]);
}
}
6 changes: 3 additions & 3 deletions app/Http/Controllers/V1/Admin/Config/LanguagesController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Config;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Config;

use Crater\Http\Controllers\Controller;
use InvoiceShelf\Http\Controllers\Controller;
use Illuminate\Http\Request;

class LanguagesController extends Controller
Expand All @@ -16,7 +16,7 @@ class LanguagesController extends Controller
public function __invoke(Request $request)
{
return response()->json([
'languages' => config('crater.languages'),
'languages' => config('invoiceshelf.languages'),
]);
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Crater\Http\Controllers\V1\Admin\Config;
namespace InvoiceShelf\Http\Controllers\V1\Admin\Config;

use Crater\Http\Controllers\Controller;
use InvoiceShelf\Http\Controllers\Controller;
use Illuminate\Http\Request;

class RetrospectiveEditsController extends Controller
Expand All @@ -16,7 +16,7 @@ class RetrospectiveEditsController extends Controller
public function __invoke(Request $request)
{
return response()->json([
'retrospective_edits' => config('crater.retrospective_edits'),
'retrospective_edits' => config('invoiceshelf.retrospective_edits'),
]);
}
}
Loading