Working on app structure.
This commit is contained in:
32
app/providers/RouteServiceProvider.php
Normal file
32
app/providers/RouteServiceProvider.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php namespace Providers;
|
||||
|
||||
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Called before routes are registered.
|
||||
*
|
||||
* Register any model bindings or pattern based filters.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function before()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function map()
|
||||
{
|
||||
$this->app->booted(function()
|
||||
{
|
||||
require app('path').'/routes.php';
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user