Skip to content

Tag: laravel

Laravel: How to access config/Mail variables

I need to get address and name variables on my Mail.php config: ‘from’ => [‘address’ => env(‘MAIL_USERNAME’), ‘name’ => env(‘MAIL_NAME’)], I tried this: Config::get(‘mail.from.*.name’); …

Laravel 5.4 Passport: unsupported_grant_type

Hello I try to do a web application and I have a problem. When I request the token from /oauth/token I receive this response: And my code is: And the request header: Response header: Post data: I don’t have any other detail. Answer You need to install a password client for Passport. Assuming you’v…

How to make a delete request with Laravel

I am not using resource controller. The route: The controller function: The call: The program returns a MethodNotAllowedHttpException. Thank you. Answer You may try this (Notice the hidden _method input): Check Form Method Spoofing. Update: In the latest versions of Laravel, it’s possible to use blade d…