Answers for "check table already exists or not in laravel"

PHP
0

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 "check table already exists or not in laravel"

Browse Popular Code Answers by Language