Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel create table 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

PREVIOUS NEXT
Code Example
Php :: how to get the previous page url in php 
Php :: remove time from date in carbon 
Php :: check if custom post type exists 
Php :: laravel faker 
Php :: laravel 8 resource 
Php :: lastinsertId php 
Php :: clear cache without using composer in laravel 8 
Php :: PHP rtrim — Strip whitespace (or other characters) from the end of a string 
Php :: how to excluse csrf in a route laravel 
Php :: reverse string php 
Php :: Invalid credentials. symfony 
Php :: laravel textarea value 
Php :: Simple 301 redirect 
Php :: laravel validate change password 
Php :: WordPress Plugin Definition 
Php :: php mysqli insert name adress 
Php :: phpmyadmin export database 
Php :: fallo al conectar al servidor ftp wordpress 
Php :: session array 
Php :: silverstripe image upload field 
Php :: REFERRER CODEIGNITER 3 
Php :: php assign an array inside a foreach loop 
Php :: wordpress how to display breadcrumb in child theme programmatically 
Php :: twig render string 
Php :: consumir soap php 
Php :: octobercms mail register 
Php :: php get woocommerce attribute from database 
Php :: xss=removed 
Php :: Full text search laravel mongodb 
Php :: php dar echo em um stdClass 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =