PHP

Search Results

Use the search box on the top of the page to search posts in PHP

Why you should be using backed enums in Laravel

Another year, another new “killer” feature for the poor, embattled software developer to learn rears its ugly head. Fortunately, enums only take a few minutes to learn and can be pretty useful for standardising database columns. Are they going to change the world? Probably not. Are they going to make…

Automating your service and repository patterns in Laravel with command generators

“Why spend 20 seconds doing something when you can spent 4 hours automating it,” goes the proverb. See any professional proverbists around any more? No, because they’ve all been automated. Also it’s fun. Whatever your programming pattern in Laravel, chances are that the php artisan make:x command is going to…

Easier Laravel polymorphic relationships with MorphMap

Polymorphic relationships are a hugely powerful way to make connections between tables in a Laravel application. Say you have tables called companies, users, & admins and all three needed to store addresses, without polymorphic relationships, we’d either have to forego standard two-way relationships in an addresses table and just use…

PHP Code Snippets Episode 2 Use An Array To fill a Option Box

In this post I am going to show you how to take the values from an array and use them, in a form option box. First of all we are going to make a simple array.. For this example i will just make a basic array, however you could use…
Showing 1 to 4 of 4 items
First
Last
Copyright 2007 - 2024 southcoastweb is a brand of DSM Design.