-
Notifications
You must be signed in to change notification settings - Fork 415
Closed
Description
- Lumen Version: v5.8.1
- PHP Version: 7.2.15
Description:
After upgrading from v5.7 to v5.8 I get the following error: ReflectionException: Class blade.compiler does not exist in ../vendor/illuminate/container/Container.php:794.
This is caused by calling the Blade::directive() function as shown below.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Blade::directive('test', function ($expression) {
return "<?php echo 'test'; ?>";
});
}
}c01nd01r and pashog
Metadata
Metadata
Assignees
Labels
No labels