Esempio n. 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function localitati(Request $id)
 {
     $localitati = Localitatis::where('TaraID', $id->tari)->get();
     foreach ($localitati as $loc) {
         echo "<option value=" . $loc['id'] . ">" . $loc['nume'] . "</option>";
     }
 }
Esempio n. 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     LocalitatiImg::DeleteImg($id);
     Localitatis::destroy($id);
     return redirect('admin/localitati');
 }