title: What would be the best way to include js file in laravel?
body: <p>I am going to create a new project using laravel 5.7.</p>
  
  <p>Project having number of pages(blade templates).</p>
  
  <p>Each blade template having different JS code and for that I want to create separate JS file for each template.</p>
  
  <p>Eg. Let's say there are two templates viz. index.blade.php &amp; edit.blade.php.
  And there are two JS files viz. index.js &amp; edit.js</p>
  
  <p>Now I want to include these JS files in their respective templates.</p>
  
  <p>Can anybody suggest me the best way of doing this?</p>
  
  <p>I have used below approach before:</p>
  
  <p>Included JS file manually just before "<strong>/body</strong>" tag.</p>
  
  <p>Also I read about app.js. But writing code in this file, I don't want it to be included in every template.</p>