Skip to content

Commit

Permalink
transaction repo updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Feb 29, 2024
1 parent 530d336 commit 998ef4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 25 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"extra": {
"laravel": {
"providers": [
"Fintech\\Chat\\ChatServiceProvider"
"Fintech\\Chat\\ChatServiceProvider",
"Fintech\\Chat\\RepositoryServiceProvider",
"Fintech\\Chat\\RouteServiceProvider"
],
"aliases": {
"Chat": "Fintech\\Chat\\Facades\\Chat"
Expand Down
3 changes: 0 additions & 3 deletions src/ChatServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ public function register()
$this->mergeConfigFrom(
__DIR__ . '/../config/chat.php', 'fintech.chat'
);

$this->app->register(RouteServiceProvider::class);
$this->app->register(RepositoryServiceProvider::class);
}

/**
Expand Down
8 changes: 1 addition & 7 deletions src/Repositories/Eloquent/ChatGroupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ class ChatGroupRepository extends EloquentRepository implements InterfacesChatGr
{
public function __construct()
{
$model = app(config('fintech.chat.chat_group_model', ChatGroup::class));

if (!$model instanceof Model) {
throw new InvalidArgumentException("Eloquent repository require model class to be `Illuminate\Database\Eloquent\Model` instance.");
}

$this->model = $model;
parent::__construct(config('fintech.chat.chat_group_model', ChatGroup::class));
}

/**
Expand Down
8 changes: 1 addition & 7 deletions src/Repositories/Eloquent/ChatMessageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ class ChatMessageRepository extends EloquentRepository implements InterfacesChat
{
public function __construct()
{
$model = app(config('fintech.chat.chat_message_model', ChatMessage::class));

if (!$model instanceof Model) {
throw new InvalidArgumentException("Eloquent repository require model class to be `Illuminate\Database\Eloquent\Model` instance.");
}

$this->model = $model;
parent::__construct(config('fintech.chat.chat_message_model', ChatMessage::class));
}

/**
Expand Down
8 changes: 1 addition & 7 deletions src/Repositories/Eloquent/ChatParticipantRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ class ChatParticipantRepository extends EloquentRepository implements Interfaces
{
public function __construct()
{
$model = app(config('fintech.chat.chat_participant_model', ChatParticipant::class));

if (!$model instanceof Model) {
throw new InvalidArgumentException("Eloquent repository require model class to be `Illuminate\Database\Eloquent\Model` instance.");
}

$this->model = $model;
parent::__construct(config('fintech.chat.chat_participant_model', ChatParticipant::class));
}

/**
Expand Down

0 comments on commit 998ef4e

Please sign in to comment.