Exemplo n.º 1
0
 public function deleteDestroy($id)
 {
     Dealership::destroy($id);
     return redirect(route('admin.dealerships.index'));
 }
Exemplo n.º 2
0
 public function getCreate()
 {
     $dealerships = Dealership::orderBy('name', 'asc')->lists('name', 'id')->all();
     return view('admin.campaigns.create', compact('dealerships'));
 }