Answer the question
In order to leave comments, you need to log in
Script to edit view blade from admin panel?
In the admin panel, you need to add the ability to add / remove a specific block in the view file of the Laravel site.
For example , I need to add an ad block on a post page. To avoid climbing product.blade.php every time . I have the code of the block to be added, it remains to stick it into the view from the admin panel.
Perhaps there are already some packages?
By editing blades , with preview?
Answer the question
In order to leave comments, you need to log in
No way. This cannot be done categorically. Either dynamically load html or stop writing CMS =/
blades редактировать на проде не надо, оно там из кеша только должно браться и изменение шаблона бесполезно.
нужно завести переменную с html кодом которую просто вставлять в этом шаблоне
{!! adHtmlContent !!}
а для редактирования html используйте уже любой wysiwyg
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question