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:
Yassine Doghri 2020-08-14 18:27:57 +00:00
commit a1a28de702
59 changed files with 1580 additions and 1158 deletions

View file

@ -25,9 +25,7 @@ class PodcastModel extends Model
'language',
'category',
'explicit',
'author_name',
'author_email',
'owner_id',
'author',
'owner_name',
'owner_email',
'type',
@ -35,6 +33,8 @@ class PodcastModel extends Model
'block',
'complete',
'custom_html_head',
'created_by',
'updated_by',
];
protected $returnType = \App\Entities\Podcast::class;
@ -50,10 +50,10 @@ class PodcastModel extends Model
'image_uri' => 'required',
'language' => 'required',
'category' => 'required',
'author_email' => 'valid_email|permit_empty',
'owner_id' => 'required',
'owner_email' => 'required|valid_email',
'type' => 'required',
'created_by' => 'required',
'updated_by' => 'required',
];
protected $validationMessages = [];
@ -61,11 +61,6 @@ class PodcastModel extends Model
protected $afterUpdate = ['clearCache'];
protected $beforeDelete = ['clearCache'];
public function hello(array $data)
{
return $data;
}
/**
* Gets all the podcasts a given user is contributing to
*