Seederの使い方メモ
テーブルを作成したのは良いが、データが何も無い状態だと、何も試すことができません。 そこで、ダミーのレコードを用意する為にシーディングという機能を利用します。
続きを読むLaravelのcontrollerの使い方メモ
Laravelでcontrollerを利用するためのメモです。
続きを読むgit pullできなかったときのメモ
git pullをしようとしたら、↓のエラーがでました。
また同じことが起きたときの為にメモです。
error: Your local changes to the following files would be overwritten by checkout:hogehoge.rb Please commit your changes or stash them before you switch branches.
メッセージの通りにgit stash
したりしてみましたが解消しませんでした。
こちらの記事の方法で解消しました。
git 管理外のファイルをチェック
git ls-files -v | grep ^S
git管理に戻す。
git update-index --no-skip-worktree hogehoge.rb