public function deleteCity($id) { if ($this->city->delete($id) !== 1) { Session::setError('can not delete this category'); Redirect::back(); } Session::setMessage('The city is deleted'); Redirect::to(''); }
public function deleteCity($id) { if ($this->city->delete($id) !== 1) { Session::setError('can not delete this category'); Redirect::back(); } Session::setMessage('The city is deleted'); Redirect::to(''); }