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]);
|
||||
}
|
||||
}
|
||||
@@ -8,10 +8,8 @@ use App\Models\User;
|
||||
use App\Repositories\Traits\CacheableRepository;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
|
||||
class PirepRepository extends BaseRepository implements CacheableInterface
|
||||
class PirepRepository extends BaseRepository
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
protected $fieldSearchable = [
|
||||
'user_id',
|
||||
'flight_id',
|
||||
|
||||
@@ -2,17 +2,13 @@
|
||||
namespace App\Repositories;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Prettus\Repository\Contracts\CacheableInterface;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Enums\PilotState;
|
||||
use App\Repositories\Criteria\WhereCriteria;
|
||||
use App\Repositories\Traits\CacheableRepository;
|
||||
|
||||
class UserRepository extends BaseRepository implements CacheableInterface
|
||||
class UserRepository extends BaseRepository
|
||||
{
|
||||
use CacheableRepository;
|
||||
|
||||
protected $fieldSearchable = [
|
||||
'name' => 'like',
|
||||
'email' => 'like',
|
||||
|
||||
Reference in New Issue
Block a user