I did try lots of solution from different resources like GitHub, StackOverflow, etc, but didn't get the solution to remove index.php from url in laravel 5.8 version. This issue occurs only in version 5.8
Here is my .htacess file code. Which is placed on root directory:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /laravel/portal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L]
</IfModule>
If somebody has a solution. Please let me know