djoo
djoo

Reputation: 695

Laravel Action Facade\Ignition\Http\Controllers\ExecuteSolutionController not defined

I added 2 fields in a table. Nothing crazy When i want to save() my object i get this error.

$annonce = new Annonce([
            'user_id' => auth()->user()->id,
            'slug' => uniqid(),
            'is_active' => false,
            'energie_ges' => $request->get('energie_ges'), //field i added
            'energie_dpe' => $request->get('energie_dpe'),//field i added
            'active_until' => Carbon\Carbon::now(),
        ]);

        dd($annonce);//works

        $saved = $annonce->save(); //create the exception

I try to find out since 2 hours but i have no idea why.

I did a php artisan optimize and nothing change.

Thanks

Upvotes: 1

Views: 3150

Answers (1)

djoo
djoo

Reputation: 695

I found. It was simple, just made a mistake in the name of the fields of my database i added in the migration file.

It was hard to find because the error of Laravel was wrong.

Upvotes: 4

Related Questions