pixelfed/pixelfed

View on GitHub
app/UIKit.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}