Update (all): fix php formatting using laravel pint, fix blade using shufo

This commit is contained in:
2023-07-25 22:18:01 +08:00
parent 6adc27076d
commit 82353c1ecd
37 changed files with 536 additions and 480 deletions

View File

@@ -12,7 +12,7 @@
/**
* Class Category
*
*
* @property int $id
* @property int $country_locale_id
* @property string|null $name
@@ -26,39 +26,37 @@
* @property string|null $deleted_at
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @property CountryLocale $country_locale
*
* @package App\Models
*/
class Category extends Model
{
use SoftDeletes;
protected $table = 'categories';
use SoftDeletes;
protected $casts = [
'country_locale_id' => 'int',
'enabled' => 'bool',
'is_top' => 'bool',
'_lft' => 'int',
'_rgt' => 'int',
'parent_id' => 'int'
];
protected $table = 'categories';
protected $fillable = [
'country_locale_id',
'name',
'short_name',
'slug',
'enabled',
'is_top',
'_lft',
'_rgt',
'parent_id'
];
protected $casts = [
'country_locale_id' => 'int',
'enabled' => 'bool',
'is_top' => 'bool',
'_lft' => 'int',
'_rgt' => 'int',
'parent_id' => 'int',
];
public function country_locale()
{
return $this->belongsTo(CountryLocale::class);
}
protected $fillable = [
'country_locale_id',
'name',
'short_name',
'slug',
'enabled',
'is_top',
'_lft',
'_rgt',
'parent_id',
];
public function country_locale()
{
return $this->belongsTo(CountryLocale::class);
}
}

View File

@@ -12,7 +12,7 @@
/**
* Class CountryLocale
*
*
* @property int $id
* @property string $name
* @property string $slug
@@ -21,22 +21,21 @@
* @property string|null $deleted_at
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @package App\Models
*/
class CountryLocale extends Model
{
use SoftDeletes;
protected $table = 'country_locales';
use SoftDeletes;
protected $casts = [
'enabled' => 'bool'
];
protected $table = 'country_locales';
protected $fillable = [
'name',
'slug',
'i18n',
'enabled'
];
protected $casts = [
'enabled' => 'bool',
];
protected $fillable = [
'name',
'slug',
'i18n',
'enabled',
];
}