id = (string) Str::orderedUuid(); // generate uuid // } catch (\Exception $e) { // abort(500, $e->getMessage()); // } // }); // } public function files() { return $this->morphMany(File::class, 'fileable'); } }