webwizo / laravel-shortcodes

Wordpress like shortcodes for Laravel 4.2, 5.x, 6.x, 7.x, 8.x, 9.x and 10.x
MIT License
214 stars 49 forks source link

Problem with shortcode at beginning #51

Open mozvatic opened 4 years ago

mozvatic commented 4 years ago

hi, i have shortcode: [library type="document" id="68"]

When create some page and i put that code inside text paragraf or after, all working fine!

but, if i put that code at beginning of content [library type="document" id="68"] .... some text then page broken with error: View [shortcodes.] not found. (View: ...\resources\views\frontend\content\default\content.blade.php)

i have library types: document,gallery, video... inside shortcode function if i call $type to see type or data what i sent to view, all is OK, if i call content inside view for type, a get data what i send. but when i remove dd(), a iget error...

I can't find problem why shortcode is broken if i put on beginning of content!