#import Action method examples does not exist.

10 messages · Page 1 of 1 (latest)

autumn pollen
#

I'm trying to add multiple examples to the CSV file, but I'm getting an error saying 'method examples does not exist.'
Please find below the flare link and attachment of my code .

    ImportColumn::make('sku')
          ->label('SKU')
          ->exampleHeader('SKU')
          ->examples(['ABC123', 'DEF456']),?>```
novel currentBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

coral anchor
#

Please prpvide the stack trace

#

it is saying examples does not exist.

Where did you get that from? and can you run php artisan about

#

I suspect your filamentphp version is out of date since examples was added on the 10/06/2024

autumn pollen
#

Yes, this issue occurred in my Laravel version 10.48, but after updating to Laravel version 11.21, the method examples are now being detected properly.

coral anchor
autumn pollen
#

Please check the attached screen shot for your reference .

coral anchor
autumn pollen
#

Thank you for your time; the issue has been resolved.