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

Facebook OAuth “The domain of this URL isn’t included in the app’s domain”

This usually happens if you have entered the wrong details when you created the App in Facebook. Or have you changed a URL’s of an existing App? Can you please recheck the settings of your APP in this page? https://developers.facebook.com/apps Select the correct App and click in the edit button; Check the URLs & paths … 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

Minimum Working Example for ajax POST in Laravel 5.3

I presume you have a basic understanding of the model-controler-view paradigm, a basic understanding of Laravel and a basic understanding of JavaScript and JQuery (which I will use for reasons of simplicity). We will create an edit field and a button which posts to the server. (This works for all versions from Laravel 5.0 to … Read more

tech