Support the ongoing development of Laravel.io →
nikhilnikki

nikhilnikki

Joined 14 Feb 2014

Statistics

Threads 5
Replies 6
Solutions 0
Articles 0
posted 11 years ago

Trying to get property of non-object

If i'm copy the url of the home page and paste it into another browser it should go to the login pag...

0 Likes
3 Replies
Solved

Non-static method Confirm::posts() should not be called statically, assuming $this from incompatible context

These are my models User public function posts() { return $this->hasMany('Post'); } P...

0 Likes
5 Replies
Solved

Call to undefined method error while getting the data

these are my relations.. User model public function posts() { return $this->hasMany('Post'...

0 Likes
1 Replies

problem in accessing value from parentmost table.

I've four tables.User,Post,Reply and Confirm tables. And the relation is User has many posts posts...

0 Likes
2 Replies
posted 11 years ago

Accessing data from table using relationship

I've users,posts,comments table. Here are my models user model public function posts() { return $...

0 Likes
6 Replies
Solved
replied 11 years ago

Accessing data from table using relationship

thanks for the replies.. Yes... I used post_id field in the posts table and a comment_id field in th...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.