diff --git a/composer.json b/composer.json index d30701c..dced0c2 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "Plugin\\": "app/" }, "files": [ - "functions.php" + "helpers.php" ] }, "require": { diff --git a/functions.php b/functions.php index b3d9bbc..e3e3146 100644 --- a/functions.php +++ b/functions.php @@ -1 +1,100 @@ middleware([ + Radiate\Foundation\Http\Middleware\TrimStrings::class, + Radiate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, +]); + +$app->routeMiddleware([ + 'auth' => Radiate\Auth\Middleware\Authenticate::class, + 'ajax' => [ + // + ], + 'api' => [ + // + ], +]); + + +/** + * ----------------------------------------------------------------------------- + * Autoloaded Service Providers + * ----------------------------------------------------------------------------- + * + * The service providers listed here will be loaded on the request + * to your application. Feel free to add your own services to + * grant expanded functionality to your applications. + * + */ + +$app->register(Radiate\Auth\AuthServiceProvider::class); +$app->register(Radiate\Mail\MailServiceProvider::class); +$app->register(Radiate\Routing\RoutingServiceProvider::class); +$app->register(Radiate\View\ViewServiceProvider::class); + +$app->register(Theme\Providers\EventServiceProvider::class); +$app->register(Theme\Providers\RouteServiceProvider::class); + + +/** + * ----------------------------------------------------------------------------- + * Run The Application + * ----------------------------------------------------------------------------- + * + * Once we have the application, we can handle the incoming request and + * allow the client to enjoy the creative and wonderful + * application we have prepared for them. + * + */ + +$app->boot(); diff --git a/index.php b/index.php index 9d3bb06..460dbc6 100644 --- a/index.php +++ b/index.php @@ -1,96 +1,2 @@ middleware([ - Radiate\Foundation\Http\Middleware\TrimStrings::class, - Radiate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, -]); - -$app->routeMiddleware([ - 'auth' => Radiate\Auth\Middleware\Authenticate::class, - 'ajax' => [ - // - ], - 'api' => [ - // - ], -]); - - -/** - * ----------------------------------------------------------------------------- - * Autoloaded Service Providers - * ----------------------------------------------------------------------------- - * - * The service providers listed here will be loaded on the request - * to your application. Feel free to add your own services to - * grant expanded functionality to your applications. - * - */ - -$app->register(Plugin\Providers\EventServiceProvider::class); -$app->register(Plugin\Providers\RouteServiceProvider::class); -$app->register(Radiate\Mail\MailServiceProvider::class); - - -/** - * ----------------------------------------------------------------------------- - * Run The Application - * ----------------------------------------------------------------------------- - * - * Once we have the application, we can handle the incoming request and - * allow the client to enjoy the creative and wonderful - * application we have prepared for them. - * - */ - -$app->boot(); +// silence is golden. \ No newline at end of file