Answer the question
In order to leave comments, you need to log in
Why can't Laravel find a connected component class from a third party package?
Using Laravel 8 trying to install spatie/laravel-honeypot . I connected to the config/app.php
service provider in which the blade component is connected, and directives, but when I load the page on which I try to call the component from the package, I get an error:
Unable to locate a class or view for component [honeypot]
The directive doesn't work either. Blade::getClassComponentAliases();
then the list of components will contain a honeypot. Answer the question
In order to leave comments, you need to log in
This is how I use it:
Route
Route::post('/contacts', [ContactsController::class, 'receive'])
->middleware([\Spatie\Honeypot\ProtectAgainstSpam::class])
->name('site.form.feedback');
<form class="form" method="post" action="{{ route('site.form.feedback') }}">
@csrf
@honeypot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question