(::) meaning in laravel

Simply, It is know as Scope resolution operator denoted as (::).

Basically it is token which allow access to static, constant and overridden properties of method of a class.

Example- in laravel we can call model like this.

App\Models\Assignment::all(); (Laravel 8)



5 thoughts on “(::) meaning in laravel”

  1. Heya i am for the primary time here. I found this board and I find It truly helpful & it helped me out much. I am hoping to provide something again and aid others such as you aided me.| Korie Avigdor Bat

  2. Ahaa, its nice conversation concerning this paragraph at this place at this weblog, I have read all that, so now me also commenting at this place.| Shirline Fergus Esma

  3. Hello my friend! I want to say that this post is amazing, nice written and come with approximately all vital infos. I would like to look extra posts like this .| Dre Sanford Marguerie

Leave a Reply

Your email address will not be published. Required fields are marked *