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

@ -3,7 +3,7 @@
// Cannot extend BaseConfig or looping resources occurs.
class Modules
{
/*
/*
|--------------------------------------------------------------------------
| Auto-Discovery Enabled?
|--------------------------------------------------------------------------
@ -12,9 +12,9 @@ class Modules
| $activeExplorers below. If false, no auto-discovery will happen at all,
| giving a slight performance boost.
*/
public $enabled = true;
public $enabled = true;
/*
/*
|--------------------------------------------------------------------------
| Auto-Discovery Within Composer Packages Enabled?
|--------------------------------------------------------------------------
@ -22,9 +22,9 @@ class Modules
| If true, then auto-discovery will happen across all namespaces loaded
| by Composer, as well as the namespaces configured locally.
*/
public $discoverInComposer = true;
public $discoverInComposer = true;
/*
/*
|--------------------------------------------------------------------------
| Auto-discover Rules
|--------------------------------------------------------------------------
@ -33,35 +33,29 @@ class Modules
| and used during the current application request. If it is not
| listed here, only the base application elements will be used.
*/
public $activeExplorers = [
'events',
'registrars',
'routes',
'services',
];
public $activeExplorers = ['events', 'registrars', 'routes', 'services'];
/**
* Should the application auto-discover the requested resources.
*
* Valid values are:
* - events
* - registrars
* - routes
* - services
*
* @param string $alias
*
* @return boolean
*/
public function shouldDiscover(string $alias)
{
if (! $this->enabled)
{
return false;
}
/**
* Should the application auto-discover the requested resources.
*
* Valid values are:
* - events
* - registrars
* - routes
* - services
*
* @param string $alias
*
* @return boolean
*/
public function shouldDiscover(string $alias)
{
if (!$this->enabled) {
return false;
}
$alias = strtolower($alias);
$alias = strtolower($alias);
return in_array($alias, $this->activeExplorers);
}
return in_array($alias, $this->activeExplorers);
}
}