mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
refactor: rewrite form pages using form helper
- add installGateway to app config - update route names and groups - remove `author_name` and `author_email` from `episodes` table - remove `author_name` and `author_email` from `podcasts` table - remove `owner_id` + add `created_by` and `updated_by` fields in `podcasts` and `episodes` tables - remove unnecessary comments in database fields - remove confirm password inputs from auth forms for better ux - rename `pub_date` field to `published_at` and add publication time field in episode form closes #14, #28
This commit is contained in:
parent
012de2072e
commit
a1a28de702
59 changed files with 1580 additions and 1158 deletions
|
|
@ -20,16 +20,16 @@ class EpisodeModel extends Model
|
|||
'title',
|
||||
'slug',
|
||||
'enclosure_uri',
|
||||
'pub_date',
|
||||
'description',
|
||||
'image_uri',
|
||||
'explicit',
|
||||
'number',
|
||||
'season_number',
|
||||
'author_name',
|
||||
'author_email',
|
||||
'type',
|
||||
'block',
|
||||
'published_at',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
];
|
||||
|
||||
protected $returnType = \App\Entities\Episode::class;
|
||||
|
|
@ -42,13 +42,14 @@ class EpisodeModel extends Model
|
|||
'title' => 'required',
|
||||
'slug' => 'required|regex_match[/^[a-zA-Z0-9\-]{1,191}$/]',
|
||||
'enclosure_uri' => 'required',
|
||||
'pub_date' => 'required|valid_date',
|
||||
'description' => 'required',
|
||||
'image_uri' => 'required',
|
||||
'number' => 'required',
|
||||
'season_number' => 'required',
|
||||
'author_email' => 'valid_email|permit_empty',
|
||||
'number' => 'required|is_natural_no_zero',
|
||||
'season_number' => 'required|is_natural_no_zero',
|
||||
'type' => 'required',
|
||||
'published_at' => 'valid_date|permit_empty',
|
||||
'created_by' => 'required',
|
||||
'updated_by' => 'required',
|
||||
];
|
||||
protected $validationMessages = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue