Giter VIP home page Giter VIP logo

Comments (7)

patrickbrouwers avatar patrickbrouwers commented on July 19, 2024 1

Try to remove ->allFields(). Without allFields() it will take exactly what's on your resource index.

from laravel-nova-excel.

stezani avatar stezani commented on July 19, 2024 1

Ok it's my problem, i have insert OnlyOnForm and OnlyOnDetail restrictions in my fields. If i remove them it all works. Thank you

from laravel-nova-excel.

patrickbrouwers avatar patrickbrouwers commented on July 19, 2024

@stezani I do remember this working. Are you on package version 1.1.* ? See my blog post about it: https://medium.com/maatwebsite/laravel-nova-excel-1-1-ready-for-launch-37e0ff1aef06

from laravel-nova-excel.

stezani avatar stezani commented on July 19, 2024

Hi @patrickbrouwers thank you for your reply. Yes i have in my composer.json the 1.1.^ version. But when i export my excel i have only the foreign keys and not the description.
tableindex
export

from laravel-nova-excel.

patrickbrouwers avatar patrickbrouwers commented on July 19, 2024

Can you show me your code? The new DownloadExcel() part in the actions array. It seems you are selecting columns?

from laravel-nova-excel.

stezani avatar stezani commented on July 19, 2024

Hi @patrickbrouwers, here my actions function

/**
     * Get the actions available for the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function actions(Request $request)
    {
        return [
            (new DownloadExcel)->withHeadings()->allFields()->askForFilename()->askForWriterType()
        ];
    }

Thank you for your help

from laravel-nova-excel.

patrickbrouwers avatar patrickbrouwers commented on July 19, 2024

Glad you figured it out :)

from laravel-nova-excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.