Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
kingflamez
/
laravelrave
/
src
:
RaveServiceProvider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace KingFlamez\Rave; use Illuminate\Support\ServiceProvider; class RaveServiceProvider extends ServiceProvider { protected $defer = false; /** * Perform post-registration booting of services. * * @return void */ public function boot() { $config = realpath(__DIR__.'/../resources/config/flutterwave.php'); $this->publishes([ $config => config_path('flutterwave.php') ]); } /** * Register any package services. * * @return void */ public function register() { $this->app->singleton('laravelrave', function ($app) { return new Rave($app->make("request")); }); $this->app->alias('laravelrave', "KingFlamez\Rave\Rave"); } /** * Get the services provided by the provider * * @return array */ public function provides() { return ['laravelrave']; } }