Avoid the deprecated controller method

This commit is contained in:
Graham Campbell
2016-05-25 12:15:42 +01:00
parent 5cbe3ba708
commit d6495dec96
+5 -1
View File
@@ -17,6 +17,7 @@ use Illuminate\Contracts\Routing\Registrar;
* This is the setup routes class. * This is the setup routes class.
* *
* @author James Brooks <james@alt-three.com> * @author James Brooks <james@alt-three.com>
* @author Graham Campbell <graham@alt-three.com>
*/ */
class SetupRoutes class SetupRoutes
{ {
@@ -30,7 +31,10 @@ class SetupRoutes
public function map(Registrar $router) public function map(Registrar $router)
{ {
$router->group(['middleware' => ['web', 'setup']], function (Registrar $router) { $router->group(['middleware' => ['web', 'setup']], function (Registrar $router) {
$router->controller('setup', 'SetupController'); $router->get('setup', 'SetupController@getIndex');
$router->post('setup/step1', 'SetupController@postStep1');
$router->post('setup/step2', 'SetupController@postStep2');
$router->post('setup/step3', 'SetupController@postStep3');
}); });
} }
} }