error - dich1/todo GitHub Wiki
エラー一覧
https://blog.capilano-fw.com/?p=600 http://w.builwing.info/2015/06/05/laravel5%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E5%AF%BE%E7%AD%96/
htmlspecialchars() expects parameter 1 to be string, array given
https://qiita.com/kuhblume/items/37aa2981de6d36d4d3d7
does not exist on this collection instance.
リレーションはhasManyで配列を展開するべきなのに、そのままforeachでなくそのまま展開しようとした際などに発生する
Scaffold起因のherokuデプロイ時のエラー
remote: Generating optimized autoload files
remote: > Illuminate\Foundation\ComposerScripts::postAutoloadDump
remote: > @php artisan package:discover --ansi
remote:
remote: In ProviderRepository.php line 208:
remote:
remote: Class 'Laralib\L5scaffold\GeneratorsServiceProvider' not found
remote:
remote:
remote: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
remote: ! WARNING: There was a class not found error in your code
remote:
remote: ! ERROR: Dependency installation failed!
remote: !
remote: ! The 'composer install' process failed with an error. The cause
remote: ! may be the download or installation of packages, or a pre- or
remote: ! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
remote: ! in your 'composer.json'.
remote: !
remote: ! Typical error cases are out-of-date or missing parts of code,
remote: ! timeouts when making external connections, or memory limits.
remote: !
remote: ! Check the above error output closely to determine the cause of
remote: ! the problem, ensure the code you're pushing is functioning
remote: ! properly, and that all local changes are committed correctly.
remote: !
remote: ! For more information on builds for PHP on Heroku, refer to
remote: ! https://devcenter.heroku.com/articles/php-support
remote: !
remote: ! REMINDER: the following warnings were emitted during the build;
remote: ! check the details above, as they may be related to this error:
remote: ! - There was a class not found error in your code
remote:
remote: ! Push rejected, failed to compile PHP app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to todo-54321.
remote:
To https://git.heroku.com/todo-54321.git
! [remote rejected] 8d0d3a5981ef877859335e4caf992c8b1678da56 -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/todo-54321.git'
https://teratail.com/questions/152878