Nice article! I'd personally recommend using Laravel Passport. If you authenticate using Laravels standard auth procedure you can then add Laravel Passports CreateFreshApiToken middleware (docs here). This lets you consume your API locally without having to worry about tokens.
It also has the added bonus of being able to take advantage of the power of oAuth with your API endpoints if you expand going forward.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article! I'd personally recommend using Laravel Passport. If you authenticate using Laravels standard auth procedure you can then add Laravel Passports
CreateFreshApiToken
middleware (docs here). This lets you consume your API locally without having to worry about tokens.It also has the added bonus of being able to take advantage of the power of oAuth with your API endpoints if you expand going forward.