When creating an Elastic beanstalk environment, you might do things such as see the logs generated from the EC2 instance, deploy a composer install, give permissions for FTP connections, Run a php artisan command, add something to .ebextensions ..etc. In this article we will list some of these commands.
Some time when an error message is generated from Laravel application, it will contain sensitive data such as the database credentials, SMTP credentials and others. Top stop showing such sensitive data, add the following to your config/app.php
This snippet will teach you how to prevent modal close on clicking outside the bootstrap modal
This snippet will teach you how to get route parameters in middleware to check for it or do anything else
Sometimes when searching multiple indices at once with one of those indices having a nested rule to be searched against, other indices that don't have this rule, will return an error like this : [nested] failed to find nested object under path [usersTagsArray], Here is the solution for it: inside the nested query it self use the following attribute to ignore it inside unmapped indices : "ignore_unmapped" : true,
If you have data in an Excel sheet and would like to create a sql query to add/insert data here is the way,
In this snippet I am going to explain how to login to your system with facebook using laravel socialite package
This snippet will teach you how to integrate paypal to your laravel project
how to Calculate difference in minutes between created_at and current time in Laravel using carbon
this snippet will teach you how to disable dates before today in input type date