반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- reactnative
- Laravel
- javascript
- Python
- 코로나19
- 체당금
- Java
- 보정명령
- cartalyst
- win32
- 코로나
- as후기
- php
- 개인사업자
- Sentinel
- 인민공원
- elasticSearch
- Tutorial
- auth
- 전자소송
- 홈택스
- Blade
- 사업자계좌
- blockchain
- 당사자표시정정신청서
- Bootstrap
- vue
- 소액임금체불
- 이더리움
- Eclipse
Archives
- Today
- Total
그냥 사는 이야기
Laravel 5.3 Tutorial for Beginner - Social Network (CRUD) Migrations 본문
Development/Web
Laravel 5.3 Tutorial for Beginner - Social Network (CRUD) Migrations
없다캐라 2020. 1. 19. 04:41반응형
Posts
php artisan make:migration create_posts_table --create=posts
database/migrations/create_posts_table.php
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id'); // added
$table->text('content'); // added
$table->timestamps();
});
}
Migration
php artisan migrate'Development > Web' 카테고리의 다른 글
| Laravel 5.3 Sentinel - Registration (0) | 2020.01.20 |
|---|---|
| Laravel 5.3 Sentinel - Setting Up (0) | 2020.01.20 |
| Laravel 5.3 Tutorial for Beginner - Profile Design and Date (0) | 2020.01.19 |
| Laravel 5.3 Tutorial for Beginner - Profile (0) | 2020.01.19 |
| Laravel 5.3 Tutorial for Beginner - Social Network Login with Username (0) | 2020.01.19 |
Comments