Laravel 创建数据库

1.根目录输入

php artisan migrate

2.创建表

php artisan migrate:make create_authors_table --table authors --create

输入上述代码后

app>database>migrations>会出现对应的文件,编辑完成后

输入

php artisan migrate

完成表的创建

posted @ 2015-10-13 22:45  hikarusun  阅读(820)  评论(0编辑  收藏  举报