rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Why timestamps are disabled? #156

Closed adriandrozdz closed 6 years ago

adriandrozdz commented 6 years ago

I would like to implement a feature where I retreive the most popular tags over the last month and an obvious solution would be to get them by timestamp which is disabled here by default and hardcoded in Tagged model.

Is there any way I can easily enabled it? Writing only migrations to add timestamps won't work as the property is set to false.

public $timestamps = false;

adriandrozdz commented 6 years ago

Nevermind I extended the model class and adjusted config file

rtconner commented 6 years ago

Yes, that is the preferred solution. Most implementations do not need timestamps.