Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
@@ -7,5 +7,6 @@ use App\BaseModel;
|
||||
class CountryCode extends BaseModel
|
||||
{
|
||||
protected $table = 'country_code';
|
||||
|
||||
protected $fillable = ['id', 'name', 'iso', 'nicename', 'iso3', 'numcode', 'phonecode', 'updated_at', 'created_at'];
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Date_format extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'date_format';
|
||||
|
||||
protected $fillable = ['id', 'format'];
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Date_time_format extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'date_time_format';
|
||||
|
||||
protected $fillable = ['id', 'format'];
|
||||
}
|
||||
|
@@ -9,6 +9,7 @@ class Email extends BaseModel
|
||||
/* Using Email table */
|
||||
|
||||
protected $table = 'email';
|
||||
|
||||
/* Set fillable fields in table */
|
||||
protected $fillable = [
|
||||
'id', 'template', 'sys_email', 'alert_email', 'admin_email', 'mta', 'email_fetching', 'strip',
|
||||
|
@@ -7,6 +7,7 @@ use App\BaseModel;
|
||||
class Form_type extends BaseModel
|
||||
{
|
||||
protected $table = 'form_type';
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'type',
|
||||
];
|
||||
|
@@ -7,6 +7,7 @@ use App\BaseModel;
|
||||
class Form_visibility extends BaseModel
|
||||
{
|
||||
protected $table = 'form_visibility';
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'visibility',
|
||||
];
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Languages extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'languages';
|
||||
|
||||
protected $fillable = ['name', 'locale'];
|
||||
}
|
||||
|
@@ -7,5 +7,6 @@ use App\BaseModel;
|
||||
class Limit_Login extends BaseModel
|
||||
{
|
||||
protected $table = 'login_attempts';
|
||||
|
||||
protected $fillable = ['User', 'IP', 'Attempts', 'LastLogin', 'created_at', 'updated_at'];
|
||||
}
|
||||
|
@@ -7,5 +7,6 @@ use App\BaseModel;
|
||||
class Log_notification extends BaseModel
|
||||
{
|
||||
protected $table = 'log_notification';
|
||||
|
||||
protected $fillable = ['id', 'log'];
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Logs extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'logs';
|
||||
|
||||
protected $fillable = ['id', 'level'];
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class MailboxProtocol extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'mailbox_protocol';
|
||||
|
||||
protected $fillable = ['id', 'name', 'value'];
|
||||
}
|
||||
|
@@ -7,5 +7,6 @@ use App\BaseModel;
|
||||
class Otp extends BaseModel
|
||||
{
|
||||
protected $table = 'user_verification';
|
||||
|
||||
protected $fillable = ['id', 'user_id', 'otp', 'temp_mobile', 'updated_at', 'created_at'];
|
||||
}
|
||||
|
@@ -7,7 +7,9 @@ use App\BaseModel;
|
||||
class Priority extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'ticket_priority';
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'name',
|
||||
];
|
||||
|
@@ -7,6 +7,7 @@ use App\BaseModel;
|
||||
class Ticket_thread extends BaseModel
|
||||
{
|
||||
protected $table = 'ticket_thread';
|
||||
|
||||
protected $fillable = [
|
||||
'id', 'ticket_id', 'ticket_subject', 'ticket_message', 'time', 'poster', 'created_at', 'updated_at',
|
||||
];
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Time_format extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'time_format';
|
||||
|
||||
protected $fillable = ['id', 'format'];
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ use App\BaseModel;
|
||||
class Timezones extends BaseModel
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $table = 'timezone';
|
||||
|
||||
protected $fillable = ['name', 'location'];
|
||||
}
|
||||
|
@@ -7,5 +7,6 @@ use App\BaseModel;
|
||||
class Version_Check extends BaseModel
|
||||
{
|
||||
protected $table = 'version_check';
|
||||
|
||||
protected $fillable = ['current_version', 'new_version', 'updated_at', 'created_at'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user