这是我的路线
Route::post('/registerLandLord', 'RegisterLandLordController@register');
这是我的控制器
<?php
namespace App\Http\Controllers;
use DB;
use Storage;
use Illuminate\Http\Request;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class RegisterLandLordController extends BaseController
{
//use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function register(Request $request)
{
return view('registrationSuccessfull');
}
}
这是我的注册成功的完整视图
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Real Estate Management System</title>
<base href="http://127.0.0.1:8000/">
<link href="/CSS/interface.css" rel="stylesheet" type="text/css">
<!-- JQuery -->
<script src="/js/jquery-3.2.1.min(first).js" type='text/JavaScript'>
</script>
<!-- Styles -->
<style>
</style>
</head>
<body>
<div class="nav">
<button>Home</button>
</div>
<div>
<div class="continueButton">
<button>Continue</button>
</div>
<p></p>
</div>
<script type="text/JavaScript">
console.log('tunji');
</script>
</body>
但是laravel返回的页面是空白文档。请大家我该如何解决这个问题。 我如何获得内容开始显示! 尝试了以下 'php artisan view:clear'