×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: userc865b
Added: May 11, 2017 11:07 AM
Modified: May 18, 2017 8:38 PM
Views: 20
Tags: laravel
check if table exists
  1.    if (!Schema::hasTable('password_resets')) {
  2.             Schema::create('password_resets', function (Blueprint $table) {
  3.                 $table->string('email')->index();
  4.                 $table->string('token');
  5.                 $table->timestamp('created_at')->nullable();
  6.             });
  7.         }