2024-06-24 15:02:43 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Club;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
|
|
|
|
|
|
class HomeController extends Controller
|
|
|
|
|
{
|
|
|
|
|
/**
|
2024-07-05 10:35:26 +02:00
|
|
|
* Show index page
|
2024-06-24 15:02:43 +02:00
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Contracts\View\View
|
|
|
|
|
*/
|
|
|
|
|
public function index(): \Illuminate\Contracts\View\View
|
|
|
|
|
{
|
2024-07-01 11:13:29 +02:00
|
|
|
if (auth('club')->check()) {
|
|
|
|
|
return view('club.pages.home.homepage');
|
|
|
|
|
}
|
|
|
|
|
return view('club.pages.home.guest');
|
2024-06-24 15:02:43 +02:00
|
|
|
}
|
|
|
|
|
}
|