Created
January 19, 2020 16:55
-
-
Save alouini333/901c7e1ed5ebf59dfc7b7a8d0c5885f0 to your computer and use it in GitHub Desktop.
AppServiceProvider.php for https://medium.com/p/576c8fa5f498
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Notifications\Channels\DatabaseChannel as IlluminateDatabaseChannel; | |
use Illuminate\Notifications\DatabaseNotification as BaseNotification; | |
use App\Channels\DatabaseChannel; | |
use App\DatabaseNotification; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ | |
$this->app->instance(IlluminateDatabaseChannel::class, new DatabaseChannel()); | |
$this->app->instance(BaseNotification::class, new DatabaseNotification()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment