Support the ongoing development of Laravel.io →
Laravel Laravel.io
Last updated by @tvbeek 2 years ago.
0
moderator Solution

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.

Last updated 2 years ago.

farirai123, faisal liked this reply

2
Solution selected by @farirai123

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.