When I access the URL alertweb.com.br/login
I can see a blank page on production but in the developer env. is working fine... I have no idea... Any suggestions?
My routes
Route::get('/', 'WebSite\IndexController@index');
Route::get('/home', 'WebSite\IndexController@index');
Route::get('/login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('/login', 'Auth\LoginController@login');
Controller
public function showLoginForm()
{
if(!\Auth::check()){
return view('login.index');
}else{
return view('manager.index');
}
}
The initial page is working and database connection is established.
Clear your configurations and run these commands one by one.
php artisan clear-compiled
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan config:clear
Hope this helps
I change my .htaccess, and this working.
<IfModule mod_rewrite.c>
RewriteBase /public
<IfModule mod_negotiation.c>
Options +FollowSymlinks -MultiViews
</IfModule>
AddHandler application/x-httpd-php71 .php
RewriteEngine On
# 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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.