From 1fd43b5e38ed80ab6ee8857baa95932780fea86b Mon Sep 17 00:00:00 2001 From: shibafu Date: Sat, 16 Mar 2019 12:29:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E7=9F=A5=E3=82=89=E3=81=9B=E7=99=BB?= =?UTF-8?q?=E9=8C=B2=E3=83=BB=E7=B7=A8=E9=9B=86=E3=81=AE=E3=83=90=E3=83=AA?= =?UTF-8?q?=E3=83=87=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/lang/ja/validation.php | 2 ++ resources/views/admin/info/create.blade.php | 12 ++++++++++-- resources/views/admin/info/edit.blade.php | 12 ++++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/resources/lang/ja/validation.php b/resources/lang/ja/validation.php index ecf3a03..d154816 100644 --- a/resources/lang/ja/validation.php +++ b/resources/lang/ja/validation.php @@ -119,6 +119,8 @@ return [ 'attributes' => [ 'email' => 'メールアドレス', 'password' => 'パスワード', + 'title' => 'タイトル', + 'content' => '本文', ], ]; diff --git a/resources/views/admin/info/create.blade.php b/resources/views/admin/info/create.blade.php index 4bdb53e..576b7ab 100644 --- a/resources/views/admin/info/create.blade.php +++ b/resources/views/admin/info/create.blade.php @@ -28,14 +28,22 @@
- + + + @if ($errors->has('title')) +
{{ $errors->first('title') }}
+ @endif
- + 最大 10000 文字、Markdown 形式 + + @if ($errors->has('content')) +
{{ $errors->first('content') }}
+ @endif
diff --git a/resources/views/admin/info/edit.blade.php b/resources/views/admin/info/edit.blade.php index dc56cea..d5eb513 100644 --- a/resources/views/admin/info/edit.blade.php +++ b/resources/views/admin/info/edit.blade.php @@ -29,14 +29,22 @@
- + + + @if ($errors->has('title')) +
{{ $errors->first('title') }}
+ @endif
- + 最大 10000 文字、Markdown 形式 + + @if ($errors->has('content')) +
{{ $errors->first('content') }}
+ @endif