'numeric|required|exists:accounts,id', 'name' => 'required|between:1,250', 'data' => 'required']; /** * @var array */ protected $fillable = ['account_id', 'name', 'date']; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function account() { return $this->belongsTo('Account'); } }