In Laravel projects, we usually store data in databases, create tables, and run migrations. But not every bit of data needs that level of complexity. Sometimes, you have small, static datasets—like a list of countries, settings, or configs—that hardly ever change. Setting up a database table for everything can feel like overkill.
That’s where Sushi comes in. It’s a lightweight package that lets you skip the database entirely for small, static data, even pulling from APIs or config arrays.
What is Laravel Sushi?
(the guy behind ), Sushi simplifies your data when a full database table is unnecessary.
How to Use Sushi?
The simplest way to use .
Cache::remember() method.getRows() pulls and transforms the data into the format Sushi requires.
Why Use Sushi?
Sushi is perfect when you need a lightweight solution for static or semi-static datasets, like:
- Configurations, lists of countries, or languages
- Predefined roles or permissions
- Any small dataset that doesn’t change often but still needs to be queried
You can skip the database entirely and enjoy the full power of Eloquent without the overhead of migrations and database setup.
One more cool thing: You don’t even need an id column unless you want to. Sushi can auto-generate IDs for each row. But keep in mind, if the data changes and the cache is reset, these IDs might change too. So, for stability, it’s best to define your own id column for each item.
Note: Since Sushi uses SQLite to store the data, make sure the SQLite extension is enabled in your PHP configuration.
Conclusion
is also compatible with Sushi and you can use it to create a Table for the entries. Our Backpack DevTools also uses Sushi, which shows how practical this tool is. Give it a try - save time and keep things light.🧑💻😎
SOCIAL SHARE CARD GENERATOR