Support the ongoing development of Laravel.io →
Laravel Laravel.io
Last updated by @tvbeek 5 months 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 5 months ago.
2
Solution selected by @farirai123

Sign in to participate in this thread!

LoadForge

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.

© 2023 Laravel.io - All rights reserved.