Create Laravel Auth

This commit is contained in:
2018-08-05 14:23:03 +08:00
parent 15325f103c
commit b7621addd3
8 changed files with 382 additions and 1 deletions

View File

@@ -6,8 +6,23 @@ use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('home.index');
return view('home');
}
}