I see the return value is an array, what do you get if you place both links in the array? (You use in both buttons the same icon and url, I suspect they should be different)
public function commandBar(): iterable {
return [
Link::make('Create new')
->icon('pencil')
->route('platform.contact.edit'),
Link::make('Delete')
->icon('pencil')
->route('platform.contact.edit')
];
}
ps. I have updated your post to get the code blocks for both code parts.
farirai123, faisal liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community