{"id":5058,"date":"2019-11-20T19:33:38","date_gmt":"2019-11-20T10:33:38","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=5058"},"modified":"2019-11-20T19:34:37","modified_gmt":"2019-11-20T10:34:37","slug":"%e3%80%90laravel-5-8-13%e3%80%91error%e3%82%92bootstrap3-4%e3%83%bbtailwind-css%e3%83%bbsemantic-ui%e3%81%a7%e4%bd%bf%e3%81%a3%e3%81%9f%e5%ae%9f%e4%be%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=5058","title":{"rendered":"\u3010Laravel 5.8.13+\u3011@error\u3092Bootstrap3\/4\u30fbTailwind CSS\u30fbSemantic UI\u3067\u4f7f\u3063\u305f\u5b9f\u4f8b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de<a href=\"https:\/\/blog.capilano-fw.com\/?p=5043\">\u3010Laravel 6.2+\u3011\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u78ba\u8a8d\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u4e2d\u3067\u300c\u305d\u3046\u3044\u3048\u3070\u3044\u3064\u304b\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306b\u5fd8\u308c\u3066\u3044\u305f\u300d\u3068\u3044\u3046\u65b0\u6a5f\u80fd\uff08\u6bd4\u8f03\u7684\u3067\u3059\u304c\uff09\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4e2d\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f@error\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001<code>Laravel 5.8.13<\/code>\u3067\u8ffd\u52a0\u3055\u308c\u305f\u3082\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30f3\u30d7\u30eb\u306b<strong>\u300c\u6307\u5b9a\u3057\u305f\u540d\u524d\u306e\u30a8\u30e9\u30fc\u304c\u3042\u308c\u3070\u8868\u793a\u3055\u308c\u308b\u300d<\/strong>\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><strong>@error('email')<\/strong>\r\n    &lt;!-- email\u306b\u30a8\u30e9\u30fc\u304c\u3042\u308c\u3070\u3001\u3053\u3053\u304c\u8868\u793a\u3055\u308c\u308b --&gt;\r\n<strong>    {{ $message }}<\/strong>\r\n<strong>@enderror<\/strong><\/pre>\n<p>\u4f7f\u3044\u65b9\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u3053\u308c\u4ee5\u4e0a\u8aac\u660e\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3058\u3083\u3042\u3001\u3053\u306e<code>@error<\/code>\u3092\u4ee5\u4e0b\u306e\u6709\u540dCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u4e00\u7dd2\u306b\u4f7f\u3046\u5834\u5408\u306f\u3069\u3046\u306a\u308b\u306e\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u4eca\u56de\u306f\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>Bootstrap 4<\/li>\n<li>Bootstrap 3<\/li>\n<li>Tailwind CSS<\/li>\n<li>Semantic UI<\/li>\n<\/ul>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3405 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png\" alt=\"\" width=\"310\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18.png 310w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_18-291x300.png 291w\" sizes=\"auto, (max-width: 310px) 100vw, 310px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a Laravel 6.x<\/p>\n<h1>\u307e\u305a\u306f\u6e96\u5099<\/h1>\n<p><code>@error<\/code>\u90e8\u5206\u306f\u9001\u4fe1\u5185\u5bb9\u306b\u30a8\u30e9\u30fc\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u308b\u90e8\u5206\u306a\u306e\u3067\u3001\u5148\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u3059\u3067\u306b\u304a\u6301\u3061\u306e\u65b9\u306f\u6b21\u306e\u9805\u76ee\u307e\u3067\u8aad\u307f\u98db\u3070\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u30eb\u30fc\u30c8\u306f\u3001\u9001\u4fe1\u30d5\u30a9\u30fc\u30e0\u3068POST\u9001\u4fe1\u3059\u308b\u5148\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<pre><strong>Route::get('blade_error\/create', 'BladeErrorController@create');<\/strong>\r\n<strong>Route::post('blade_error', 'BladeErrorController@store');<\/strong><\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u6b21\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller BladeErrorController<\/strong><\/pre>\n<p>\u4f5c\u6210\u3055\u308c\u305f<code>app\/Http\/Controllers\/BladeErrorController.php<\/code>\u306e\u4e2d\u8eab\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass BladeErrorController extends Controller\r\n{\r\n    <strong>public function create() {<\/strong>\r\n\r\n<strong>        return view('blade_error.create');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function store(Request $request) {<\/strong>\r\n\r\n<strong>        \/\/ \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong>\r\n<strong>        $request-&gt;validate([<\/strong>\r\n<strong>            'email' =&gt; 'required|email'<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<h2>\u30d3\u30e5\u30fc<\/h2>\n<p>\u6700\u5f8c\u306b\u30d3\u30e5\u30fc\u3067\u3059\u3002<br \/>\n<code>resources\/views\/blade_error\/create.blade.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;\/head&gt;\r\n&lt;body style=\"padding:15px;\"&gt;\r\n    &lt;form method=\"post\" action=\"\/blade_error\"&gt;\r\n        @csrf\r\n\r\n        &lt;!-- \u3053\u3053\u306b\u5404CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u3064\u304f\u308b --&gt;\r\n\r\n    &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3067\u306f\u3001\u3053\u3053\u304b\u3089\u304c\u5404CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u305f\u30d5\u30a9\u30fc\u30e0\u306e\u5b9f\u88c5\u3067\u3059\uff01<\/p>\n<h1>\u5404CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067@error\u3092\u3064\u304b\u3046\u5b9f\u4f8b<\/h1>\n<h2>Bootstrap 4<\/h2>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body style=\"padding:15px;\"&gt;\r\n    &lt;form method=\"post\" action=\"\/blade_error\"&gt;\r\n        @csrf\r\n        &lt;!-- Bootstrap 4.3 --&gt;\r\n        &lt;div class=\"form-group\"&gt;\r\n            &lt;label&gt;\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/label&gt;\r\n            &lt;input name=\"email\" type=\"text\" class=\"form-control <strong>@error('email') is-invalid @enderror<\/strong>\"&gt;\r\n            <strong>@error('email')<\/strong>\r\n<strong>            &lt;div class=\"invalid-feedback\"&gt;<\/strong>\r\n<strong>                {{ $message }}<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            @enderror<\/strong>\r\n        &lt;\/div&gt;\r\n        &lt;button class=\"btn btn-primary\" type=\"submit\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;\r\n    &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><code>Bootstrap 4<\/code>\u306e\u5834\u5408\u306f\u5165\u529b\u30dc\u30c3\u30af\u30b9\u3092\u8d64\u7dda\u306b\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u672c\u4f53\u3092\u8868\u793a\u3059\u308b\uff12\u30f6\u6240\u304c\u53ef\u5909\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u8868\u793a\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5060\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_1.png\" alt=\"\" width=\"617\" height=\"165\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_1.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_1-300x80.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5059\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_2.png\" alt=\"\" width=\"617\" height=\"195\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_2.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_2-300x95.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<h2>Bootstrap 3<\/h2>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.7\/css\/bootstrap.min.css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body style=\"padding:15px;\"&gt;\r\n    &lt;form method=\"post\" action=\"\/blade_error\"&gt;\r\n        @csrf\r\n        &lt;!-- Bootstrap 3 --&gt;\r\n        &lt;div class=\"form-group <strong>@error('email') has-error @enderror<\/strong>\"&gt;\r\n            &lt;label&gt;\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/label&gt;\r\n            &lt;input type=\"text\" class=\"form-control\"&gt;\r\n            <strong>@error('email')<\/strong>\r\n<strong>                &lt;span class=\"help-block\"&gt;{{ $message }}&lt;\/span&gt;<\/strong>\r\n<strong>            @enderror<\/strong>\r\n        &lt;\/div&gt;\r\n        &lt;button class=\"btn btn-primary\" type=\"submit\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;\r\n    &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u5148\u307b\u3069\u306e<code>Bootstrap 4<\/code>\u306e\u5834\u5408\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u30af\u30e9\u30b9\u540d\u304c\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001<code>Bootstrap 3<\/code>\u306e\u5834\u5408\u306f\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u76f4\u63a5\u30af\u30e9\u30b9\u6307\u5b9a\u306f\u3057\u306a\u3044\u5f62\u5f0f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5062\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_3.png\" alt=\"\" width=\"617\" height=\"145\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_3.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_3-300x71.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5061\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_4.png\" alt=\"\" width=\"617\" height=\"165\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_4.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_4-300x80.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<h2>Tailwind CSS<\/h2>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/unpkg.com\/tailwindcss@^1.0\/dist\/tailwind.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body style=\"padding:15px;\"&gt;\r\n    &lt;form method=\"post\" action=\"\/blade_error\"&gt;\r\n        @csrf\r\n        &lt;!-- Tailwind CSS 1.0 --&gt;\r\n        &lt;div&gt;\r\n            &lt;label class=\"block text-gray-700 text-sm font-bold mb-2\" for=\"password\"&gt;\r\n                \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\r\n            &lt;\/label&gt;\r\n            &lt;input name=\"email\" type=\"text\" class=\"shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline <strong>@error('email') border-red-500 @enderror<\/strong>\"&gt;\r\n            <strong>@error('email')<\/strong>\r\n<strong>                &lt;p class=\"text-red-500 text-xs italic mb-3\"&gt;{{ $message }}&lt;\/p&gt;<\/strong>\r\n<strong>            @enderror<\/strong>\r\n            &lt;button class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline\" type=\"submit\"&gt;\r\n                \u9001\u4fe1\u3059\u308b\r\n            &lt;\/button&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><code>Tailwind CSS<\/code>\u306f\u7d30\u304b\u306a\u8a2d\u5b9a\u3092\uff11\u3064\u305a\u3064\u91cd\u306d\u3066\u3044\u304f\u5f62\u5f0f\u306a\u306e\u3067\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306e\u30af\u30e9\u30b9\u304c\u591a\u3081\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f<code>Bootstrap 4<\/code>\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5066\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_5.png\" alt=\"\" width=\"617\" height=\"151\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_5.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_5-300x73.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5065\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_6.png\" alt=\"\" width=\"617\" height=\"195\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_6.png 617w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_6-300x95.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<h2>Semantic UI<\/h2>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/semantic-ui@2.4.2\/dist\/semantic.min.css\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body style=\"padding:15px;\"&gt;\r\n    &lt;form method=\"post\" action=\"\/blade_error\"&gt;\r\n        @csrf\r\n\r\n        &lt;!-- Semantic UI 2.4 --&gt;\r\n        &lt;div class=\"ui form <strong>@error('email') error @enderror\"<\/strong>&gt;\r\n            &lt;div class=\"field <strong>@error('email') error @enderror\"<\/strong>&gt;\r\n                &lt;label&gt;\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/label&gt;\r\n                &lt;input name=\"email\" type=\"text\"&gt;\r\n            &lt;\/div&gt;\r\n            <strong>@error('email')<\/strong>\r\n<strong>            &lt;div class=\"ui error message\"&gt;<\/strong>\r\n<strong>                &lt;p&gt;{{ $message }}&lt;\/p&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            @enderror<\/strong>\r\n            &lt;button type=\"submit\" class=\"ui submit button\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;\r\n        &lt;\/div&gt;\r\n\r\n    &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><code>Semantic UI<\/code>\u306f\u4ed6\u306eCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306f\u5c11\u3057\u9055\u3063\u3066\u3001\u4e00\u756a\u5916\u5074\u306e\u8981\u7d20\u3068\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306e\u5916\u5074\u306e\u8981\u7d20\u306b\u305d\u308c\u305e\u308c<code>error<\/code>\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u9069\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5071\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_7.png\" alt=\"\" width=\"801\" height=\"142\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_7.png 801w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_7-300x53.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_7-768x136.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5070\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_8.png\" alt=\"\" width=\"801\" height=\"202\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_8.png 801w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_8-300x76.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_8-768x194.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<h1>\u3061\u306a\u307f\u306b\uff1a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/h1>\n<p>\u4f8b\u3048\u3070\u3001\u30da\u30fc\u30b8\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3050\u3089\u3044\u591a\u304f\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3082\u3069\u3053\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u304b\u304c\u5206\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002\uff08\u30da\u30fc\u30b8\u5916\u306e\u90e8\u5206\u306b\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3053\u3068\u3082\u3042\u308b\u306e\u3067\uff09<\/p>\n<p>\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u3048\u3070\u300c\u30da\u30fc\u30b8\u306e\u4e2d\u3067\u4e00\u756a\u4e0a\u306b\u3042\u308b\u30a8\u30e9\u30fc\u300d\u306b\u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;script src=\"https:\/\/code.jquery.com\/jquery-3.4.1.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    \/\/ \u30da\u30fc\u30b8\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305f\u3089\u5b9f\u884c\r\n    <strong>$(() =&gt; {<\/strong>\r\n\r\n<strong>        let top = 0;<\/strong>\r\n\r\n<strong>        $('.is-invalid').each((index, element) =&gt; {<\/strong>\r\n\r\n<strong>            let newTop = $(element).parent().offset().top;<\/strong>\r\n\r\n<strong>            if(top === 0 || top &gt; newTop) {<\/strong>\r\n\r\n<strong>                top = newTop;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>        $('html, body').animate({<\/strong>\r\n<strong>            scrollTop: top<\/strong>\r\n<strong>        }, 'fast');<\/strong>\r\n\r\n<strong>    });<\/strong>\r\n\r\n&lt;\/script&gt;<\/pre>\n<p>\u5b9f\u969b\u306b\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002\uff08\u30b9\u30af\u30ed\u30fc\u30eb\u304c\u79fb\u52d5\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5075\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_9.png\" alt=\"\" width=\"801\" height=\"327\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_9.png 801w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_9-300x122.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/blade_error_9-768x314.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>\u3053\u308c\u3067\u30e6\u30fc\u30b6\u30fc\u30d3\u30ea\u30c6\u30a3\u304c\u5411\u4e0a\u3059\u308b\u304b\u3068\u601d\u3044\u307e\u3059\ud83d\ude0a<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Blade<\/code>\u306e\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6<code>@error<\/code>\u306e\u4f7f\u3044\u65b9\u3092CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4ea4\u3048\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u3044\u308d\u3093\u306a\u66f8\u304d\u65b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30b3\u30d4\u30da\u3059\u308b\u3060\u3051\u3067\u3082\u3042\u308b\u7a0b\u5ea6\u306e\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u304c\u3064\u304f\u308c\u308b\u306e\u3067\u3001\u305c\u3072\u6d3b\u7528\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u500b\u4eba\u7684\u306a\u611f\u60f3\u3067\u8a00\u3046\u3068\u6700\u8fd1\u306f\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3067HTTP\u30a2\u30af\u30bb\u30b9\u3067\u306f\u306a\u304f<code>Ajax<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067<code>@error<\/code>\u306f\u305d\u308c\u307b\u3069\u4f7f\u308f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u306a\u3001\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001<code>Ajax<\/code>\u3067\u306e\u9001\u4fe1\u3060\u3068<strong>\u300c\u4e00\u7dd2\u306b\u30d5\u30a1\u30a4\u30eb\u9001\u4fe1\u3059\u308b\u969b\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u5f15\u3063\u304b\u304b\u3063\u3066\u3082\u3001\u305d\u306e\u307e\u307e\u3082\u3046\u4e00\u5ea6\u9001\u4fe1\u3057\u306a\u304a\u305b\u308b\u300d<\/strong>\u3068\u3044\u3046\u306e\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3060\u3068\u611f\u3058\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u901a\u5e38\u901a\u308aHTTP\u3067\u9001\u4fe1\u3057\u3066\u3057\u307e\u3063\u3066\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3068\u305d\u306e\u5ea6\u306b\u307e\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u3082\u3089\u308f\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u306f\u3001\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u3068\u3057\u3066\u306f\u3042\u307e\u308a\u3088\u308d\u3057\u304f\u306a\u3044\u3068\u611f\u3058\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u30d5\u30a9\u30fc\u30e0\u3060\u3051\u306a\u3089\u901a\u5e38\u306e\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3067\u554f\u984c\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u305d\u3053\u306f\u81e8\u6a5f\u5fdc\u5909\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u6a5f\u4f1a\u304c\u3042\u308c\u3070<code>@error<\/code>\u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2597 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png\" alt=\"\" width=\"275\" height=\"350\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2.png 275w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/15-2-236x300.png 236w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u3010Laravel 6.2+\u3011\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u78ba\u8a8d\u6a5f\u80fd\u3092\u3064\u304f\u308b\u3068\u3044\u3046\u8a18\u4e8b\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u4e2d\u3067\u300c\u305d\u3046\u3044\u3048\u3070\u3044\u3064\u304b\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u306b\u5fd8\u308c\u3066 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=5058\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel 5.8.13+\u3011@error\u3092Bootstrap3\/4\u30fbTailwind CSS\u30fbSemantic UI\u3067\u4f7f\u3063\u305f\u5b9f\u4f8b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":5073,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,3],"tags":[93],"class_list":["post-5058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","category-laravel","tag-93"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5058"}],"version-history":[{"count":6,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5058\/revisions"}],"predecessor-version":[{"id":5079,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5058\/revisions\/5079"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/5073"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}