for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MedianetDev\BackpackForm\Models;
use Illuminate\Database\Eloquent\Model;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Support\Facades\App;
class FormFieldCondition extends Model
{
use CrudTrait;
Backpack\CRUD\app\Models\Traits\CrudTrait
MedianetDev\BackpackForm\Models\FormFieldCondition
$fakeColumns
$identifiableAttribute
$Type
/*
|--------------------------------------------------------------------------
| GLOBAL VARIABLES
*/
protected $table = 'med_form_field_conditions';
protected $guarded = ['id'];
/**
* The attributes that are mass assignable.
*
* @var array
protected $fillable = [
'operation',
'form_field_id',
'form_step_id',
'when',
'eq',
'show',
];
| FUNCTIONS
| RELATIONS
* Get the form field that owns the translation
public function formField()
return $this->belongsTo(FormField::class, 'form_field_id');
}
| SCOPES
| ACCESSORS
| MUTATORS