28 lines
547 B
PHP
Executable File
28 lines
547 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Http\Request;
|
|
|
|
class RoutingController extends Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->middleware('auth'); //->except('index');
|
|
}
|
|
|
|
/**
|
|
* Display a listing of the resource.
|
|
*
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function index(Request $request)
|
|
{
|
|
if (Auth::user()) {
|
|
return redirect('index');
|
|
} else {
|
|
return view('landing');
|
|
}
|
|
}
|
|
}
|