使用者 : url
開發者 : 參數
只要使用 name() 方法,來自動調整 參數修改,必須要一個個的手動調
新增 posts 資料表
建立好 posts 資料表的內容
artisan migrate:rollback
畫面 :
Post Model 強制指定在 posts 的資料表
檔案位置 :
內容 :
小提醒 :
跟 Migration 的差別
up()
down()
Post Model 來新增 posts 資料表的內容
去呼叫其他的Seeder 檔
posts 資料表新增資料
做多筆資料
使用 foreach()
再執行 artisan db:seed
畫面 :
畫面 :
把 20200717-templates.zip 的資料夾內容複製到現有的專案
畫面 :
$request -> except()
回傳一個陣列
加入至資料表的內容?
畫面 :
跳轉至文章列面
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing