예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 public function vacancies()
 {
     $vacancies = Vacancy::all();
     return view('pages.public.vacatures', compact('vacancies'));
 }