Skip to content

Commit

Permalink
package register added trail added
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Apr 21, 2024
1 parent 33645f0 commit 9e0afe3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ChatServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@

use Fintech\Chat\Commands\ChatCommand;
use Fintech\Chat\Commands\InstallCommand;
use Fintech\Core\Traits\RegisterPackageTrait;
use Illuminate\Support\ServiceProvider;

class ChatServiceProvider extends ServiceProvider
{
use RegisterPackageTrait;

/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->packageCode = 'chat';

$this->mergeConfigFrom(
__DIR__.'/../config/chat.php', 'fintech.chat'
);
Expand All @@ -28,6 +33,8 @@ public function register()
*/
public function boot(): void
{
$this->injectOnConfig();

$this->publishes([
__DIR__.'/../config/chat.php' => config_path('fintech/chat.php'),
]);
Expand Down

0 comments on commit 9e0afe3

Please sign in to comment.