Support the ongoing development of Laravel.io →
posted 8 years ago
Architecture
Last updated 2 years ago.
0

Anyone ?

0
Solution

Well, if I add new User() at te beginning of the method it works : I can access the static property. That's strange because I thought static properties could be accessed without needing to crate an instance of the class...

0

is the static property public ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

maxime maxime Joined 11 Jan 2016

Moderators

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.

© 2024 Laravel.io - All rights reserved.