We will learn How to enable rewrite mode for apache in ubuntu

when you create one virtualhost for your laravel application and open in browser and open your created virtual url. but when you click on login i found following error :

URL not found....

You can remove index.php from url so run following command:

sudo a2enmod rewrite
sudo service apache2 restart

Now you can open this way: