Archives for March 2017
March 20, 2017
Generating UUID and ApiTokens for Laravel Eloquent Models using Observers
Recently I needed to replace Eloquent's default auto-increment numeric ID with a UUID on a few of my models. This can be done in several ways, but after a good chat with the great people in the #Laravel channel on PHPNL's Slack team, I decided to use...