已采納回答 / 321654741
輸入完后按ESC,再輸入:wq回車好像,我都是用Nano,編輯完直接Ctrl+x,y回車,回車就好了,比較順手,你可以查下linux的文本編輯看看
2017-08-25
三篇都看完了。。沒什么大坑。學得比較順利,老師的三篇教程我覺得挺適合入門的。老師教得通俗直接,比較好懂。另外,也漸漸喜歡上了laravel框架,準備投入到項目實戰中
2017-08-23
達達 5.4版本太短問題解決
找到App/Providers/AppServiceProviders.php
添加use Illuminate\Support\Facades\Schema;
和
public function boot()
{
//
Schema::defaultStringLength(191);
}
重新執行php artisan migrate(如果先前執行過會報錯,請先把localhost里的數據表刪除,再執行)
找到App/Providers/AppServiceProviders.php
添加use Illuminate\Support\Facades\Schema;
和
public function boot()
{
//
Schema::defaultStringLength(191);
}
重新執行php artisan migrate(如果先前執行過會報錯,請先把localhost里的數據表刪除,再執行)
2017-08-14
最贊回答 / MrMarko
composer show --all (這里填你需要的包 可以看到所有包的版本)然后composer require (你需要的包):版本號這樣下載即可
2017-08-12
create table students(
id int not null primary key auto_increment,
name varchar(255) not null default '' comment '姓名',
age int unsigned not null default 0 comment '年齡',
id int not null primary key auto_increment,
name varchar(255) not null default '' comment '姓名',
age int unsigned not null default 0 comment '年齡',
2017-08-12
sex int unsigned not null default 10 comment '性別',
created_at int not null default 0 comment '新增時間',
updated_at int not null default 0 comment '修改時間'
)engine=innodb default charset = utf8 auto_increment = 1001 comment='學生表';
created_at int not null default 0 comment '新增時間',
updated_at int not null default 0 comment '修改時間'
)engine=innodb default charset = utf8 auto_increment = 1001 comment='學生表';
2017-08-12