Quick Tips
6 posts
You can use temporary download URLs for your cloud storage resources to prevent unwanted access. For example, when a user wants to download a file, we redirect to an s3 resource but have the URL expire in 5 seconds
This one is for the cases where you may not want to use your incremental DB id in your url. So if now you have something like example.com/1 , you can use this package and encode your id to look like example.com/Dfs24…
Took me 10+ years to discover that form elements have a “form” attribute And can be used outside of the parent <form> element natively With this, when you submit the form, the form data will contain the select that has the :form…
I recently needed to add columns to an existing table in a Laravel project and I had to reach to this functionality, hope you find it helpful:
I was looking into date filters for a project I am working on and I thought I would share the filter helper class I am now using, it may be of some use to someone out there: First seen at: https://x.com/mmartin_joo/status/1671518854101475330
When working with the Laravel config files you may set a default value on env retrieval. This may cause an issue when the key exists in the env file but has no value so a solution is to use the ternary shorthand:…