voerro / laravel-visitor-tracker

Visitor tracker and statistics for Laravel 5.5+ (abandoned for the time being, feel free to take over)
67 stars 41 forks source link

Call to undefined method Illuminate\Database\Query\Builder::post_views() after deploy on VDS #20

Closed lipasite closed 5 years ago

lipasite commented 5 years ago

After deploy on VDS I get error Call to undefined method Illuminate\Database\Query\Builder::post_views() this is my code, works great on Local PC

use Voerro\Laravel\VisitorTracker\Models\Visit;
use Voerro\Laravel\VisitorTracker\Facades\VisitStats;
public function views()
    {
       return Visit::post_views($this->id);
    }
lipasite commented 5 years ago

Sorry, problem already solved, this was my additional method, not you