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
  • CampaignVar.php
  • Vladislav's avatar
    #19462 Добавление в настройки городов переменных. · 72c19216
    Vladislav committed May 17, 2021
    72c19216 Browse Files
CampaignVar.php 436 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
<?php

namespace App\Models;

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

class CampaignVar extends Model
{
    protected $fillable = [
        'campaign_id',
        'name',
        'default_value',
    ];

    protected $casts = [
        'campaign_id' => 'int',
    ];

    public function campaign()
    {
        return $this->belongsTo(Campaigns::class, 'campaign_id');
    }
}