php - Object of class Illuminate\Database\Schema\Blueprint could not be converted to string when migrate -


<?php  use illuminate\support\facades\schema; use illuminate\database\schema\blueprint; use illuminate\database\migrations\migration;  class createsubcategorytable extends migration {     public function up()     {``         schema::create('subcategories', function (blueprint $table) {             $table->increments('id');             $table->string('name');             $table->string('description');             $table->string('parent');             $table->timestamps();         });     }       public function down()     {         schema::dropifexists('subcategories');     } } 

thiis code when migrate problem show

object of class illuminate\database\schema\blueprint not converted string


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -