In this snippet I will provide code snippet for validate date in laravel to be after or equal another date
In this snippet I will provide a way of validation one filed of two fields that must be filled
In this snippet I will teach you how to use custom messages in laravel lang folder to use in your controller or in your blade views
In this snippet I will teach you how to make login process in laravel using email or phone number or username
If you have a table and want to swap two field values together, here is a simple snippet.
Some time, you may need to get a record with some relationship and at the same time you need to get an inner relationship to that relationship and so forth. Here is the key : $records->with(['bill', 'bill.sponsor', 'bill.sponsorSenator', 'bill.sponsor.actions']).
At this snippet I will teach you how to get laravel collection with your wanted records by using an array of IDs with default sorting and disabled sorting
Here are different examples on how to use datatables library into your laravel project controllers.
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 : https://www.bootstraptoggle.com/