Skip to content

Instantly share code, notes, and snippets.

@alouini333
Created January 19, 2020 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alouini333/901c7e1ed5ebf59dfc7b7a8d0c5885f0 to your computer and use it in GitHub Desktop.
Save alouini333/901c7e1ed5ebf59dfc7b7a8d0c5885f0 to your computer and use it in GitHub Desktop.
AppServiceProvider.php for https://medium.com/p/576c8fa5f498
<?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