apache - Laravel 5 not seeing Contact page -
apache - Laravel 5 not seeing Contact page -
im new laravel.
i have set httpd-vhosts.conf
<virtualhost *:80> documentroot "e:\laravel\learning-laravel-5\public" servername laravel5 <directory "e:\laravel\learning-laravel-5\public"> allowoverride require granted </directory> </virtualhost>
and hosts
file
127.0.0.1 laravel5 ::1 laravel5
okay, in browser when come in laravel5
in adress bar, laravel 5 welocome screen.
i set root contact
in routes.php
route::get('contact', 'welcomecontroller@contact');
and in welcomecontroller.php
controller file have created method route this.
public function contact() { homecoming 'hello mo'; }
entering http://laravel5/
gives me laravel5 welcome screen
but. on entering next in browser address
http://laravel5/contact
i presented screen
has got how virtualhost
set up?
make sure enable mod_rewrite in apache.
how enable mod_rewrite
sudo a2enmod rewrite sudo service apache2 restart
then must point url servername. in case should be
servername laravel5
so, url must be
http://laravel5/contact
apache laravel laravel-5
Comments
Post a Comment