vendredi 28 septembre 2018

How to get the feedback of DB insert laravel

my database insert query is as follows

DB::table('job_details')
            ->insert([
                'job_id' => $jobId,
                'item_id' => $itemId,
                'type_id' => $typeId,
                'qty' => $qnty,
                'laminating' => $laminating,
                'mat_id' => $matId,
                'rates' => $rates,
                'sqft' => $sqft,
                'ups' => $ups,
                'master_qty' => $masterQnty
            ]);

and I want to get the status if the query was successful or failed. I don't want to check again to see if the query was successful



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire