Beispiel #1
0
 function UpdateSlugTable($request)
 {
     if ($request->has('dirty') and $request->has('clean')) {
         $dirty = $request->input('dirty');
         $clean = $request->input('clean');
         $slug = Slug::firstOrNew(['city_slug_dirty' => $dirty]);
         $slug->city_slug_clean = $clean;
         $slug->save();
     }
 }