Eloquent Scopes & Mass Assignment
Up next, let's clean up our controller by extracting the logic for fetching an active/inactive customer into a scope. Then, let's use validated data to create our new customers using the create() method.
TOPICS
Database
Eloquent
Scopes