/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { MyVendor::where('id', $id)->delete(); Session::flash('success_message', 'Vendor has been deleted successfully!!!'); return redirect('vendor'); }
/** * Display list of vendor from storage * @return static */ public function vendor() { return MyVendor::all()->lists('name', 'name')->sortBy('name'); }