Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:laravel:code-snippets [2020/04/19 19:12] – gerardorourkecode:laravel:code-snippets [2021/01/26 18:22] (current) – [Customization of the response returned when a user is authenticated] gerardorourke
Line 45: Line 45:
  
 ==== Customization of the response returned when a user is authenticated==== ==== Customization of the response returned when a user is authenticated====
-[[https://laravel.com/docs/7.x/authentication||Reference]]+[[https://laravel.com/docs/7.x/authentication|Reference]]
  
 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 that may be overwritten if desired:
 <code php> <code php>
 +use Illuminate\Http\Request;
 +
 /** /**
  * The user has been authenticated.  * The user has been authenticated.
Line 63: Line 65:
 } }
 </code> </code>
 +
 +  *https://www.itsolutionstuff.com/post/laravel-set-selected-option-in-dropdown-menuexample.html
 +
  • code/laravel/code-snippets.1587319947.txt.gz
  • Last modified: 2020/04/19 19:12
  • by gerardorourke