ldc-gen-game-web/app/Http/Controllers/Fo/HowToPlayController.php

22 lines
494 B
PHP
Raw Normal View History

2020-10-29 15:40:23 +01:00
<?php
2022-03-15 16:27:41 +01:00
namespace App\Http\Controllers\Fo;
use App\Http\Controllers\Controller;
2020-10-29 15:40:23 +01:00
class HowToPlayController extends Controller
{
2022-03-15 16:27:41 +01:00
/**
* How to play page
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
*/
2021-08-18 17:08:02 +02:00
public function index()
{
if (view()->exists('front.basic.how-to-play')) {
2020-11-12 17:22:54 +01:00
return view('front.basic.how-to-play');
2021-08-18 17:08:02 +02:00
}
2020-11-12 17:22:54 +01:00
return redirect()->route('home');
2020-10-29 15:40:23 +01:00
}
}