check()) { if ($value->user_id == auth()->user()->id) { return $value; } } throw new NotFoundHttpException; } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function rules() { return $this->hasMany('FireflyIII\Models\Rule'); } /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function user() { return $this->belongsTo('FireflyIII\User'); } }