Just to state the obvious for anyone viewing this discussion…. if you give any of your folders 777 permissions, you are allowing ANYONE to read, write and execute any file in that directory…. what this means is you have given ANYONE (any hacker or malicious person in the entire world) permission to upload ANY file, … Read more

Laravel 5 MethodNotAllowedHttpException in RouteCollection.php line 201:

This is how I do it. Routes.php admin_login.blade.php dashboard.blade.php UsersController.php Your Code: In routes.php, you have only 1 route, i.e., And there is no declaration of post method, hence, the MethodNotAllowedHttpException Also, in your controller, you are returning the view first and then processing the form which is not going to work at all. You first need to process … Read more

Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS

When you update your composer it will check the providers. Because you haven’t installed laravelcollective/html yet he can’t find it and throws an error: So first require your packeges, then add them to the config file. You can also work with composer require laravelcollective/html, it will add it to the json file automatically. Then it doesn’t matter if … Read more

No Application Encryption Key Has Been Specified

From Encryption – Laravel – The PHP Framework For Web Artisans: “Before using Laravel’s encrypter, you must set a key option in your config/app.php configuration file. You should use the php artisan key:generate command to generate this key” I found that using this complex internet query in google.com: “laravel add encrption key” (Yes, it worked even with the … Read more