Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix #466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Bug fix #466

wants to merge 1 commit into from

Conversation

SadeghPM
Copy link

When set disk on construct function we must return class instance.

When set disk on construct function we must return class instance.
@aronquiray
Copy link
Contributor

I think it's not necessary to add a return statement in the __construct method in Laravel. The __construct method is automatically called when an object is created from a class, and its purpose is to initialize the properties of the object. It's common to set up dependencies or perform other setup tasks in the __construct method, but the method does not require a return statement because its purpose is to modify the object itself, rather than returning a value.

@SadeghPM
Copy link
Author

SadeghPM commented Feb 1, 2023

@aronquiray
ok but think what is the purpose of $disk in construct?
if we don't return class instance, $disk is useless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants