• This project
    • Loading...
  • Sign in

OnePoem / OnePoem-Server

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • OnePoem-Server
  • app
  • Models
  • Setting.php
  • 李帅's avatar
    1.新增setting表. · 61b9ebec ...
    61b9ebec
    2.后台新增setting功能.
    李帅 authored 2022-03-15 19:11:40 +0800
Setting.php 328 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Setting extends Model
{
    const CURRENT_VERSION = 1;

    use HasFactory;

    public function getContentAttribute()
    {
        return json_decode($this->attributes['content'],true);
    }
}