Skip to content

Commit

Permalink
Sync from laravel/docs@4d81788 by PCIT
Browse files Browse the repository at this point in the history
  • Loading branch information
khs1994 committed May 26, 2020
1 parent 7f3bb2c commit 8c94cdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ When a user is successfully authenticated, they will be redirected to the `/home

public const HOME = '/home';

If you need more robust customization of the response returned when a user is authenticated, Laravel provides an empty `authenticated(Request $request, $user)` method that may be overwritten if desired:
If you need more robust customization of the response returned when a user is authenticated, Laravel provides an empty `authenticated(Request $request, $user)` method within the `AuthenticatesUsers` trait. This trait is used by the `LoginController` class that is installed into your application when using the `laravel/ui` package. Therefore, you can define your own `authenticated` method within the `LoginController` class:

/**
* The user has been authenticated.
Expand Down
7 changes: 3 additions & 4 deletions deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ If you are deploying your application to a server that is running Nginx, you may
server {
listen 80;
server_name example.com;
root /example.com/public;
root /srv/example.com/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";

index index.html index.htm index.php;
index index.php;

charset utf-8;

Expand All @@ -46,8 +46,7 @@ If you are deploying your application to a server that is running Nginx, you may
error_page 404 /index.php;

location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
Expand Down

0 comments on commit 8c94cdb

Please sign in to comment.