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