композер дапм дела, кэш не чистил. сейчас попробую. вот код <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangePostsTable extends Migration
{
/
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('posts', function (Blueprint $table) {
$table->string('title', 100)->change();
$table->text('content')->nullable()->change();
});
}
/@return void
*/
public function up()
{
Schema::table('posts', function (Blueprint $table) {
$table->string('title', 100)->change();
$table->text('content')->nullable()->change();
});
}
/
* Reverse the migrations.
*
*
@return void
*/
public function down()
{
Schema::table('posts', function (Blueprint $table) {
$table->string('title')->change();
$table->text('content')->nullable(false)->change();
});
}
}