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