title: How to access a model from view without using the foreach loop
body: <p>I was trying to create a view where I can access the data one by one like I have a model of questions and want to show each question on a separate page or at least I want to have the control how each question should look on the same page. </p>
  
  <p>in my controller I m doing something like this</p>
  
  <pre><code>public funciton ShowQuestion($testID){
     $questions = QuestionS::find($testID); 
     // now I have all the questions of a particular test I provided using $testid
     return view('pages.showQuestion')-&gt;with('questions' , $questions) ; 
  }
  </code></pre>
  
  <p>In the showQuestion view I want something, using which I can access each instance(row) of the table individually.</p>