/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Ad $ad) { $adtype = $ad->adtype; $fields = getAdFields($ad); return ['data' => compact('ad', 'adtype', 'fields')]; }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Ad $ad) { $adtype = $ad->adtype; $fields = getAdFields($ad); return view_backend('ad.edit', compact('ad', 'adtype', 'fields')); }
/** * Display widget. * * @return Response */ public function run() { $ad = Request::route()->parameter('adValidated') ?: Request::route()->parameter('adPreview'); return view('widget_frontend_theme_addetails::index', ['ad' => $ad, 'fields' => getAdFields($ad)]); }