andreaselia / laravel-analytics

Analytics for the Laravel framework.
MIT License
165 stars 25 forks source link

Class "Locale" not found #52

Closed angeloskalaitzakis closed 5 months ago

angeloskalaitzakis commented 5 months ago

Im trying to add the middlewares to my Laravel 10 app and i get error Class "Locale" not found if i add this

You can add the page view middleware to a specific route group, e.g. web.php like so:

Route::middleware('analytics')->group(function () { // ... }); Or add the page view to all middlewares/on an application level like so:

// app/Http/Kernel.php

protected $middleware = [ // ... \AndreasElia\Analytics\Http\Middleware\Analytics::class, ];

andreaselia commented 5 months ago

You likely don't have the PHP intl functions enabled in your php.ini file.

angeloskalaitzakis commented 5 months ago

i do have it enabled, composer wont let you install the package if you don't enable it. could it be that i don't use tailwind and i only use bootstrap?


From: Andreas Elia @.> Sent: March 24, 2024 10:04 PM To: andreaselia/laravel-analytics @.> Cc: angeloskalaitzakis @.>; Author @.> Subject: Re: [andreaselia/laravel-analytics] Class "Locale" not found (Issue #52)

You likely don't have the PHP intl functions enabled in your php.ini file.

— Reply to this email directly, view it on GitHubhttps://github.com/andreaselia/laravel-analytics/issues/52#issuecomment-2016927664, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXATMYJXIBJFNLF4NGONRRLYZ4WVDAVCNFSM6AAAAABFFVWQYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHEZDONRWGQ. You are receiving this because you authored the thread.Message ID: @.***>

andreaselia commented 5 months ago

i do have it enabled, composer wont let you install the package if you don't enable it.

could it be that i don't use tailwind and i only use bootstrap?


From: Andreas Elia @.***>

Sent: March 24, 2024 10:04 PM

To: andreaselia/laravel-analytics @.***>

Cc: angeloskalaitzakis @.>; Author @.>

Subject: Re: [andreaselia/laravel-analytics] Class "Locale" not found (Issue #52)

You likely don't have the PHP intl functions enabled in your php.ini file.

Reply to this email directly, view it on GitHubhttps://github.com/andreaselia/laravel-analytics/issues/52#issuecomment-2016927664, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXATMYJXIBJFNLF4NGONRRLYZ4WVDAVCNFSM6AAAAABFFVWQYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHEZDONRWGQ.

You are receiving this because you authored the thread.Message ID: @.***>

Locale is a PHP intl thing, shouldn't be anything to do with your frontend. Could you take a screenshot of your phpinfo showing the intl extension is enabled? What PHP version are you running?