-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Description
I was having trouble getting Widgets work on Laravel 5.1. My app runs throw ErrorException, this is it:
ErrorException in AbstractWidgetFactory.php line 122:
Widget class must extend Arrilot\Widgets\AbstractWidget class (View: /home/vagrant/Code/Laravel/resources/views/welcome.blade.php)
My Widget Class was created with artisan command 'artisan make:widget Input'
and it extends AbstractWidget from Arrilot\Widgets\AbstractWidget. So here is class:
<?php namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
class Input extends AbstractWidget {
protected $config = [
'type' => 'text'
];
public function run()
{
return view("widgets.input", [
'config' => $this->config,
]);
}
}
What can it be?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels