-3
我試過每一件事情,甚至檢查了整個堆棧溢出。我的laravel刀片視圖沒有被渲染。存在內部服務器錯誤。默認的根視圖顯示,但其餘的都沒有。所有文件夾和文件的權限都很好,目前爲777。我很困難。會是什麼呢?即使腳視圖顯示,Laravel 5.2刀片視圖也不會呈現。內部服務器錯誤
我試過每一件事情,甚至檢查了整個堆棧溢出。我的laravel刀片視圖沒有被渲染。存在內部服務器錯誤。默認的根視圖顯示,但其餘的都沒有。所有文件夾和文件的權限都很好,目前爲777。我很困難。會是什麼呢?即使腳視圖顯示,Laravel 5.2刀片視圖也不會呈現。內部服務器錯誤
路線::組([ '中間件'=> [ '網絡'],函數(){
//Routes using UserController
Route::get('/welcome1ab', [
'uses'=>'[email protected]',
'as' => 'welcome1ab',
]);
Route::post('/welcome1ab', [
'uses'=>'[email protected]',
'as' => 'register1',
]);
Route::get('/', [
'uses'=>'[email protected]',
'as' => 'welcome',
]);
Route::get('/welcome1a', [
'uses'=>'[email protected]',
'as' => 'welcome1a',
]);
Controller functions
class UserController extends Controller{
public function getWelcome1ab(Request $request){
return view('welcome1ab');
}
public function getWelcome1a(Request $request){
return view('welcome1a');
}
public function getWelcome1(Request $request){
return view('welcome1');
}
public function getWelcome(Request $request){
return view('welcome');
}
你應該添加一些代碼的 –
可能是很多事情:/ DID你對你的視圖文件添加「blade.php」擴展?和777是廢話,永遠做生產,因爲它是一個巨大的安全問題;-) –
肯定的是,香港專業教育學院把它移到775是的,我已經得到.blade.php在擴展。我似乎不知道它是什麼。 – Moses