Laravel-excel: entries!F347 -> Formula Error: Unexpected operator '='

Created on 9 Oct 2014  路  1Comment  路  Source: Maatwebsite/Laravel-Excel

Im getting the following error, been struggling on this quite a bit.

entries!F347 -> Formula Error: Unexpected operator '='

public function exportCampaign(Campaign $campaign)
    {
        $entries = Entry::whereCampaignId($campaign->id)->get()->toArray();
        $campaign = $campaign->toArray();

        Excel::create('Filename', function($excel) use ($campaign, $entries) {

            $excel->sheet('campaign', function($sheet) use ($campaign) {

                $sheet->fromArray($campaign);

            });

            $excel->sheet('entries', function($sheet) use ($entries) {

                $sheet->fromArray($entries);

            });

        })->export('excel');
    }

Most helpful comment

Ok i got this sorted. Turns out a user had filled out a '=' in one of the rows causing it to fall over.

>All comments

Ok i got this sorted. Turns out a user had filled out a '=' in one of the rows causing it to fall over.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gamevnlc picture gamevnlc  路  3Comments

vandolphreyes picture vandolphreyes  路  3Comments

amine8ghandi8amine picture amine8ghandi8amine  路  3Comments

disto picture disto  路  3Comments

lucatamtam picture lucatamtam  路  3Comments