Commit e1102d24 authored by yinxiaoling's avatar yinxiaoling

登录及首页路由视图文件添加

parent 1573605b
Pipeline #2477 failed with stages
......@@ -6,12 +6,12 @@ APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_PORT=5432
DB_DATABASE=postgres
DB_USERNAME=postgres
DB_PASSWORD=yhhl123
BROADCAST_DRIVER=log
CACHE_DRIVER=file
......@@ -19,9 +19,9 @@ QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_HOST=120.77.61.117
REDIS_PASSWORD=5gwW1hWM7xAtFdKxxbeAhzDpW50MOdimAMMw
REDIS_PORT=8293
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
......
<?php
namespace App\Http\Controllers;
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(){
//dd('首页');
return view('home');
}
}
......@@ -67,7 +67,7 @@ return [
|
*/
'timezone' => 'UTC',
'timezone' => 'PRC',
/*
|--------------------------------------------------------------------------
......
<?php
dd('登录视图页');
\ No newline at end of file
<?php
dd('登录后首页视图页');
\ No newline at end of file
......@@ -14,3 +14,8 @@
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment