D
D
dk-web2019-05-13 12:49:58
Laravel
dk-web, 2019-05-13 12:49:58

How can I manage css/scss styles through the Laravel admin?

Good day. Finally completed the "settings" section in my bike).
But, here the question arose - is it possible to manage css styles in the same way?
I remember when I connected the layout.php file, put the header in it so that it reads like css and can use php inside pseudo css.
And how could Laravel be connected to this or vice versa to Laravel?
And is this practiced at all?
After all, there are a lot of admin panels, where it is possible to change the background color, the color of the buttons. How is this implemented?
Thanks
UPDATE:
stupidly added to layout.blade.php - it works. As a primitive will go of course.

<style>
    h1 {color:  {{ setting('color', 'red') }} }
  </style>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2019-05-13
@Wolfnsex

And how could Laravel be connected to this or vice versa to Laravel?
Just like normal PHP. Why change the HEADER - it's not clear to me yet, you can load any text from the server by including it as CSS (in theory it should work without any additional gestures).
And is this practiced at all?
Usually - no .
After all, there are a lot of admin panels, where it is possible to change the background color, the color of the buttons. How is this implemented?
Most often, either with the help of JavaScript, or by replacing the CSS file (on the main page) that overrides some styles (or a combination of these methods).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question