Hello,
so I wanted to overwrite the frontend/app.blade.php file
my extend.php file:
<?php
use Flarum\Extend;
use Flarum\Frontend\Document;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\View\Factory;
return [
new Extend\Locales(__DIR__.'/resources/locale'),
(new Extend\Frontend('forum'))
->content(function (Document $document) {
// $document->contentView = 'frontend';
}),
function (Dispatcher $events, Factory $views) {
$views->addNamespace('front', __DIR__.'/resources/views');
},
];
the error I get: Error booting Flarum: Call to undefined method Closure::extend()
If I remove the:
function (Dispatcher $events, Factory $views) {
$views->addNamespace('front', __DIR__.'/resources/views');
},
forum loads.
any idea?