Initial Commit
This commit is contained in:
commit
ddf09fe00c
113 changed files with 187148 additions and 0 deletions
17
app/Http/Controllers/SettingController.php
Normal file
17
app/Http/Controllers/SettingController.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Game\GameService;
|
||||
use App\Models\Setting;
|
||||
|
||||
class SettingController extends Controller
|
||||
{
|
||||
public function hash(GameService $service, Setting $setting)
|
||||
{
|
||||
// Generate a new game with these settings.
|
||||
$service->newSession($setting->value);
|
||||
|
||||
return redirect()->route('game');
|
||||
}
|
||||
}
|
||||
Reference in a new issue