Answers for "if data exists in table then check condition in laravel"

PHP
1

check table exists in db laravel

if (!Schema::hasTable('table_name')) {
    // Code to create table
}
Posted by: Guest on July-15-2020
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

Code answers related to "if data exists in table then check condition in laravel"

Browse Popular Code Answers by Language