-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
2,993 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Modules/CircleApps/Database/migrations/2024_03_30_134635_update_apps_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('apps', function (Blueprint $table) { | ||
$table->json('required')->nullable(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('apps', function (Blueprint $table) { | ||
$table->dropColumn('required'); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 21 additions & 10 deletions
31
Modules/CircleApps/resources/views/components/app-card.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [3x1io] |
Empty file.
65 changes: 65 additions & 0 deletions
65
Modules/CircleInvoices/App/Console/CircleInvoicesInstall.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace Modules\CircleInvoices\App\Console; | ||
|
||
use Illuminate\Console\Command; | ||
use Modules\CircleApps\App\Models\App; | ||
use TomatoPHP\ConsoleHelpers\Traits\RunCommand; | ||
|
||
class CircleInvoicesInstall extends Command | ||
{ | ||
use RunCommand; | ||
|
||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'circle-invoices:install'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'install package and publish assets'; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle() | ||
{ | ||
$this->info('Install App'); | ||
$app = App::where('key', 'circle-invoices')->first(); | ||
if(!$app){ | ||
$app = new App(); | ||
$app->key = 'circle-invoices'; | ||
$app->name = 'Circle Invoices'; | ||
$app->description = 'Invoices Generator With Custom Templates, to generate public invoices and your customer can download it'; | ||
$app->is_active = true; | ||
$app->is_free = true; | ||
$app->status = "active"; | ||
$app->homepage = "https://www.github.com/tomatophp/circle-invoices"; | ||
$app->github = "https://www.github.com/tomatophp/circle-invoices"; | ||
$app->docs = "https://www.github.com/tomatophp/circle-invoices"; | ||
$app->privacy = "https://www.github.com/tomatophp/circle-invoices"; | ||
$app->faq = "https://www.github.com/tomatophp/circle-invoices"; | ||
$app->email = "[email protected]"; | ||
$getContactsApp = App::where('key', 'circle-contacts')->first(); | ||
$app->required = [$getContactsApp->id]; | ||
$app->save(); | ||
} | ||
$this->callSilent('optimize:clear'); | ||
$this->artisanCommand(["migrate"]); | ||
$this->artisanCommand(["optimize:clear"]); | ||
$this->info('Circle Contacts App installed successfully.'); | ||
} | ||
} |
Empty file.
Empty file.
Oops, something went wrong.