diff --git a/app/Libs/PluginManager.php b/app/Libs/PluginManager.php index 7e44dc7e..50baf737 100644 --- a/app/Libs/PluginManager.php +++ b/app/Libs/PluginManager.php @@ -2,9 +2,14 @@ namespace App\Libs; +/** + * @deprecated deprecated since version 1.0.0 + */ class PluginManager extends Model{ - + /** + * @deprecated deprecated since version 1.0.0 + */ public static function area($area_num){ foreach(app()->plugins as $widget){ diff --git a/app/Model/Blogpost.php b/app/Model/Blogpost.php index 6f582a5b..31c77194 100644 --- a/app/Model/Blogpost.php +++ b/app/Model/Blogpost.php @@ -29,6 +29,7 @@ class Blogpost extends Model public static $rules = [ 'title' => 'required', + 'summary' => 'max:255', 'category_id' => 'required' ]; diff --git a/app/View/blogposts/form.blade.php b/app/View/blogposts/form.blade.php index 2536c9a7..c02bb2bd 100644 --- a/app/View/blogposts/form.blade.php +++ b/app/View/blogposts/form.blade.php @@ -21,14 +21,20 @@
-
- - + + + + @error('title') + + {{ $errors->first('title') }} + + @enderror
-
- +
+
-
- -
+
+ + +
+ + @error('summary') + + {{ $errors->first('summary') }} + + @enderror
@@ -57,7 +69,7 @@ @endif
- +
- +
-
@@ -61,8 +61,14 @@ class="form-control @error('password') is-invalid @enderror"
- + + @error('email') + + {{ $errors->first('email') }} + + @enderror