Redirect to page when value is null in another table laravel

前端 未结 2 852
孤城傲影
孤城傲影 2021-01-21 17:55

I\'m trying to redirect the user to another page if my additional_infos table contain some stuff that are empty in this case, contact, name and address.

I\'ve done somet

2条回答
  •  萌比男神i
    2021-01-21 18:19

    Try transform your query to SQL to check what are you doing with database first

    $additional_info = DB::table('additional_infos')->where('address',NULL)->orWhere('name', NULL)->orWhere('number')->toSql();
    dd($additional_info);
    

提交回复
热议问题