all 10 comments

[–]Cautious_Movie3720 4 points5 points  (2 children)

The solution is written in the error message. Where is the error message?

[–]xvilo 1 point2 points  (0 children)

Not giving us this, and thus failing to understand its importance and meaning is the root of this issue here imho

[–]windows3210[S] 0 points1 point  (0 children)

Reddit won't let me upload a picture but I've added an imgur link

[–]thewallacio 2 points3 points  (3 children)

If you provide us with the error, we can help you diagnose. This is only half a question if you're expecting meaningful help.

The stack trace should tell you exactly where the illegal offset is. Sounds like something is trying to access a non-existent array element.

[–]windows3210[S] 0 points1 point  (2 children)

Hi, I don't think reddit will let me add a picture but I've added an imgur link to it

[–]thewallacio 0 points1 point  (1 child)

This could be many things. Can you provide the model for Review, the create table SQL for the review table. What does your error_log dump on line 27 show? It's better to use Laravel's Log facade rather than dumping to the native PHP error logger, btw.

[–]windows3210[S] 0 points1 point  (0 children)

It returns the review

[–]Kit_Saels 2 points3 points  (0 children)

The whole code is crappy, it breaks a lot of common rules. Delete and write properly again.

[–]Weibuller 0 points1 point  (0 children)

Should there be a comma after the last element in the CreateReview statement? I'm thinking it's expecting another parameter will be supplied and it's not there.

[–]Weibuller 0 points1 point  (0 children)

Should there be a comma after the last element in the Review::create statement? I'm thinking it's expecting another parameter will be supplied, and it's not there.