title: laravel 5.4 removing public form url not working properly
body: <p>I have renamed server.php file to index.php and added .htaccess code as follows</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>url is working fine now, it is working without url, but </p>
  
  <pre><code>asset()
  public_path()
  </code></pre>
  
  <p>function are not working properly.
  css, js , images are not called properly.</p>
  
  <pre><code>{{ asset('assets/css/custom.css') }}
  </code></pre>
  
  <p>Above code to all custom.css is not working, it was working properly before.
  If I add public than it work properly, but that is not correct way.</p>
  
  <pre><code>{{ asset('public/assets/css/custom.css') }}
  </code></pre>
  
  <p>Let me know how can I add public globally to these function.</p>
  
  <p>I also tried to remove url using this reference but it doesn't work.
  <a href="https://stackoverflow.com/questions/23837933/how-can-i-remove-public-index-php-in-the-url-generated-laravel">How can I remove “public/index.php” in the url generated laravel?</a></p>