Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Письменов Дмитрий Иванович / yourroomads

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • yourroomads
  • app
  • Models
  • Dictionary.php
  • Vladislav's avatar
    #19461 Страница настройки целевых аккаунтов. · 3ade173c
    Vladislav committed May 17, 2021
    3ade173c Browse Files
Dictionary.php 408 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;

class Dictionary extends Model
{
    CONST CITY = 'City';

    protected $casts = [
        'update' => 'boolean',
    ];

    public function token()
    {
        return $this->belongsTo(Tokens::class, 'token_id');
    }

    public function scopeDefaultOrderBy(Builder $query)
    {
        return $query->orderBy('name');
    }

}