php
1 2 3<?php 4 5namespace App\Http\Controllers; 6 7use Illuminate\Http\Request; 8 9 10 11 12 13 14class HelloController extends Controller 15{ 16public function __invoke(){ 17 18 return <<<EOF 19 20<html> 21<head> 22 <title>Hello</title> 23 <style> 24body{font-size:17pt;} 25h1{font-size:77pt;} 26</style> 27 28</head> 29<body> 30<h1>single Action</h1> 31<p>シングルアクションコントーラーのアクションです</p> 32</body> 33</html> 34 EOF; 35 36}} 37
上記を実行すると
18行目 <html> ←ここの部分
"Invalid body indentation level (expecting an indentation level of at least 10)"
とエラーがでます。
無効の ボディ 字下げ レベル (期待して 字下げ 少なくとも 10)
とエラー文を調べたのですが
あまり、なんのエラーなのか理解できませんでした。
教えていただけたら助かります。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/26 17:01
2019/05/26 17:12
2019/05/26 18:11
2019/05/26 18:17
2019/05/27 00:21