Support the ongoing development of Laravel.io →
Configuration Installation Laravel
Last updated 2 years ago.
0
Last updated 3 years ago.
0

If you run php artisan route:list what routes are displayed?

0

+--------+----------+------------------------+------------------+--------------- ---------------------------------------------------------+------------+ | Domain | Method | URI | Name | Action | Middleware | +--------+----------+------------------------+------------------+--------------- ---------------------------------------------------------+------------+ | | GET|HEAD | / | | Closure | web | | | GET|HEAD | api/user | | Closure | api | | | | | | | auth:api | | | GET|HEAD | home | home | App\Http\Contr ollers\HomeController@index | web | | | | | | | auth | | | GET|HEAD | login | login | App\Http\Contr ollers\Auth\LoginController@showLoginForm | web | | | | | | | guest | | | POST | login | | App\Http\Contr ollers\Auth\LoginController@login | web | | | | | | | guest | | | POST | logout | logout | App\Http\Contr ollers\Auth\LoginController@logout | web | | | GET|HEAD | password/confirm | password.confirm | App\Http\Contr ollers\Auth\ConfirmPasswordController@showConfirmForm | web | | | | | | | auth | | | POST | password/confirm | | App\Http\Contr ollers\Auth\ConfirmPasswordController@confirm | web | | | | | | | auth | | | POST | password/email | password.email | App\Http\Contr ollers\Auth\ForgotPasswordController@sendResetLinkEmail | web | | | GET|HEAD | password/reset | password.request | App\Http\Contr ollers\Auth\ForgotPasswordController@showLinkRequestForm | web | | | POST | password/reset | password.update | App\Http\Contr ollers\Auth\ResetPasswordController@reset | web | | | GET|HEAD | password/reset/{token} | password.reset | App\Http\Contr ollers\Auth\ResetPasswordController@showResetForm | web | | | GET|HEAD | register | register | App\Http\Contr ollers\Auth\RegisterController@showRegistrationForm | web | | | | | | | guest | | | POST | register | | App\Http\Contr ollers\Auth\RegisterController@register | web | | | | | | | guest | +--------+----------+------------------------+------------------+--------------- ---------------------------------------------------------+------------+

0

Additionally, The login and register button has appeared, but when you browse on them they offer nothing to display. GIF Illustration → https://pasteboard.co/JKx7LFA.gif

0

ok well my vhost config

<VirtualHost *:80>
    SetOutputFilter DEFLATE 
    <Directory "G:\codegorithm\PHP\lprojects\one\RealtimeLaravel\public">  #any path to which you wish to apply gzip compression to!
	Options All
	AllowOverride All
	Require all granted
        <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE text/plain
            AddOutputFilterByType DEFLATE text/html
            AddOutputFilterByType DEFLATE text/xml
            AddOutputFilterByType DEFLATE text/css
            AddOutputFilterByType DEFLATE application/xml
            AddOutputFilterByType DEFLATE application/xhtml+xml
            AddOutputFilterByType DEFLATE application/rss+xml
            AddOutputFilterByType DEFLATE application/javascript
            AddOutputFilterByType DEFLATE application/x-javascript
        </IfModule>
    </Directory> 
    DocumentRoot "G:\codegorithm\PHP\lprojects\one\RealtimeLaravel\public"  
    ServerName laravelx.com
</VirtualHost>

And my htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} !^127.0.0.1
    RewriteCond %{REMOTE_HOST} !^127.0.0.1
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Redirect www to non www
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
<FilesMatch "\.(css|js|ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|woff2|ttf|otf|webp|webm)$">
Header set Cache-Control "public"
Header set Expires "access plus 31536000 seconds"
</FilesMatch>

change and restart your xampp

Last updated 3 years ago.

codeispoetry liked this reply

1

Wow, It worked like a charm. I have no words than thank you. Was struggling from 7-8 days.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.