Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel migrate if not exists

if (!Schema::hasTable('tblCategory')) {
     Schema::create('tblCategory', function($table){
            $table->engine = 'InnoDB';
            $table->increments('CategoryID');
            $table->string('Category', 40);
            $table->unique('Category', 'tblCategory_UK_Category');
            $table->timestamps();
    }
}
Comment

laravel migrate if not exists

if (!Schema::hasTable('tblCategory'))
{
     Schema::create('tblCategory', function($table){
            //...
    }
}
Comment

PREVIOUS NEXT
Code Example
Php :: convert to int php 
Php :: Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php 
Php :: woocommerce get product category name by id 
Php :: response()-make laravel pdf 
Php :: how match array in laravel collection 
Php :: Add Product Short Description To Product Category In WooCommerce 
Php :: laravel RuntimeException Session store not set on request. 
Php :: php include files 
Php :: mysqli php 7.4 
Php :: - tijsverkoyen/css-to-inline-styles 2.2.3 requires ext-dom * - the requested PHP extension dom is missing from your system. 
Php :: how to get the list of available timezones in php 
Php :: php sqrt 
Php :: laravel/framework[v8.75.0, ..., 8.x-dev] require league/flysystem ^1.1 - satisfiable by league/flysystem[1.1.0, ..., 1.x-dev]. 
Php :: laravel join 
Php :: wp get author description 
Php :: valet laravel 
Php :: how to force delete in laravel 8 
Php :: how to change laravel port 
Php :: laravel remove duplicates from array 
Php :: symfony password 
Php :: laravel restore soft delete 
Php :: php echo number with decimal 
Php :: table has column laravel 
Php :: json stringify php decode 
Php :: php timer 
Php :: laravel eloquent to array key value 
Php :: get words after string in in php 
Php :: php microtime to seconds 
Php :: how to change date formate in laravel 
Php :: livewire sortable 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =