JayBizzle / Laravel-Crawler-Detect

A Laravel wrapper for CrawlerDetect - the web crawler detection library
MIT License
311 stars 30 forks source link

Undefined type 'Crawler'. #18

Closed Zephni closed 6 months ago

Zephni commented 2 years ago

On a fresh Laravel 8x install I followed the steps in the README like so:

Added " Jaybizzle\LaravelCrawlerDetect\LaravelCrawlerDetectServiceProvider::class," to config.app

Added " 'Crawler' => Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect::class," to aliases in config.app

Added "use Crawler;" at the top of a Livewire component

But when trying to use "Crawler::isCrawler()" I am getting the error: "Undefined type 'Crawler'."

Is there something I am missing?

JayBizzle commented 2 years ago

Looks okay to me.

Your going to have to give me more information before I can help you further