App\Http\Controllers\Laralum\CommentsController::edit PHP Method

edit() public method

public edit ( $id )
    public function edit($id)
    {
        Laralum::permissionToAccess('laralum.posts.comments');
        $row = Laralum::comment('id', $id);
        $post = $row->post;
        # Check blog permissions
        Laralum::mustHaveBlog($post->blog->id);
        $data_index = 'comments';
        require 'Data/Edit/Get.php';
        if ($row->author) {
            $fields = array_diff($fields, array("name", "email"));
        }
        return view('laralum/comments/edit', ['row' => $row, 'fields' => $fields, 'confirmed' => $confirmed, 'empty' => $empty, 'encrypted' => $encrypted, 'hashed' => $hashed, 'masked' => $masked, 'table' => $table, 'code' => $code, 'wysiwyg' => $wysiwyg, 'relations' => $relations]);
    }