Friendly Prefix IDs for Eloquent Models

By Laravel News - 2021-03-09

Description

Laravel Prefixed IDs is a package by Spatie that automatically adds a friendly prefixed ID to Laravel models.

Summary

  • Laravel Prefixed IDs is a package by Spatie that automatically adds a friendly prefixed ID to Laravel models.
  • As Freek Van der Herten describes in his introductory post about this package, it provides human-readable prefixes to otherwise random IDs.
  • For example, you might give a token ID that contains a friendly prefix: token_sandbox_FKdleMEKfiemsiDSMEODL The token_sandbox prefix could indicate that it's a token for your sandbox environment, which would otherwise look like a random ID.

 

Topics

  1. Security (0.07)
  2. NLP (0.07)
  3. Machine_Learning (0.06)

Similar Articles

pytorch-widedeep: deep learning for tabular data

By Medium - 2021-02-22

This is the third of a series of posts introducing pytorch-widedeepa flexible package to combine tabular data with text and images (that could also be used for “standard” tabular data alone). The…