Articles tagged with: laravel

Using Laravel Passport with AJAX requests
Using Laravel Passport with AJAX requests
Published Jan 3, 20208 min read0 comments
When building an app which requires users to log in, Laravel makes authentication easy with its Auth classes. Similarly, the Passport package can be used to facilitate building an API without the hassle of writing an OAuth framework. But Passport also includes a middleware that allows you to consume your API directly from the browser, meaning your API can be used to serve AJAX requests. The benefit to this approach is twofold. You simply only need to maintain a single set of controllers to…
Read More →
Using UUIDs with Laravel
Using UUIDs with Laravel
Published Jan 15, 20204 min read0 comments
A UUID, short for Universally Unique Identifier, is a 128-bit number often used as a database primary key. It's often notated as a 32 character, hexadecimal string seperated in to five groups with hyphens. It has been widely adopted in a variety of applications since the chance of duplicating another of the same value is infinitesimally small. UUIDs come with both pros and cons and your application should dictate whether or not to use them. They're unique. UUIDs can be generated prior to a database …
Read More →
Copyright © 2017-2023   Mark Brody | Blog