Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

farshadf's avatar

how to add a mass action in voyager laravel admin panel

i want to make some bulk action to laravel voyager admin panel like what it has as default name bulk delete . here is the image enter image description here

i have added a new custom action and its like below :

    public function massAction($ids)
    {
        $users = User::wherein('id',$ids)->get();
        return Excel::download(new UsersExport($users),'users.xlsx');
    }

but my question is that can i open a modal like Bulk Delete before sending the data to massAction exactly like bulk Delete thanks in advance

0 likes
2 replies

Please or to participate in this conversation.