Example #1
0
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
$app->register(App\Providers\CommandServiceProvider::class);
$app->register(Vluzrmos\Tinker\TinkerServiceProvider::class);
$app->register(\Telegram\Bot\Laravel\TelegramServiceProvider::class);
$app->register(\Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class);
$app->register(\GrahamCampbell\Throttle\ThrottleServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
/*
|--------------------------------------------------------------------------
| Load The Application Routes
|--------------------------------------------------------------------------
|
| Next we will include the routes file so that they can all be added to
| the application. This will provide all of the URLs the application
| can respond to, as well as the controllers that may handle them.
|
*/
$app->group(['namespace' => 'App\\Http\\Controllers'], function ($app) {
    require __DIR__ . '/../app/Http/routes.php';
});
Telegram::addCommands([\App\Console\Commands\Telegram\StartCommand::class, \App\Console\Commands\Telegram\TopCommand::class, \App\Console\Commands\Telegram\StatsCommand::class, \App\Console\Commands\Telegram\FunCommand::class, \App\Console\Commands\Telegram\AddNewSiteCommand::class, \App\Console\Commands\Telegram\IgnoreSiteCommand::class]);
/*
 * Register Facades
 */
class_alias('Tymon\\JWTAuth\\Facades\\JWTAuth', 'JWTAuth');
class_alias('GrahamCampbell\\Throttle\\Facades\\Throttle', 'Throttle');
return $app;