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
When user logged-in and remains inactive , they can be logged out after a period of time . so this snippet will teach you this
this snippet will teach you how to create a middleware for accessing specific routes , for example is to test if admin is logged in or not
Sometimes you will need to order the eloquent results based on a relationship for example posts and categgories. Here are different ways to do so based on this laravel daily video : https://www.youtube.com/watch?v=lRi1-RYnQ7A
sometimes the https works normally, but the pagination links fire http instead https, so the solution is to use setPath('') on the collection as follows :
this snippet will teach you how to generate random passwords in laravel through laravel helper functions
Sometimes you have a multi-dimensional array and you only need the unique arrays in it. here is a simple solution using pure php function
this snippet will provide you with a remove remote snippet to remove remote url from github
this snippet will provide you code examples of how to use multiple where conditions with multiple or conditions or and conditions