Major refactor of photo processing, video processing still to do
This commit is contained in:
@@ -12,7 +12,7 @@ trait Type
|
||||
{
|
||||
private function getModelType(string $type): string
|
||||
{
|
||||
$class = 'App\Models\\'.$type;
|
||||
$class = 'App\Models\\'.ucfirst(strtolower($type));
|
||||
|
||||
if (! class_exists($class))
|
||||
abort(500,sprintf('No class [%s]',$type));
|
||||
|
Reference in New Issue
Block a user