adamjhn
191
13
Laravel

Why in the payment_c column is stored 0 and not 1?

Posted 9 months ago by adamjhn

I have this code to store a conference, the "dd($request->payment_c)" shows "1", however in the database is stored as "0". The $request->payment_mb shows also "1" and is stored as "1".

Do you know why in the payment_c column is stored 0 and not 1?

$conference = Conference::create([
            ...
            'payment_mb' =>$request->payment_mb ? : 0,
            'payment_c'  => dd($request->payment_c) ? : 0
            
        ]);

       ...

$conference->save();

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.