Control Laravel Jetstream & Fortify features

this snippet will teach you how to enable or disable jetstream or fortify features

AWS SES Credentials

When you need to use the email service provided by the AWS, you will have to subscribe to that service called SES, Simple Email Service. and when you need to access an online client to send and receive email message, you will have to use the Amazon WorkMail service. If you want to use the SES SMTP service credentials to send an email message programmatically using PHP, Laravel .. etc application. You will first have to have a username and a password. You can generate a username(Access Key ID) and a password (Secret access Key) from within AWS SES console, then SMTP Settings, then Create My SMTP Credentials button, then a user will be generated for you with the access keys, which will be available only for download this time. Now. You have an Access Key ID, and Secret Access Key. But this is not the password you will need, You have to convert this secret access key to a SMTP Password. To do so, You will have to use the following code snippets in your preferred programming language to generate the password.

Elastic beanstalk environment creation process

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.

Suppress or hide the environment variables from error message screen

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

Disable click outside of bootstrap modal area to close modal

This snippet will teach you how to prevent modal close on clicking outside the bootstrap modal

Get Laravel Route Parameters in Middleware

This snippet will teach you how to get route parameters in middleware to check for it or do anything else

Fix: [nested] failed to find nested object under path [usersTagsArray]

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,

From Excel to SQL Query

If you have data in an Excel sheet and would like to create a sql query to add/insert data here is the way,

Login with facebook in laravel using socialite

In this snippet I am going to explain how to login to your system with facebook using laravel socialite package

Integrate paypal to your laravel project

This snippet will teach you how to integrate paypal to your laravel project