摘要:
Laravel中的migrations文件存放的是数据库表文件等结构,可以说是一个跟git差不多的,可以说像是数据库的版本控制器,所以可以叫做迁移。因为它可以很快速的很容易地构建应用的数据库表结构。 使用 Artisan 命令make:migration来创建一个新的迁移: 就会在database/ 阅读全文
posted @ 2017-03-07 19:03
洪先森
阅读(2806)
评论(0)
推荐(0)
摘要:
create table ta(id int not null) create table tb(id int , aid int) insert into ta values(1) insert into ta values(2) insert into tb values(1 , 1) inse 阅读全文
posted @ 2017-03-07 15:51
洪先森
阅读(955)
评论(0)
推荐(0)
摘要:
laravel的资源控制器 一、创建资源控制器 在命令行上,创建一个新的资源控制器 1 php artisan make:controller TestController --resource 然后在你项目App\Http\Controllers下会自动生成这个TestController.php 阅读全文
posted @ 2017-03-07 09:39
洪先森
阅读(1647)
评论(0)
推荐(0)
浙公网安备 33010602011771号