Explorar o código

make:controller add <model name>

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
ba61ff6a4d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      documents/laravel_quick_start.md

+ 4 - 1
documents/laravel_quick_start.md

@@ -17,9 +17,12 @@ php artisan migrate
 
 6. 建立控制器
 
+php artisan make:controller --api --model=<model name>  <model name>Controller
+
+如: model = Lesson
 php artisan make:controller --api --model=Lesson  LessonController
 
-7. 数据库查询
+1. 数据库查询
 
         $table = new Tag();
         $table = $table->where('name','aaa');