title: Require once/include not finding correct file laravel
body: <p><a href="https://i.stack.imgur.com/b1EQH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b1EQH.jpg" alt="enter image description here"></a>Require once/include in my laravel project is not functioning properly. I am using the correct path however i continue to get the same error. I can see the file is in the designated space. What could cause this? Here is my code: </p>
  
  <pre><code>    @extends('apps.admin')
      @section('main')
  &lt;?php
              include(app_path().'vendor/j7mbo/twitter-api-php/TwitterAPIExchange.php');
              $settings = array(
                  'oauth_access_token' =&gt; "token",
                  'oauth_access_token_secret' =&gt; "token",
                  'consumer_key' =&gt; "token",
                  'consumer_secret' =&gt; "token"
              );
  
              $url = 'https://api.twitter.com/1.1/search/tweets.json';
              $getfield = '?q=#nerd';
              $requestMethod = 'GET';
  
              $twitter = new TwitterAPIExchange($settings);
              $response = $twitter-&gt;setGetfield($getfield)
                  -&gt;buildOauth($url, $requestMethod)
                  -&gt;performRequest();
  
              var_dump(json_decode($response));
              ?&gt;
  @stop
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>require_once('vendor/j7mbo/TwitterAPIExchange.php');
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>require_once('TwitterAPIExchange.php');
  </code></pre>
  
  <p>errors:</p>
  
  <pre><code>include(/var/www/web/elephantegin/htdocs/app/vendor/j7mbo/twitter-api-php/TwitterAPIExchange.php): failed to open stream: No such file or directory (View: /var/www/web/elephantegin/htdocs/resources/views/socialApps/twitter.blade.php)
  </code></pre>
  
  <p>errror:</p>
  
  <pre><code>main(): Failed opening required '/vendor/j7mbo/TwitterAPIExchange.php' (include_path='.:/usr/share/php:/var/www/web/elephantegin/htdocs')
  </code></pre>