Skip to content

Laravel Starter Kit Bundled with My Favorite Stacks

Notifications You must be signed in to change notification settings

KentarouTakeda/laravel

 
 

Repository files navigation

Laravel カスタマイズ

追加パッケージ

  • ./artisan dump-server を実行すると dump() の結果が画面ではなくコンソールへ出力されます。
  • FacadeやEloquent動的プロパティのコード補完に対応しています。
  • composer dump-autoload / composer install を実行する度に最新のコード補完情報が生成されます。
  • ./artisan migrate を実行する度にEloquentモデルの補完情報が自動的に生成されます。
  • APP_DEBUGtrue に設定されている場合、画面の下にデバッグバーが表示されます。
  • vendor/bin/phpstan analyze で静的解析が行われます。 phpstan の Laravel 非対応による既知のエラーは予め除外してあります。
  • vendor/bin/phpunit-watcher watch でコード変更を監視し自動テストを実行できます。
    • vendor/bin/phpunit-watcher watch tests/FILENAME で特定テストのみの監視も行えます。
  • Laravel のディレクトリ構成に応じて監視ディレクトリをカスタマイズ済です。
  • vendor/bin/php-cs-fixer fix でコード整形が行われます。
    • vendor/bin/php-cs-fixer fix app/Http 等で特定ディレクトリ配下のみの整形も行えます。
  • ./artisan test -p で並列化テストを行えます。テストが高速化します。
  • composer coverage でカバレッジレポートを生成できます。
    • 結果は public/docs/coverage/ へ出力されます。
  • 実行には PCOV が必要です。

husky / run-if-changed によるGitフック

commit / checkout / merge 等の操作が行われた場合git-hookにより自動的に次の動作が行われます。

  • 最適化情報のクリア ./artisan optimize:clear
  • package-lock.json が変更された場合 npm install
  • composer.lock が変更された場合 composer install

何れのツールも開発用途のため 本番環境へのインストールは非推奨 です。
composer install --no-dev / npm install --prod を利用してください。

direnv によるローカル(非Docker)環境での開発

  • cp .envrc.example .envrc で設定される環境変数でローカル環境のphpのみで動作します。

オリジナルからの変更点

  • public ストレージの公開URIが storage から public へ変更されています。

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Laravel Starter Kit Bundled with My Favorite Stacks

Topics

Resources

Stars

Watchers

Forks

Languages

  • PHP 63.2%
  • Blade 36.5%
  • JavaScript 0.3%