Passing javascript array to laravel controller in URL

this snippet will teach you how to pass javascript array from javascript to laravel controller in the url and how to get that array back in laravel controller

Using datatables with examples

Here are different examples on how to use datatables library into your laravel project controllers.

Create toggle button using bootstrap

You can only add the .min.css & .min.js files from the following library to your head code of the page and you will have a toggle button from a check-box. The only thing you need to do for a check-box to be turned into a toggle button is to add the ( data-toggle="toggle" ) attribute to it. Reference :

Remove select box options

In order to remove all the options of a select box use the following snippet.

Reload page using JS

If you need to reload the current page using JS, use on the following suggestions

javascript convert datetime to date and time

this snippet will teach you how to convert datetime to time and date individually

Setting current date for a date input type box in a modal

this snippet will teach you how to set current date and current datetime in input date and input datetime-local specially on fire bootstrap modal

jquery reset select to first option

this snippet will teach you how to select first option of select element specially on real time or ajax response

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.