0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

laravel 確認事項 レビューしてもらう前に見直し用メモ!

Last updated at Posted at 2021-11-01

JIRAを書くとき

入力値がある場合はテストを怠らない
ファイルでテスト内容を書く

PRを出すとき

確認事項
・getメソッドのものはviewが必要なので、getはちゃんとリンクがひらけるかの確認
・リソースの関数名を参考にして関数名を決める
・コメントアウトして何の処理を書いたか書く

・openとcloseの位置はちゃんとなっているか

Formについて
・idはブラウザ側から送るもの
・Formで送れる値はinputタグに書いてあるものだけ

Formでidを送れる
→hidden input使う

{!! Form::hidden('article_id',$articles->id) !!}

php docの書き方

(例):

    /**
     * 記事詳細画面表示機能
     * @param Request $request
     * @param int $id
     * @return view 記事詳細ページ
     */

@parmが2個ある時は1個づつ書くと、見やすい

エラー編

MethodNotAllowedHttpException
→POSTとかGETがちゃんと設定できているか確認する

PR出した後

github上でよく確認すること

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?