public function bySlug($slug, $attributes = ['*'])
    {
        if (!request('preview')) {
            $this->published();
        }
        $model = $this->findBy(column('slug'), $slug, $attributes);

        if (is_null($model)) {
            abort(404);
        }

        return $model;
    }