php - What does double colon in laravel means -
example :
auth::guard($guard)->guest()
i dont double colon (::) notation means in laravel framework. http://php.net/manual/en/language.oop5.paamayim-nekudotayim.php learn stand scope resolution operator access static, constant , overridden properties or methods of class. laravel learn auth
means alias class facade need explanation of example above guard(parameter)->guest()
means.
i'm still new php , learning laravel framework back-end.
:: scope resolution operator
this called scope resolution operator? operator used refer scope of block or program context classes, objects, namespace , etc. reference identifier used operator access or reproduce code inside scope.
auth::guard($guard)->guest() : in line using guard() method of static class auth. use function of static class use :: scope resolution operator.
Comments
Post a Comment