behnampmdg3's avatar

Where is a beginners tutorial for Scopes?

Hi;

In this one, Jeff starts talking about scopes with no intro it's a bit confusing.

https://laracasts.com/series/laravel-from-scratch-2017/episodes/20?autoplay=true

Can someone please link me to beginners tutorial for Scopes?

Thanks

0 likes
3 replies
D9705996's avatar

The series you linked is the beginners tutorial for laravel here. Have you watched, rewatched and tried implementing the full series yourself?

Have a read of the official documentation ax it has good examples that might give context to the lesson

https://laravel.com/docs/5.7/eloquent#query-scopes

behnampmdg3's avatar

Hey @D9705996

No, I am a bit confused because he says

we briefly spoke about scopes in the previous episode

But it's not in the serious so far.

For example where to store "AgeScope"?

Why even use them? To a beginner, it doesn't make sense why even use scopes.

Or how come Jeff doesn't return from the model?

That's why I asked, I haven't missed any of these so far but not sure what he's referring to.

There has to be a video about scopes before this.

Scopes.

Please or to participate in this conversation.