engelsystem/src/Controllers/HomeController.php

17 lines
329 B
PHP
Raw Normal View History

2019-06-13 15:18:47 +02:00
<?php
namespace Engelsystem\Controllers;
use Engelsystem\Http\Exceptions\HttpTemporaryRedirect;
class HomeController extends BaseController
{
/**
* @throws HttpTemporaryRedirect
*/
public function index()
{
throw new HttpTemporaryRedirect(auth()->user() ? config('home_site') : 'login');
}
}