E
E
Eugene Zalivadnyi2015-10-21 20:29:59
Laravel
Eugene Zalivadnyi, 2015-10-21 20:29:59

How to implement fields with settings in Laravel?

Hello. I'm learning Laravel. Need development advice.
It is necessary to implement the functionality in the admin part - two input fields:
1) dollar exchange rate in rubles (63.63)
2) margin percentage (10)
These numbers will be used many times when calculating and displaying prices on the frontend.
The question is how best to implement this and whether it is advisable to use records in the database for this.
If it is better to use reading and writing to the database, then how to create this single record and how to read it later?
Perhaps there are some ready-made solutions for implementing the settings functionality in the admin panel, which I don’t know about yet?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2015-10-21
@agnamanshamansky

You can store this data in a json file, which will be stored in storage/app.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question