mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
Update: laravel 8 to 12, php 7.3 to php 8.3, Jenkinsfile, Unit/Feature testing, vapor, docker
This commit is contained in:
+21
-11
@@ -9,22 +9,32 @@ use Illuminate\Database\Eloquent\Builder;
|
||||
* Class Address
|
||||
* @package App\Models
|
||||
*
|
||||
* @property \App\Models\Country country_id
|
||||
* @property \App\Models\Company company_id
|
||||
* @property \App\Models\State state_id
|
||||
* @property \App\Models\District district_id
|
||||
* @property string postcode
|
||||
* @property string street_one
|
||||
* @property string street_two
|
||||
* @property integer billing_type
|
||||
* @property int $country_id
|
||||
* @property int $company_id
|
||||
* @property int $state_id
|
||||
* @property int $district_id
|
||||
* @property string $postcode
|
||||
* @property string $street_one
|
||||
* @property string $street_two
|
||||
* @property int $billing_type
|
||||
*/
|
||||
class Address extends AbstractModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'addresses';
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
@@ -64,6 +74,6 @@ class Address extends AbstractModel
|
||||
*/
|
||||
public function scopeDefault(Builder $query)
|
||||
{
|
||||
return $query->where('billing', '=',true)->first();
|
||||
return $query->where('billing', '=', true)->first();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user