vtalbot / markdown

Markdown compiler for Laravel 4 and 5
100 stars 24 forks source link

For 2.0: ErrorException in MarkdownServiceProvider.php line 114: Invalid argument supplied for foreach() #21

Closed demokn closed 9 years ago

demokn commented 9 years ago

First, thanks for your supporting for the project. Follow your step, when using Markdown::string('#test'), it throws this error. If I fix this manually by create config/markdown.php and return array('paths' => array()), another error is thrown. So I am confused, thank you for your answer.

Sorry to disturb you, I have found the reason. When I excute 'php artisan vendor:publish --provider=“VTalbot\Markdown\MarkdownServiceProvider”', nothing happened. I should copy config options in vendor/vtalbot/markdown/src/config/config.php to config/markdown.php manually.