You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
579 B
30 lines
579 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ParkingSpaceAttributes extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'parking_space_attributes';
|
|
|
|
protected $hidden
|
|
= [
|
|
'created_at',
|
|
'updated_at',
|
|
'deleted_at'
|
|
];
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public static function getList(): array
|
|
{
|
|
return self::query()->get()->select(
|
|
['id as attributes_id', 'attributes']
|
|
)->toArray();
|
|
}
|
|
}
|
|
|