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

Eloquent models have a magic static call built in to handle dynamic static calls to model methods, so you can still call CompanyModel::doSomething() and the __callStatic() method within Eloquent will route your request correctly - this means its not necessary to define your model methods as static.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

chrobaks chrobaks Joined 1 Jun 2015

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.