public function delete($entity_id, $id) { $attribute = $this->attribute; $entity = $this->entity; $item = $this->driver->get($entity_id); $image = \ImageDriver::get($id); $this->layout->title = ucwords($attribute) . ' - Delete'; $this->layout->content = \View::make('admin.entities.images.delete', compact('entity', 'item', 'attribute', 'image')); }
public function store() { $data = \Input::all(); try { $image = \ImageDriver::store($data); } catch (\Watson\Validating\ValidationException $e) { return \Redirect::route('dev.images.create')->withErrors($e->getErrors())->withInput(); } return \Redirect::route('dev.images.show', $image->id); }