Open mattglover11 opened 9 years ago
In PotionServiceProvider, I have confirmed the use of the (apparently) depricated createMatcher.
Needs to be: / * If the directive method exists, we're using Laravel 5 / if (method_exists($compiler, 'directive')) { // do something } else { $pattern = $compiler->createMatcher('potion_asset_url'); }
I've forked your repo so I can keep developing. Let me know if an existing dev is onto this otherwise I'll submit a PR.
Guys - I've written the following code to handle the L5.1+ codebase. https://github.com/sparkeleven/laravel-potion/commit/c000e6b05eceb1a9104980563e70a82848a5b96d
I really need confirmation that I've correctly understood why you were using BladeCompiler::createMatcher in the first place as the pattern seems simple.
Thank you for your contribution, if you create a patch request I can merge it.
Call to undefined method Illuminate\View\Compilers\BladeCompiler::createMatcher()
This occurs immediately after installation.