Solved Add index.php after public folder.
I need to add index.php after public in my URL while installing this project means automatically It is not hitting index.php file? how to resolve this.
Open your .htaccess file under public folder of your project and add some random text at the top and save your file.
Now try to access your project.
If you are getting 500 Internal server error after adding a random text in .htaccess file.
It means it is working.
If you are still able to access public path of project which means .htaccess it is not working yet.
so you need to enable it.
Open your apache2.conf file and Allow overwrite All.
Options Indexes FollowSymLinks
Require all granted
Now also you need to run two below commands for enabling mod rewrite rule.
service apache2 restart