Example #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>";
     }
 }
 /**
  * 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');
 }