lundi 23 mai 2016

How to convert this type of code to laravel 5?

 while ($row = mysqli_fetch_array($gt_detail)) 
 {
      $id = $row['id'];
      $first_name = $row['first_name'];
      $parent_id = $row['parent_id'];
      $hide = $row['hide'];
      $checked = $hide == 1 ? "checked" : ""; 
  }

How to convert this to laravel orm ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire