Exemplo n.º 1
0
 protected function getHydrationMap(Request $request)
 {
     $fields = $this->prepareHydrationMap($request);
     if (!isset($fields['setSlug']) && isset($fields['setTitle'])) {
         $fields['setSlug'] = Utilities::slugify($fields['setTitle']);
     }
     return $fields;
 }
 protected function prepareParams(Request $request)
 {
     $fields = $this->convertParams($request);
     if (!isset($fields['slug']) && isset($fields['name'])) {
         $fields['slug'] = Utilities::slugify($fields['name']);
     }
     return $fields;
 }