/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $vacancy = Vacancy::findOrFail($id); $vacancy->delete(); \Flash::success('Vacature verwijderd'); return redirect('admin/vacancies'); }
public function vacancies() { $vacancies = Vacancy::all(); return view('pages.public.vacatures', compact('vacancies')); }