laravel / nova-issues

554 stars 34 forks source link

lens action not visible #1402

Closed Naoray closed 5 years ago

Naoray commented 5 years ago

Description:

I have a Student Resource with actions and created a StudentWallet lens with own actions. When I go to the lens I only see the actions of the Student Resource appearing. I can't find the lens/student-wallets/actions url in the browser's network tab either, only the resource's students/actions link.

image

// App\Nova\Student.php
    public function lenses(Request $request)
    {
        return [
            new Lenses\StudentWallets,
        ];
    }

    public function actions(Request $request)
    {
        return [
            (new DownloadExcel)->withHeadings(),
        ];
    }

// App\Nova\Lenses\StudentWallets.php
public function actions(Request $request)
    {
        return [
            new SendPaymentReminder,
        ];
    }

Steps To Reproduce:

davidhemphill commented 5 years ago

This feature was added in a later version of Nova I believe. Maker sure you're on the latest.