Add flight route map; algorithm for picking from multiple nav points; some tests
This commit is contained in:
20
app/Repositories/NavdataRepository.php
Normal file
20
app/Repositories/NavdataRepository.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Navdata;
|
||||
use App\Repositories\Traits\CacheableRepository;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user