Answers for "how to check if a row exists in table for validation laravel"

0

exists id in the table in laravel validation

'game_id' => 'required|exists:games,id,another_column,NULL',
Posted by: Guest on June-04-2021
1

laravel 8 check if record exists

$subscription_count = DB::table('subscriptions')->where('pid_user',$pid_user)->count();

        //check if any subscription plan exists
        if($subscription_count == 0)
        { 
          //record does not exist 
        }else{
          //record exists
        }
Posted by: Guest on January-04-2022

Code answers related to "how to check if a row exists in table for validation laravel"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language