$dish->getRouteKey(), 'key' => [ 'public' => $dish->getPublicKey(), 'route' => $dish->getRouteKey(), ], 'id' => $dish->id, 'category_id' => $dish->category_id, 'name' => $dish->name, 'order' => $dish->order, 'image' => $dish->image, 'slug' => $dish->slug, 'status' => $dish->status, 'user_id' => $dish->user_id, 'user_type' => $dish->user_type, 'upload_folder' => $dish->upload_folder, 'deleted_at' => $dish->deleted_at, 'created_at' => $dish->created_at, 'updated_at' => $dish->updated_at, 'url' => [ 'public' => trans_url('dish/'.$dish->getPublicKey()), 'user' => guard_url('dish/dish/'.$dish->getRouteKey()), ], 'status' => trans('app.'.$dish->status), 'created_at' => format_date($dish->created_at), 'updated_at' => format_date($dish->updated_at), ]; } }