{"repo":"cesargb/laravel-magiclink","free":true,"listed":false,"github":"https://github.com/cesargb/laravel-magiclink","clone":"git clone https://github.com/cesargb/laravel-magiclink.git","description":"Create link for authenticate in Laravel without password or get private content","language":"PHP","stars":465,"topics":["laravel","authentication","link","auth","auto","login","passwordless"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"MagicLink for Laravels App Through the MagicLink class we can create a secure link that later being visited will perform certain actions, which will allow us offer secure content and even log in to the application. [!WARNING] Migrate actions is required if you are upgrading from version 2.24.2 or earlier. Please see the Migrate actions section for detailed instructions. Contents - Installation - Use case - Create a MagicLink - Actions - Login - Download file - Inline file - View - Http Response - Controller - Custom Action - Allowed Classes - Protect with an access code - Lifetime - Events - Customization - Rate limiting - Delete Expired MagicLinks - Migrate actions - Testing - Contributing - Security Installation You can install this package via composer using: Preparing the database You need to publish the migration to create the magic links table: After that, you need to run migrations. Use case With this example you can create a link to auto login on your application with the desired user: Create a MagicLink The MagicLink class has the create method to generate a class that through the url property we will obtain the link that we will send to our visitor. This method requires the action to be performed. Actions Each MagicLink is associated with an action, which is what will be performed once the link is visited. - Login Action - Download file Action - Inline file Action - View Action - Http Response Action - Http Response - Controller - Custom Action - Custom Base URL Log","default_branch":null,"files":null,"tree":[],"storefront":"/r/cesargb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cesargb/laravel-magiclink/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}