timothepearce / laravel-time-series

⏰📊✨Laravel Time Series - Provides an API to create and maintain data projections (statistics, aggregates, etc.) from your Eloquent models, and convert them to time series.

Home Page:https://timothepearce.github.io/laravel-time-series-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Projectable error

hiteshsamcom opened this issue · comments

image

Getting this error into PHP 7.4 and Laravel 8 when I define this in my model

use TimothePearce\TimeSeries\Projectable;

use Projectable;

Hi @hiteshsamcom I'll look at it tonight ;)

I think I'm using PHP 7.4 that's why it's giving the error, It must be run into PHP 8.0+

Ok so you must use another namespace regarding the Projectable trait:

use TimothePearce\TimeSeries\Models\Traits\Projectable;

Also, the package isn't compatible with PHP 7.4, you must upgrade to 8.0.