your-songs-laravel's People
your-songs-laravel's Issues
ユーザー情報を返すAPI
曲へのコメント機能の作成
曲の追加API/更新API
曲の情報を返すAPIを作成する
曲がそのユーザー(ログインユーザー)によりお気に入り登録されているか否かという真偽値をJSONに追加する。
ユーザー登録機能(SPA)
Nuxt.jsで記述したフロントからユーザー登録できるよう、APIを作成
曲をお気に入りに登録/お気に入りから外すAPIを作成
ユーザー情報更新API
issue#73,#74により曲の追加や更新時にエラーが生じていたため修正
曲へのコメントの数を返すAPI作成
曲の画像アップロード機能の作成
曲を削除するAPI
全ての曲を返すAPI作成
ユーザーの画像(アイコン)のアップロード機能の作成
S3にファイルを保存する機能の作成
$response->assertRedirect(route("home"));が上手く機能しません。
概要
-
RegisterTestにおいて、「$response->assertRedirect(route("home"));」の記述が誤っているのか、テスト実行時にエラーが発生してしまいます。
-
LoginTestにおいて、「RuntimeException: Session store not set on request.」とエラーが出ます。
エラー詳細
- RegisterTestのtest_request_should_pass_when_data_is_providedにおいて、
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'http://localhost/home'
+'http://localhost'
と表示されます。
これは、userのidが渡されていないために起こっているエラーでしょうか?
またその場合、ユーザー登録直後の記述において、どのような記述でuserのidを渡すことができるのでしょうか?
- LoginTestのtest_valid_user_can_loginでは、$this->withoutExceptionHandling();でエラー内容を調べると
// ログイン実行
$response = $this->post(route("login.post"), [
"email" => $user->email,
"password" => "test1111"
]);
のパスワードの行に関して、
RuntimeException: Session store not set on request.
と表示されました。
「web」ミドルウェアをrouteに設定したのですが、エラーは解消されませんでした。
こちらは、そもそもテストの記述の仕方自体に問題があるのか、それともミドルウェアの記述やLaravelのバージョン等別の箇所に問題があるのか、いずれの可能性が高いかアドバイスいただけますでしょうか?
ユーザー一覧を返すAPI
曲の詳細を返すAPI,一覧を返すAPIで返すJSONに、曲をお気に入りに登録したユーザー一覧を含める
ユーザーのフォロー、アンフォロー機能の作成
不要なルーティングを削除
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.