。私はこの問題を引き起こしていることは確かではありません。イムわからない私のroutes.php
ファイルここlaravel私は<code>auth/login</code>パスにリダイレクト<code>mywebsite.com/home</code>に行くが、それは、このエラーメッセージをロードするたびにlaravel 5.1</p> <p>での作業5.1ルート・エラー・メッセージ
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function() {
return view('welcome');
});
// Authentication routes
Route::get('login', 'Auth\[email protected]');
Route::post('auth/login', 'Auth\[email protected]');
Route::get('auth/logout', 'Auth\[email protected]');
// Registration routes
Route::get('register', 'Auth\[email protected]');
Route::post('auth/register', 'Auth\[email protected]');
Route::controllers(['password' => 'Auth\PasswordController',]);
Route::get('/home', '[email protected]');
// Using A Route Closure
Route::get('profile', ['middleware' => 'auth', function() {
// Only authenticated users may enter...
Route::auth();
}]);
<?php
namespace App\Http\Controllers;
use Auth;
use App\Http\Requests;
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()
{
if(Auth::check()) {
return view('home');
}
return view('auth/login');
}
}
マイHomeController.php
インデックス機能はかなりstriaght前方にある私のHomeController.php
ファイルが何であるかをここで
MethodNotAllowedHttpException in RouteCollection.php line 219:
を見下ろすイムです。すべてのヘルプ