feat(episodes): add create form and view pages for episode

- add james-heinrich/getid3 library as a dependency to composer.json
- update DEPENDENCIES.md file
- fix episodes table migration script
- add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit
- reformat all files to the prettier format
- refactor code by separating some logic as helper functions
- overwrite existing files when uploading new files with the same name

fixes #1
This commit is contained in:
Yassine Doghri 2020-06-10 15:00:12 +00:00
commit f3b2c8b84f
84 changed files with 4784 additions and 2276 deletions

View file

@ -1,4 +1,9 @@
<?php
/**
* @copyright 2020 Podlibre
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
namespace App\Models;
@ -9,9 +14,7 @@ class CategoryModel extends Model
protected $table = 'categories';
protected $primaryKey = 'id';
protected $allowedFields = [
'apple_category', 'google_category',
];
protected $allowedFields = ['apple_category', 'google_category'];
protected $returnType = 'App\Entities\Category';
protected $useSoftDeletes = false;