.phpファイルを.blade.phpに変更するとエラーが発生しました。 変更する前に、このエラーが発生しました。Laravel ::要求されたリソース/ helloがこのサーバ上に見つかりませんでした
Route::get('hello','[email protected]');
HelloController
public function index()
{
$data = array(
'name' => 'Rakesh',
'email' => '[email protected]');
return View::make('hello.index')->with('data', $data);
}
/public/hello/index.blade.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Laravel 5.3 - Home page</title>
</head>
<body>
<h1>Welcome Hello index </h1>
<h1>{!!$data!!}</h1>
<h1>{!!$data['email']!!}</h1>
</body>
</html>
エラー
The requested resource /hello was not found on this server.
ありがとう、それは私のせいです。私はyoutubeのビデオを参照してください。 –
それは仕事です。ありがとう –