![]() ![]() use Illuminate\ Notifications\ Notifiable Now we are going to set up our Model and we will use the Notifiable trait in the Model class so that we can use Notifications. Read Also :- Turbolinks js- Make Naviagtion In Web Application Faster Setup Model 'access_token' => getenv( 'FACEBOOK_ACCESS_TOKEN'), 'app_secret' => getenv( 'FACEBOOK_APP_SECRET'), In order to load them, add this to your config/services.php file. Now you need to go to your facebook page to get the App Id and App Secret Key in order to start using this notification channel.After this place them in your. NotificationChannels\FacebookPoster\FacebookPosterServiceProvider:: class, If you are below any version of Laravel below 5.5 you need to register the service provider class to the config/app.php file. composer require laravel-notification-channels/facebook-poster Open your command prompt and go to your desired project folder and type the following command. Out of many notification channels avaialbale on the Git Hub we will be using Laravel-notification-channel. I will give you a full overview of the available methods and code snippet so that you can understand it. Now in the blog, we will be using FacebookPoster Notification to automatically post to the Facebook page. ![]() In addition to that Laravel notifications can be stored in the Database as well, so you can display them anywhere in your application. Laravel notification can be used to send E-Mail, send SMS (via Nexmo), and Slack Notifications. This notification feature is fully available in the later versions of the framework. One of the many powerful features of the Laravel is the Laravel Notification introduced in the Laravel 5.3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |