Can't load AngularJs files from PUBLIC folder in Laravel 5
<p><strong>I'm having troubles referencing my angularJS files in Laravel's "public" folder. My                            public folder structure looks like this:</strong>:</p>

<pre><code>public

   -css

   -js

      -services

      -controllers

      -app.js
</code></pre>

<p><strong>I have my "index.php" file inside the "app/views" folder</strong>.<strong>When i go to the home page of my application <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>, the browser brings me to the index.php file as expected.</strong></p>

<p><strong>Inside my "index.php" file, i want to reference my javascript files under the "public/js" and I get "GET <a href="http://localhost/js/app.js" rel="nofollow noreferrer">http://localhost/js/app.js</a> 404 (Not Found)" - in the browser console meaning that those files can't be found. These are some of the options i have tried to include them in the "index.php" file:</strong></p>

<pre><code> 1.   &lt;script src="js/app.js"&gt;&lt;/script&gt;
</code></pre>

<p>and</p>

<p>EDIT:</p>

<pre><code> &lt;script src="&lt;?php echo asset('/js/app.js'); ?&gt;"&gt;
&lt;script src="&lt;?= url('js/app.js') ?&gt;"&gt;
</code></pre>

<p>and </p>

<ol>
<li>I have tried to move the js/app.js to folders resources  or resources/views .</li>
<li>I have tried to move just the app.js to resources/views</li>
</ol>

<p>All these options don't find the files under the "public" folder.
<strong>I don't use BLADE</strong></p>

<p>My files look like :</p>

<p>index.php </p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang=eng&gt;
&lt;head&gt;
&lt;meta charset="UTF-8"&gt;
  &lt;title&gt;Welcome &lt;/title&gt;

  &lt;!-- CSS --&gt;
  &lt;link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"&gt; &lt;!-- load bootstrap via cdn --&gt;
  &lt;link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"&gt; &lt;!-- load fontawesome --&gt;
  &lt;style&gt;
    body    { padding-top:30px; }
/*    form    { padding-bottom:20px; }
*/  &lt;/style&gt;

  &lt;!-- JS --&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"&gt;&lt;/script&gt;

    &lt;script src="js/app.js"&gt;
    &lt;/script&gt; &lt;!-- load our application --&gt;&lt;!-- load our application --&gt;
&lt;/head&gt;


&lt;body   class="container" ng-app="user1App" ng-controller="mainController"&gt;

  &lt;div class="user1"  ng-repeat="user1 in user1s"&gt;
    &lt;h3&gt; &lt;small&gt;{{ user1.name }} , {{ user1.email }}&lt;/small&gt;&lt;/h3&gt;
    &lt;p&gt;{{ user1.phone_number }}&lt;/p&gt;

  &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>app.js</strong></p>

<pre><code>angular.module('user1App', [
]);

angular.module('user1App').controller('mainController', function($scope, $http, User1, $sce) {

$http.get('api/v1/jokes').success(function(data) { 

$scope.user1s = data; 

});
}
</code></pre>

<p><strong>My config/view.php  looks like</strong> :</p>

<pre><code>'paths' =&gt; [
    realpath(base_path('resources/views')),
],
</code></pre>

<p>For more information  about my code look here <a href="https://stackoverflow.com/questions/38284736/angularjs-wont-display-parse-data-that-is-delivered-with-http-get-in-laravel">AngularJS won&#39;t display (parse) data that is delivered with $http.get in Laravel5</a></p>

<p><strong>ERROR in console :</strong></p>

<pre><code>GET http://localhost/js/app.js 404 (Not Found)
</code></pre>

<p><strong>.htaccess</strong></p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    &lt;IfModule mod_negotiation.c&gt;
        Options -MultiViews
    &lt;/IfModule&gt;

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
&lt;/IfModule&gt;
</code></pre>

<p><strong>Please help ,I'm realy not seeing the problem and can't google it anywhere.</strong></p>

<p>Thanks</p>