Home
Add Document
Sign In
Register
laptrinhlaravel_bai10.pdf
Home
laptrinhlaravel_bai10.pdf
Full description...
Author:
Ho Khoa
35 downloads
122 Views
131KB Size
Report
DOWNLOAD .PDF
Recommend Documents
No documents
BÀI 10 : MIGRATION I Tạo migrations Cách 1 :
php artisan make:migration make:migration create_abc_table public function up() { // Code } public function down() { // Code }
Cách 2 :
php artisan make:migration create_abc_table --table=abc public function up() { Schema::table('abc', function(Blueprint $table) { // Code }); } public function down() { Schema::table('abc', function(Blueprint $table) { // Code });
}
Cách 3 :
php artisan make:migration create_abc_table --create=abc public function up() { Schema::table('abc', function(Blueprint $table) { $table->increments('id'); $table->timestamps(); }); } public function down() { Schema::table('abc', function(Blueprint $table) { Schema::drop('abc'); });
}
II Run Migrations
php artisan migrate
III Rolling Back Migrations (Quay l ại hành động vừa thực hiện)
php artisan migrate:rollback
IV Refresh Migrations
php artisan migrate:refresh
V Reset Migrations
php artisan migrate:reset
×
Report "laptrinhlaravel_bai10.pdf"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close