mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
310 B
PHTML
22 lines
310 B
PHTML
5 years ago
|
<?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;
|
||
|
}
|
||
|
}
|