my question pretty straight forward. how can find default methods in laravel 5. example if im trying find default postlogin method
auth\authcontroller@postlogin what try : go authcontroller -> postlogin cant find it. best way find default methods?
note: know @
\illuminate\foundation\auth\authenticatesusers by googling, how should find based on code?
there 2 options method can come from when it's not in actual class file.
1. inheritance
i hope familiar basic concept of inheritance. classes can extend other classes. when see this:
class foo extends bar // ^^^^^^^^^^^ go 1 level , check out bar class. maybe you'll find method there.
2. traits
traits collection of methods (and properties). class can include them, case authcontroller
class authcontroller extends controller { use authenticatesandregistersusers, throttleslogins; authenticatesandregistersusers , throttleslogins both traits. if take @ authenticatesandregistersusers can see includes 2 other traits:
trait authenticatesandregistersusers { use authenticatesusers, registersusers { and there have it. authenticatesusers.
it helps lot if have right tools this. lots ides or editors (sometimes plugin needed) allow click on class names jump actual file.
another way search method name looking in files. avoid including usages of method search this: function postlogin
Comments
Post a Comment