ldc-gen-game-web/app/Http/Controllers/HowToPlayController.php
Noah Lancien 949b7ca13e phpcs
2023-08-24 12:59:51 +00:00

19 lines
396 B
PHP

<?php
namespace App\Http\Controllers;
class HowToPlayController extends Controller
{
/**
* index
*
* @return \Illuminate\View\View|Illuminate\Http\RedirectResponse
*/
public function index()
{
if (view()->exists('front.basic.how-to-play')) {
return view('front.basic.how-to-play');
}
return redirect()->route('home');
}
}