grosv / laravel-passwordless-login

A simple, safe magic login link generator for Laravel
841 stars 60 forks source link

Class 'App\Http\Controllers\PasswordlessLogin' not found after installing #64

Closed Tiththa closed 3 years ago

Tiththa commented 3 years ago

I am getting Class 'App\Http\Controllers\PasswordlessLogin' not found after installing via composer, what should i register in app.php ?

Using Laravel 7 with Simple Usage method as in the docs

owenvoke commented 3 years ago

It sounds like you need to import the facade with use Grosv\LaravelPasswordlessLogin\PasswordlessLogin; at the top of your controller. 🤔 In the example, the facade isn't imported as I'm assuming they added it to their app.aliases list in the config.

Tiththa commented 3 years ago

It sounds like you need to import the facade with use Grosv\LaravelPasswordlessLogin\PasswordlessLogin; at the top of your controller. 🤔 In the example, the facade isn't imported as I'm assuming they added it to their app.aliases list in the config.

Thank you for the help, yes it isn't imported hence it is throwing the error. I will give it another go and check. @owenvoke