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:
@@ -28,6 +28,8 @@ class Acars extends Model
|
||||
use HashIdTrait;
|
||||
|
||||
public $table = 'acars';
|
||||
|
||||
protected $keyType = 'string';
|
||||
public $incrementing = false;
|
||||
|
||||
public $fillable = [
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@ namespace App\Models;
|
||||
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class News
|
||||
*/
|
||||
class News extends Model
|
||||
{
|
||||
public $table = 'news';
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -5,8 +5,6 @@ namespace App\Models;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepComment
|
||||
*
|
||||
* @property string pirep_id
|
||||
* @property int user_id
|
||||
*/
|
||||
|
||||
@@ -4,9 +4,6 @@ namespace App\Models;
|
||||
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepFare
|
||||
*/
|
||||
class PirepFare extends Model
|
||||
{
|
||||
public $table = 'pirep_fares';
|
||||
|
||||
@@ -5,8 +5,6 @@ namespace App\Models;
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class PirepField
|
||||
*
|
||||
* @property string name
|
||||
* @property string slug
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -4,9 +4,6 @@ namespace App\Models;
|
||||
|
||||
use App\Contracts\Model;
|
||||
|
||||
/**
|
||||
* Class UserAward
|
||||
*/
|
||||
class UserAward extends Model
|
||||
{
|
||||
public $table = 'user_awards';
|
||||
|
||||
Reference in New Issue
Block a user