title: {{ @require_once(@resource_path()) }} causes a random 1 string character to be outputted in laravel
body: <p>I have tried looking for the character with <code>ctrl + f</code>, I checked my <code>web.php</code>, checked the layouts file and the file itself. Nowhere do I output the character 1 (<code>&quot;1 &quot;</code>).
  I emptied the file and then tried it again, it returns the <code>&quot;1 &quot;</code>. I tried it with other files, same. The only time it does not happen is when I completely remove <code>{{ @require_once(@resource_path(&quot;views/includes/myFile.blade.php)) }}</code>. The character is printed on every page as well.</p>
  <p>This is how my <code>layout.blade.php</code> file looks like:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;{{ app()-&gt;getLocale() }}&quot;&gt;
      &lt;head&gt;
          &lt;title&gt;
              layout Component
          &lt;/title&gt;
  
          @yield(&quot;head_css&quot;)
  
          @yield(&quot;head_js&quot;)
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class=&quot;card&quot;&gt;
              &lt;div class=&quot;card-header&quot;&gt;
                 {{ @require_once(@resource_path(&quot;views/Includes/navigation.blade.php&quot;)) }}
              &lt;/div&gt;
              &lt;div class=&quot;card-body&quot;&gt;
                  @yield(&quot;body_content&quot;)
              &lt;/div&gt;
              &lt;div class=&quot;card-footer&quot;&gt;
                  @yield(&quot;footer&quot;)
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>this is how my <code>navigation.blade.php</code> looks like:</p>
  <pre><code>&lt;nav class=&quot;navbar navbar-expand-md navbar-light&quot;&gt;
      &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbarSupportedContent&quot; aria-controls=&quot;navbarSupportedContent&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;
          &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarSupportedContent&quot;&gt;
          &lt;ul class=&quot;navbar-nav mr-auto&quot;&gt;
              &lt;li class=&quot;nav-item&quot;&gt;
                  &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;
                      hello
                  &lt;/a&gt;
              &lt;/li&gt;
              &lt;li class=&quot;nav-item&quot;&gt;
                  &lt;a class=&quot;nav-link&quot; href=&quot;#&quot;&gt;
                      &lt;select class=&quot;selectpicker&quot; data-width=&quot;fit&quot;&gt;
                          &lt;option&gt;a&lt;/option&gt;
                          &lt;option&gt;b&lt;/option&gt;
                      &lt;/select&gt;
                  &lt;/a&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>