I have Laravel Passport installed and also Dingo API on my Laravel 5.4 installation. However, every time I hit POST /oauth/token on POSTMAN and get a 405 Method Not Allowed exception.
Disabling Dingo does not change anything. it is running in a Docker container if that changes anything (I doubt it does). i run php artisan route:list and the Laravel Passport routes are there but hitting it fails.
@neo@creativitykills.co So here is what I found. Not sure your setup is similar to mine, but I was using vaporbash and vagrant. The net result is that I had a Nginx install on Ubuntu. The base nginx site file /etc/nginx/sites-available had a location code block that redirected "/".
Check your nginx conf and ensure that "/" is properly directed to the application routing:
Not sure if this helps anyone, but all I had to do was remove the "www" from my url.
I have SSL enabled and when I use "www"nginx redirects me to my site without the "www".
Because of this redirect, postman will follow it and drop its headers / parameters (meaning it also switches it back the default GET request).
Depending on how your NGINX is configured, you may need to try some of the following (i.e. myurl.com/oauth/token):