Use Spatie Valuestore Package for Global Laravel Settings

preview_player
Показать описание
If you want to save some global settings of your project, no need to save them in the database - a package Valuestore can make this task easier.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

This is useful for personal projects, in my work project deployed to many different customers with their own preferences, it may have common settings, but for sure many things they prefer different

yuriimakarov
Автор

I used akaunting/laravel-setting and worked well after some tricks.
One disadventage of saving in JSON is you have one more file to backup and restore if needed

bernardocampos
Автор

Great Video, could you please do a video about spatie laravel-settings package

tahaabujrad
Автор

I don’t think it’s a good idea to work this way.

1. You get merge conflicts
2. When you change it on a production server it resets upon deploy or change when developing

Just create a model ServerSetting and use that table for the settings. Create a CRUD page for that model and make a configuration file with the default settings and next create a seeder that runs every time you update your production/development project to insert the newly configuration keys with their values into the database.

pascalhesselink
Автор

In most cases we use a table settings with the columns key and value.

BelgranoK
Автор

Hi, I have a question about design.

Assume I have an API in Laravel that process some tasks in background (Queues) like logs but I also need to process messages generated by other apps in plain json.

I was thinking about using RabbitMQ and creating a consumer to process the queue from other apps and keep the in-app tasks in the default queue (using default queue in database or i. Rabbitmq).

What you think about that?

gssj-op
Автор

What if we do for the increment for example like Expense and Invoice, do we need to create seperate file

sengwatrongrat
Автор

What if using multiple laravel instance behind a laod balancer ? This would not justify those situations unless used with some type of central or shared json file. Am I right? Correct me if not

brijeshdave
Автор

What are the other recomended packages for saving settings? I prefer to save them in a database table.

smith
Автор

I am using this package spatie/laravel-settings

nabih.siblini
Автор

can we use this package in Filament v3? or you can make a video for the package please help.

sabinmagar
Автор

I use damodar-bhattarai/settings (it stores in database and cache them)

damodarbhattarai
Автор

Which text editor do you use on your Laravel Daily website? Can you share it, please?

mdasifiqbal
Автор

How to create random SQL domains, like 100 random names, id's and etc...? Using laravel

dragosssdrago
Автор

Can you please make a video on laravel api documentation using swagger?

betecieai
Автор

what is the best laravel saas package ?

TariqSajid
Автор

I use mongodb to store unstructured data 😄

ibrahimahmad
Автор

This has a code smell: it looks like "global variables" on steroids and people will mis-use it in every possible way :D

Sahrokh