Laravel Community Tools by Tighten

Category "Requests and Input" tricks

68 tricks
Laravel OTP is a comprehensive package that simplifies the generation and verification of Time-based One-Time Passwords (TOTP) and HMAC-based One-Time Passwords (HOTP). Whether you're building two-factor authentication or securing API access, Laravel OTP offers an easy-to-use, Google Authenticator-compatible solution. With support for TOTP and HOTP, and built-in methods for secret generation and verification, this package is perfect for adding an additional layer of security to your Laravel applications.
mustafakha... 1 year ago 9577
Sometimes, you want to click a column to refine the results of a table further without going through the filter menu on a Filament table.
techenby 1 year ago 19270
Send a reinitilisation code (6 digits) by email instead of a pratice link for mobile customers. In this case we are using fortify but working well with the laravel authentication system in general.
gabeta 4 years ago 14949
If you only need the functionality of a custom rule once throughout your application, you may use a Closure instead of a rule object. The Closure receives the attribute's name, the attribute's value, and a $fail callback that should be called if validation fails. Below is the code example:
asifzcpe 5 years ago 21035
if you want to run custom validation having a long function in laravel request file, you can use the following tricks to get the things done using withValidator method.
asifzcpe 5 years ago 20844
5.5
Standard API Response in PHP / Laravel
saeedvir 6 years ago 6941
Generate data in key/value structure / For ex: for admin panel dashboard
saeedvir 6 years ago 7125
This snippet will help you to make autocomplete from the database. You will get more instruction about it https://bit.ly/2rFmUEW
haruncpi 6 years ago 7867
If you want your search functionality to be dynamic as possible to avoid code repetitions, you can use this trait directly in your models
kissartisa... 7 years ago 11840