add PIREP pre-file and ACARS updates; removing caching from ACARS/Pirep/User repositories; adjust PirepState enum values; add additional columns
This commit is contained in:
22
app/Repositories/AcarsRepository.php
Normal file
22
app/Repositories/AcarsRepository.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\Acars;
|
||||
use App\Repositories\Traits\CacheableRepository;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
|
||||
class AcarsRepository extends BaseRepository implements CacheableInterface
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
public function model()
|
||||
{
|
||||
return Acars::class;
|
||||
}
|
||||
|
||||
public function forPirep($pirep_id)
|
||||
{
|
||||
return $this->findWhere(['pirep_id' => $pirep_id]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user