這是我alert.blade.php顯示,我的警報不laravel 5
@if(Session::has('info'))
<div class="alert alert-info">{{ Session::get('info') }}</div>
@endif
,這是我welcome.blade.php,
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
@include('alert')
</body>
</html>
而且,這裏是我的routes.php文件,
Route::get('/', function() {
return view('welcome')->with('info','Hello World');
});
任何幫助將是非常讚賞提前
謝謝