Creating a loading div and hiding it - Ajax with loader

Here is a snippet for a function to create a loader or a loading div to be used with ajax request and then can also hide it.

Reset password for admin or user manually on Laravel

Here is a brief overview on how to implement a reset password manually for users in Laravel application.

Convert timestamp into custom date format Laravel

how to Convert timestamp into custom date format in Laravel

show validation errors in arabic language in laravel

how to show validation errors in arabic language in laravel

Redirecting back to a specific div section

how to redirect view back to a specific div section using id

Adding an existing project to GitHub using the command line

Adding an existing project to GitHub repository using the command line

DOM HELPER CLASS

In this class, we will have a helper class that will allow us to do the following: clear event listener from an element. move an element to another location ..etc

Prototype Methods

If you need to use the prototype to add new general methods to any general protoype or construct functions such as Object, Array, String .. etc, here are few examples

Print a pdf file directly from Laravel

In case you want to directly print a pdf file from the browser in Laravel, here is a snippet of code that might help you do it.

Convert an object into an array or a string

In order to convert an object into an array, this is easy using the Object.values() method. On the other hand if you want to convert an object into a string, any Object can be converted to a string using the JSON.stringify() method.