![Laravelのログファイル分割 - ハマログ](https://cdn-ak-scissors.b.st-hatena.com/image/square/2622fd1e0c788e29f7c3fa2eb16b51327d4b021a/height=288;version=1;width=512/https%3A%2F%2Fblog.e2info.co.jp%2Fwp-content%2Fuploads%2F2016%2F10%2F20161005-165912.png)
イントロダクションIntroduction マイグレーションとはデータベースのバージョンコントロールのような機能です。アプリケーションデータベースのスキーマの更新をチームで簡単に共有できるようにしてくれます。マイグレーションは基本的にLaravelのスキーマビルダとペアで使い、アプリケーションのデータベーススキーマの作成を楽にしてくれます。もしあなたが今まで、チームメイトに彼らのローカルデータベーススキーマに手作業でカラムを追加するよう依頼したことがあるなら、データベースマイグレーションは、そうした問題を解決してくれます。Migrations are like version control for your database, allowing your team to easily modify and share the application's database schema.
EloquentはModelクラス使ってる https://github.com/laravel/framework/blob/5.1/src/Illuminate/Database/Eloquent/Model.php テーブル名取得 その中を追うと、テーブル名の取得にはgetTable()を使ってることが分かる。 <?php abstract class Model { // 省略 /** * Get the table associated with the model. * * @return string */ public function getTable() { if (isset($this->table)) { return $this->table; } return str_replace('\\', '', Str::snake(Str::plural(class
イントロダクションIntroduction Laravelでは、クロス・サイト・リクエスト・フォージェリ(CSRF)からアプリケーションを簡単に守れます。クロス・サイト・リクエスト・フォージェリは悪意のあるエクスプロイトの一種であり、信頼できるユーザーになり代わり、認められていないコマンドを実行します。Laravel makes it easy to protect your application from cross-site request forgery[https://en.wikipedia.org/wiki/Cross-site_request_forgery] (CSRF) attacks. Cross-site request forgeries are a type of malicious exploit whereby unauthorized commands a
イントロダクションIntroduction 新しいLaravelプロジェクトを開始する時点で、エラーと例外の処理は既に設定済みです。App\Exceptions\Handlerクラスはアプリケーションで発生する全例外をログし、ユーザーへ表示するためのクラスです。このドキュメントでは、このクラスの詳細を確認していきます。When you start a new Laravel project, error and exception handling is already configured for you. The App\Exceptions\Handler class is where all exceptions triggered by your application are logged and then rendered back to the user. We'll di
phpdotenvとは phpdotenv(PHP dotenv)は、.envファイルに環境変数を記述することで、getenv()、$_ENV、$_SERVERからの環境変数呼び出しを.envファイルから取得することができる Rubyのdotenvライブラリがベース 特徴 PHPで使う環境変数をDocumentRoot配下でまとめて管理することができる Twelve Factor App::設定 「Twelve-Factor Appは設定を 環境変数 に格納する」 ApacheやnginxなどVirtualHost内で環境変数を設定する必要がなくなる 設定済みの環境変数を上書きするかどうか制御が可能(デフォルトは上書き不可) インストール方法 composerでインストールする
Less than 2 weeks ago, the PHP community roundly accepted PSR-7, giving PHP a common set of HTTP Message Interfaces. This has huge potential for interoperability and standardization across all of PHP. This is especially true for middleware: functions that hook into the request-response process. In the future, a middleware written around these new interfaces could be used in any framework. Introduc
1 Host header value prior to operation. 2 Host component of the URI composed in the request prior to the operation. 3 Host component of the URI being injected via withUri(). 1.3 Streams¶ HTTP messages consist of a start-line, headers, and a body. The body of an HTTP message can be very small or extremely large. Attempting to represent the body of a message as a string can easily consume more memor
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く