TimeLogger moved, League ranking also for not completed but started rounds
This commit is contained in:
parent
78a4a04cdf
commit
90c6d60ecd
26 changed files with 692 additions and 376 deletions
|
|
@ -9,7 +9,7 @@ use Carbon\Carbon;
|
|||
use Auth;
|
||||
use App\User;
|
||||
use Log;
|
||||
|
||||
use App\MyClasses\TimeLogger;
|
||||
|
||||
class GamesController extends Controller
|
||||
{
|
||||
|
|
@ -23,8 +23,11 @@ class GamesController extends Controller
|
|||
|
||||
public function store() {
|
||||
if (Auth::guest()) { return redirect("/login"); }
|
||||
// Validate form
|
||||
|
||||
$a=new TimeLogger("GamesController::store");
|
||||
Log::info($a->getStartMessage());
|
||||
|
||||
// Validate form
|
||||
Log::info("Starting validation");
|
||||
$this->validate(request(), [
|
||||
'id' => 'required',
|
||||
|
|
@ -60,6 +63,8 @@ class GamesController extends Controller
|
|||
$game->kickoff=User::toDBDate(request('kickoff'));
|
||||
$game->save();
|
||||
|
||||
Log::info($a->getEndMessage());
|
||||
|
||||
// Redirect to the Rounds Index
|
||||
return redirect('/rounds#'.$game->round_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue