fix repository base classes

This commit is contained in:
Nabeel Shahzad 2017-08-24 13:03:10 -05:00
parent aba0ed2065
commit 4c61e6eafc
8 changed files with 6 additions and 8 deletions

View File

@ -3,7 +3,7 @@
namespace App\Repositories;
use App\Models\Airport;
use InfyOm\Generator\Common\BaseRepository;
class AirportRepository extends BaseRepository
{

View File

@ -4,7 +4,8 @@ namespace App\Repositories;
use Illuminate\Validation\Validator;
abstract class BaseRepository extends \InfyOm\Generator\Common\BaseRepository {
abstract class BaseRepository extends \Prettus\Repository\Eloquent\BaseRepository {
public function validate($values) {
$validator = Validator::make(

View File

@ -3,6 +3,8 @@
namespace App\Repositories;
use App\Models\Fare;
use Prettus\Repository\Eloquent\BaseRepository;
class FareRepository extends BaseRepository
{

View File

@ -3,7 +3,6 @@
namespace App\Repositories;
use App\Models\Flight;
use InfyOm\Generator\Common\BaseRepository;
class FlightRepository extends BaseRepository
{

View File

@ -3,7 +3,6 @@
namespace App\Repositories;
use App\Models\PirepField;
use InfyOm\Generator\Common\BaseRepository;
class PirepFieldRepository extends BaseRepository
{

View File

@ -3,7 +3,6 @@
namespace App\Repositories;
use App\Models\Pirep;
use InfyOm\Generator\Common\BaseRepository;
class PirepRepository extends BaseRepository
{

View File

@ -3,7 +3,6 @@
namespace App\Repositories;
use App\Models\Rank;
use InfyOm\Generator\Common\BaseRepository;
class RankRepository extends BaseRepository
{

View File

@ -3,7 +3,6 @@
namespace App\Repositories;
use App\Models\Subfleet;
use InfyOm\Generator\Common\BaseRepository;
class SubfleetRepository extends BaseRepository
{
@ -11,7 +10,7 @@ class SubfleetRepository extends BaseRepository
* @var array
*/
protected $fieldSearchable = [
];
/**