コード例 #1
0
ファイル: routes.php プロジェクト: romainmasc/jackmarshall
    if ($round == null) {
        App::abort(404);
    } else {
        return $round;
    }
});
Route::bind('map', function ($key, $route) {
    $round = Map::find($key);
    if ($round == null) {
        App::abort(404);
    } else {
        return $round;
    }
});
Route::bind('scenario', function ($key, $route) {
    $round = Scenario::find($key);
    if ($round == null) {
        App::abort(404);
    } else {
        return $round;
    }
});
Route::bind('report', function ($key, $route) {
    $report = Report::find($key);
    if ($report == null) {
        App::abort(404);
    } else {
        return $report;
    }
});
Route::group(array('before' => 'auth'), function () {