Support the ongoing development of Laravel.io →
visualight

visualight

Joined 30 Dec 2014

Statistics

Threads 8
Replies 2
Solutions 0
Articles 0
posted 10 years ago

Eloquent model function : how know if user has payed before accessing items ?

Hello, I an have difficulty to understand how i cans check if a user has payed before accessing an i...

0 Likes
1 Replies
posted 10 years ago

Problem with eloquent (transform mysql query)

I wish to build a new website based on my old website. To do that i use Laravel 4 (I cannot use lara...

0 Likes
1 Replies

Relationship understand problem

Hello, i try to get all datas (relation inlcude) from a user table but i cannot get somme values. cl...

0 Likes
1 Replies
replied 7 years ago

Function to check if user has data in multiples tables

Hi, I found a solution but is not very elegant : public function hasdata(){ $pages = $this->pages...

0 Likes
replied 11 years ago

Relationship understand problem

Hello, the only way in found is to make like this : $users = User::select('users.firstname', 'users....

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.