B
B
BonBon Slick2017-02-07 11:59:51
JavaScript
BonBon Slick, 2017-02-07 11:59:51

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

3 answer(s)
A
Alex Wells, 2017-02-17
@BonBonSlick

No way. This cannot be done categorically. Either dynamically load html or stop writing CMS =/

Y
Yuri, 2017-02-07
@riky

blades редактировать на проде не надо, оно там из кеша только должно браться и изменение шаблона бесполезно.
нужно завести переменную с html кодом которую просто вставлять в этом шаблоне
{!! adHtmlContent !!}
а для редактирования html используйте уже любой wysiwyg

W
WQP, 2017-02-07
@WQP

Делайте систему виджетов как в том же WP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question