Tag: tips
-
Laravel: Adding A Default Message to a Select Drop Down with Eloquent
I ran into an issue earlier where I needed to add a default message to a drop down box created through Laravel’s Form builder. The difficulty was that the form select doesn’t allow for a default option. You have to manually add that. If you pre-populate your select with an Eloquent model, you will have…
-
PHP Curl File Upload
I spent a little bit of time trying to get my PHP to work with curl uploads. I’ve seen a couple of websites that have varying information, sometimes not really accurate nor helpful on the matter. So I want to present a barebones working example using PHP to demonstrate how to do a file upload…