2
1

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 5 years have passed since last update.

Laravel個人的メモ

Last updated at Posted at 2015-09-13

◆発行されたクエリの確認

DB::getQueryLog();

これを、var_dump()なりLog::info()なりで出力して確認

◆ビュー(bladeファイル)内で、コメント
※画面上見づらいがハイフン2つ

{{-- コメント --}}

◆(コントローラから渡された変数でなく)ビュー(bladeファイル)内だけで、変数をセットしたい場合の記述
※画面上見づらいがハイフン2つ

{{-- */ ●●● /* --}}

{{-- */ $foo = "var"; /* --}}

実質

と書くのと同様

◆バッチ
start/artisan.phpにバッチ名を登録

commands/配下にバッチ配置し、fireファンクション内に、処理を記述。

コマンドラインからの起動

php artisan batch:hogehogeBatch

◆ビルトインサーバー起動

php artisan serve --host x.x.x.x --port xxxx
2
1
1

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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?