forked from munafio/chatify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements, fixes, & new console command.
- Loading branch information
Showing
2 changed files
with
105 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace Chatify\Console; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class PublishCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'chatify:publish {--force : Overwrite any existing files}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Publish all of the chatify assets'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle() | ||
{ | ||
$this->call('vendor:publish', [ | ||
'--tag' => 'chatify-config', | ||
'--force' => $this->option('force'), | ||
]); | ||
|
||
$this->call('vendor:publish', [ | ||
'--tag' => 'chatify-views', | ||
'--force' => true, | ||
]); | ||
|
||
$this->call('vendor:publish', [ | ||
'--tag' => 'chatify-assets', | ||
'--force' => true, | ||
]); | ||
} | ||
} |