Better use this instead then.
このコミットが含まれているのは:
コミット
ea51facdb7
|
@ -4,13 +4,15 @@ namespace App\Http\Controllers;
|
|||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller {
|
||||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
}
|
||||
|
||||
|
@ -19,7 +21,8 @@ class HomeController extends Controller {
|
|||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index() {
|
||||
public function index()
|
||||
{
|
||||
return view('home');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
@extends('layouts.master')
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<h1>Hello</h1>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Dashboard</div>
|
||||
|
||||
<div class="panel-body">
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
You are logged in!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
|
|
@ -14,13 +14,11 @@
|
|||
header('Access-Control-Allow-Origin: *');
|
||||
header('Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept"');
|
||||
|
||||
// FRONTEND
|
||||
Route::get('/', function () {
|
||||
return view('home');
|
||||
});
|
||||
|
||||
Auth::routes();
|
||||
|
||||
// FRONTEND
|
||||
Route::get('/', 'HomeController@index')->name('home');
|
||||
|
||||
// User-only stuff
|
||||
// Route::get('wara', 'WaraController@kusa')->middleware('auth');
|
||||
|
||||
|
@ -67,6 +65,3 @@ Route::post('/api/rpc/example/adduser', 'ExampleController@addUser');
|
|||
Route::post('/api/rpc/example/edituser', 'ExampleController@editUser');
|
||||
Route::post('/api/rpc/example/deleteuser', 'ExampleController@deleteUser');
|
||||
Route::post('/api/rpc/example/browse', 'ExampleController@browse');*/
|
||||
//Auth::routes();
|
||||
|
||||
//Route::get('/home', 'HomeController@index')->name('home');
|
||||
|
|
新しいイシューから参照