title: Is it a good practice to use require_once in the .blade.php template?
body: <p>Normally we'll use something like</p>
  
  <pre><code>&lt;?php
  require_once 'init.php'; //file for start the session, connect to database etc.
  ?&gt;
  &lt;!-- HTML Content Here--&gt;
  head body etc.
  &lt;!----------------------&gt;
  </code></pre>
  
  <p>But when you're building a .blade.php template. Is thing also work that way?
  I mean my template is something like</p>
  
  <pre><code>&lt;?php
  require_once 'init.php';
  ?&gt;
  &lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;title&gt;@yield('title')&lt;/title&gt;
      &lt;link rel="stylesheet" href="../public/css/bootstrap.min.css" media="screen"&gt;
      &lt;link rel="stylesheet" href="../public/css/tpl.css"&gt;
      &lt;link rel="stylesheet" href="../public/fonts/font.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      @yield('header')
  
      @yield('content')
  
      @yield('footer')
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is this a best practice or is there a better way to do this?</p>