mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 15:01:27 +00:00
22 lines
310 B
PHP
22 lines
310 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class UIKit extends Model
|
||
|
{
|
||
|
protected $table = 'uikit';
|
||
|
protected $fillable = [
|
||
|
'k',
|
||
|
'v',
|
||
|
'defv',
|
||
|
'dhis'
|
||
|
];
|
||
|
|
||
|
public static function section($k)
|
||
|
{
|
||
|
return (new self)->where('k', $k)->first()->v;
|
||
|
}
|
||
|
}
|