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

19 lines
389 B
PHP
Raw Normal View History

2020-10-29 15:40:23 +01:00
<?php
namespace App\Http\Controllers;
class HowToPlayController extends Controller
{
2022-08-11 10:26:29 +02:00
/**
* index
* @return \Illuminate\View\View|Illuminate\Http\RedirectResponse
*/
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
}
}