-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
26 changed files
with
307 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [3x1io] |
Empty file.
63 changes: 63 additions & 0 deletions
63
Modules/CircleContacts/App/Console/CircleContactsInstall.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,63 @@ | ||
<?php | ||
|
||
namespace Modules\CircleContacts\App\Console; | ||
|
||
use Illuminate\Console\Command; | ||
use Modules\CircleApps\App\Models\App; | ||
use TomatoPHP\ConsoleHelpers\Traits\RunCommand; | ||
|
||
class CircleContactsInstall extends Command | ||
{ | ||
use RunCommand; | ||
|
||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $name = 'circle-contacts: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-contacts')->first(); | ||
if(!$app){ | ||
$app = new App(); | ||
$app->key = 'circle-contacts'; | ||
$app->name = 'Circle Contacts'; | ||
$app->description = 'Manage your contacts and customers from your profile'; | ||
$app->is_active = true; | ||
$app->is_free = true; | ||
$app->status = "active"; | ||
$app->homepage = "https://www.github.com/tomatophp/circle-contacts"; | ||
$app->github = "https://www.github.com/tomatophp/circle-contacts"; | ||
$app->docs = "https://www.github.com/tomatophp/circle-contacts"; | ||
$app->privacy = "https://www.github.com/tomatophp/circle-contacts"; | ||
$app->faq = "https://www.github.com/tomatophp/circle-contacts"; | ||
$app->email = "[email protected]"; | ||
$app->save(); | ||
} | ||
$this->callSilent('optimize:clear'); | ||
$this->artisanCommand(["migrate"]); | ||
$this->artisanCommand(["optimize:clear"]); | ||
$this->info('Circle Contacts App installed successfully.'); | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
{ | ||
"name": "nwidart/circlecontacts", | ||
"description": "", | ||
"name": "tomatophp/circle-contacts-module", | ||
"type": "laravel-module", | ||
"description": "Manage your contacts and customers from your profile", | ||
"license": "MIT", | ||
"keywords": [ | ||
"laravel", | ||
"module", | ||
"contacts", | ||
"customers", | ||
"profile", | ||
"circlexo", | ||
"tomatophp" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Nicolas Widart", | ||
"email": "[email protected]" | ||
"name": "Fady Mondy", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"extra": { | ||
|
@@ -27,5 +38,13 @@ | |
"psr-4": { | ||
"Modules\\CircleContacts\\Tests\\": "tests/" | ||
} | ||
}, | ||
"require": { | ||
"php": "^8.1|^8.2", | ||
"tomatophp/tomato-admin": "^1.2", | ||
"tomatophp/tomato-plugins": "^1.2", | ||
"tomatophp/console-helpers": "^1.1", | ||
"joshbrw/laravel-module-installer": "^2.0", | ||
"nwidart/laravel-modules": "^10.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +0,0 @@ | ||
* | ||
!.gitignore | ||
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\CircleApps\\App\\Providers\\CircleAppsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\CircleContacts\\App\\Providers\\CircleContactsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\CircleXO\\App\\Providers\\CircleXOServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoCategory\\App\\Providers\\TomatoCategoryServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoCms\\App\\Providers\\TomatoCmsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoCrm\\App\\Providers\\TomatoCrmServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoForms\\App\\Providers\\TomatoFormsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoLocations\\App\\Providers\\TomatoLocationsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoMenus\\App\\Providers\\TomatoMenusServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoNotifications\\App\\Providers\\TomatoNotificationsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoRoles\\App\\Providers\\TomatoRolesServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoSections\\App\\Providers\\TomatoSectionsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoSettings\\App\\Providers\\TomatoSettingsServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoSupport\\App\\Providers\\TomatoSupportServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
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,13 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Modules\\TomatoThemes\\App\\Providers\\TomatoThemesServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
), | ||
); |
Oops, something went wrong.