6
How can I add a default value to a column of my Mysql table via Laravel 4?
In SQL would be:
create table tabelaTeste(
id int NOT NULL AUTO_INCREMENT,
coluna1 varchar(50) DEFAULT valor,
PRIMARY KEY(id));
In Laravel I’m creating like this:
Schema::create('tabelaTeste', function ($table){
$table->increments('id');
$table->string('coluna1', '50');
});