member는 laravel에 있는 user를 그냥 사용합니다.
php artisan make:model group -m
php artisan make:model board -m
php artisan make:model post -m
php artisan make:model comment -m
app/group.php app/board.php app/post.php 와
database/migrations/날짜_create_groups_table.php, create_boards_table.php, create_posts_table.php, create_comments_table.php
가 만들어진것을 확인 할수 있습니다.
왼쪽에서 creat_users_table.php를 클릭해서 (vscode 기준입니다.)
$table->string('name'); 을 alt+shift+down arrow로 라인을 카피한후에
name을 nickname으로 변경합니다. 각 테이블에 대한 Field는 여기 참조
$table->increments('id');
$table->string('name');
$table->string('nickname');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
groups
$table->increments('id');
$table->string('name');
$table->tinyinteger('order')
$table->timestamps();
boards
$table->increments('id');
$table->integer('group_id')->unsigned();
$table->string('name');
$table->string('mobile_name');
$table->tinyinteger('order');
$table->timestamps();
posts
$table->increments('id');
$table->integer('member_id')->unsigned();
$table->integer('board_id')->unsigned();
$table->string('title');
$table->mediumtext('content');
$table->string('username');
$table->string('nickname');
$table->timestamps();
comments
$table->increments('id');
$table->integer('member_id')->unsigned();
$table->integer('board_id')->unsigned();
$table->integer('post_id')->unsigned();
$table->mediumtext('content');
$table->string('username');
$table->string('nickname');
$table->timestamps();
게시글 목록
| 번호 | 제목 |
|---|---|
| 258 | |
| 256 | |
| 247 | |
| 246 | |
| 239 |
라라벨
Clockwork
6
|
| 236 | |
| 235 | |
| 220 | |
| 219 |
기타
고도몰5 프레임워크?
|
| 213 | |
| 211 | |
| 206 | |
| 201 |
라라벨
라라벨 5.5
2
|
| 197 |
라라벨
Voten.co
2
|
| 193 |
코드이그나이터
씨아이보드의 초기 화면
4
|
| 190 | |
| 185 |
코드이그나이터
씨아이보드 설치해보기 - 로컬컴퓨터에..
4
|
| 181 | |
| 179 | |
| 177 | |
| 171 | |
| 170 | |
| 169 |
라라벨
패키지 - DB의 스냅샷
1
|
| 168 | |
| 167 | |
| 165 | |
| 164 | |
| 163 |
라라벨
Mailable에서의 마크다운
|
| 162 | |
| 161 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기