Registering new blocks #26
Unanswered
beyond-these-walls
asked this question in
Q&A
Replies: 1 comment
-
Your Block is called |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tried making a new block:
php artisan dropblockeditor:make Text
Correct files are created:
BLOCK PATH: /var/www/html/app/DropBlockEditor/Blocks/Text.php
EDIT COMPONENT PATH: /var/www/html/app/Livewire/Text.php
Added the following to the config file:
return [
'blocks' => [
Jeffreyvr\DropBlockEditor\Blocks\Test::class,
],
]
Got error:
Class "Jeffreyvr\DropBlockEditor\Blocks\Test" not found
So tried the following:
App\DropBlockEditor\Blocks\Test::class,
\App\DropBlockEditor\Blocks\Test::class,
Got error:
Class "App\DropBlockEditor\Blocks\Test" not found
How can I register a new block?
Beta Was this translation helpful? Give feedback.
All reactions