예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 /**
  * Display list of vendor from storage
  * @return static
  */
 public function vendor()
 {
     return MyVendor::all()->lists('name', 'name')->sortBy('name');
 }