2017-12-21 09:12:39 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
use App\Models\Navdata;
|
|
|
|
use Prettus\Repository\Contracts\CacheableInterface;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Prettus\Repository\Traits\CacheableRepository;
|
2017-12-21 09:12:39 +08:00
|
|
|
|
|
|
|
class NavdataRepository extends BaseRepository implements CacheableInterface
|
|
|
|
{
|
|
|
|
use CacheableRepository;
|
|
|
|
|
|
|
|
// Super short lived cache for when the navdata stuff is re-imported
|
|
|
|
protected $cacheMinutes = 5;
|
|
|
|
|
|
|
|
public function model()
|
|
|
|
{
|
|
|
|
return Navdata::class;
|
|
|
|
}
|
|
|
|
}
|