384 Laravel 6 changes (#385)

* 384 Laravel 6 changes

* Library versions

* Update package versions

* Add keyType to models

* Remove unused dependencies

* StyleCI fixes

* Fix models for test

* Fix tests output and update test runner

* Unused imports

* Update exceptions handler

* Fix login page
This commit is contained in:
Nabeel S
2019-09-13 08:05:02 -04:00
committed by GitHub
parent 7a76ac4226
commit 23eb9dcbda
48 changed files with 935 additions and 829 deletions

View File

@@ -28,6 +28,8 @@ class Acars extends Model
use HashIdTrait;
public $table = 'acars';
protected $keyType = 'string';
public $incrementing = false;
public $fillable = [

View File

@@ -30,8 +30,10 @@ class Airport extends Model
use FilesTrait;
public $table = 'airports';
public $timestamps = false;
protected $keyType = 'string';
public $incrementing = false;
public $timestamps = false;
protected $fillable = [
'id',

View File

@@ -23,7 +23,9 @@ class File extends Model
use HashIdTrait;
use ReferenceTrait;
protected $table = 'files';
public $table = 'files';
protected $keyType = 'string';
public $incrementing = false;
protected $fillable = [

View File

@@ -38,12 +38,14 @@ class Flight extends Model
use HashIdTrait;
public $table = 'flights';
public $incrementing = false;
/** The form wants this */
public $hours;
public $minutes;
protected $keyType = 'string';
public $incrementing = false;
protected $fillable = [
'id',
'airline_id',

View File

@@ -4,13 +4,11 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class Navdata
*/
class Navdata extends Model
{
public $table = 'navdata';
protected $keyType = 'string';
public $timestamps = false;
public $incrementing = false;

View File

@@ -4,9 +4,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class News
*/
class News extends Model
{
public $table = 'news';

View File

@@ -13,8 +13,6 @@ use Carbon\Carbon;
use Illuminate\Support\Collection;
/**
* Class Pirep
*
* @property string id
* @property string flight_number
* @property string route_code
@@ -57,6 +55,8 @@ class Pirep extends Model
use HashIdTrait;
public $table = 'pireps';
protected $keyType = 'string';
public $incrementing = false;
/** The form wants this */

View File

@@ -5,8 +5,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class PirepComment
*
* @property string pirep_id
* @property int user_id
*/

View File

@@ -4,9 +4,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class PirepFare
*/
class PirepFare extends Model
{
public $table = 'pirep_fares';

View File

@@ -5,8 +5,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class PirepField
*
* @property string name
* @property string slug
*/

View File

@@ -6,7 +6,11 @@ use App\Contracts\Model;
use App\Models\Enums\PirepFieldSource;
/**
* Class PirepFieldValue
* @property string pirep_id
* @property string name
* @property string slug
* @property string value
* @property string source
*/
class PirepFieldValue extends Model
{

View File

@@ -5,8 +5,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class Rank
*
* @property string name
* @property int hours
* @property float manual_base_pay_rate

View File

@@ -5,8 +5,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class Setting
*
* @property string id
* @property string name
* @property string key
@@ -19,6 +17,8 @@ use App\Contracts\Model;
class Setting extends Model
{
public $table = 'settings';
protected $keyType = 'string';
public $incrementing = false;
protected $fillable = [

View File

@@ -4,9 +4,6 @@ namespace App\Models;
use App\Contracts\Model;
/**
* Class UserAward
*/
class UserAward extends Model
{
public $table = 'user_awards';