반응형
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 | 31 |
Tags
- 당사자표시정정신청서
- Eclipse
- auth
- Blade
- Tutorial
- 홈택스
- 코로나
- vue
- 개인사업자
- 체당금
- 코로나19
- 이더리움
- javascript
- 소액임금체불
- Sentinel
- as후기
- Python
- Bootstrap
- 인민공원
- 사업자계좌
- 보정명령
- elasticSearch
- cartalyst
- reactnative
- php
- Java
- 전자소송
- Laravel
- win32
- blockchain
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