예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $promotions = Promotion::all();
     return view('promotion.index', compact('promotions'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $array['offre'] = OffreStage::where('offre_stages.id', $id)->with('competences')->first();
     if (isset($array['offre']->date_debut)) {
         $array['offre']->date_debut = date('Y-m', strtotime($array['offre']->date_debut));
     }
     $array['competences']['mine'] = $array['offre']->competences->lists('id');
     $array['promotions'] = Promotion::all();
     $array['competences']['all'] = Competence::all();
     $array['entreprises'] = Entreprise::all();
     return $array;
 }
예제 #3
0
 public function getPromotionList()
 {
     $promotions = Promotion::all();
     return view('admin.promotions', ['promotions' => $promotions]);
 }
예제 #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return Promotion::all();
 }
 /**
  * Retourne toutes les promotions
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function all()
 {
     return Promotion::all();
 }