0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

laravel11でjetstream+teamsインストール後エラー解決方法

Last updated at Posted at 2024-09-28

絶対忘れる自信があるし同じ状況の人いそうだから記載

laravel11でjetstream+teamsインストール後エラー

1. HTTP 500 Internal Server Error

ホントはもっと長いエラーだけど、このエラーだけでも沢山解決策が出るタイプ

Symfony Exception
 Symfony Docs
ErrorException
HTTP 500 Internal Server Error
file_put_contents(/var/www/storage/framework/views/187f828346b000af.php): Failed to open stream: Permission denied

解決方法

ref:https://stackoverflow.com/questions/38888568/laravel-file-put-contents-failed-to-open-stream-permission-denied-for-sessio

chmod -R gu+w storage

chmod -R guo+w storage

php artisan cache:clear

2. SQLテーブル無いエラー

SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "teams" does not exist LINE 1: insert into "teams" ("user_id", "name", "personal_team", "up... ^ (Connection: pgsql, SQL: insert into "teams" ("user_id", "name", "personal_team", "updated_at", "created_at") values (34, test's Team, 1, 2024-09-28 11:24:51, 2024-09-28 11:24:51) returning "id")

解決方法

  • DB接続しているが、teams系テーブルが不足している
  • php artisan migrate しても OK なのに不足している
  • php artisan migrateを再度行うしか無いのでrefreshコマンドを実行すると解消
php artisan migrate:refresh

3.エラーじゃないんだけどLaravel11からServiceProviderとか追加したら、以前はconfig/app.phpに追加していたなんちゃらServiceProvider::classの追記を、bootstrap/providoers.phpにする必要があるようです。そのファイル探すぐらいならphp artisanコマンドを使ったほうが確実です。

php artisan make:provider なんちゃらServiceProvider
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?