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

Fix the issue of none existing directory #224

Closed
wants to merge 1 commit into from
Closed

Fix the issue of none existing directory #224

wants to merge 1 commit into from

Conversation

mahmoudmohamedramadan
Copy link

If we have the js directory in the resources the bootstrap file will be created successfully BUT what if the directory does not exist? The copy(C:\...\resources\js/bootstrap.js): Failed to open stream: No such file or directory exception will be triggered as happened WITH me So, this condition solve this issue, by checking if the directory was not existed then create it for me.

If we have the `js` directory in the `resources` the `bootstrap` file will be created successfully BUT what if the directory does not exist? The `copy(C:\...\resources\js/bootstrap.js): Failed to open stream: No such file or directory` exception will be triggered as happened WITH me So, this condition solve this issue, by checking if the directory was not existed then create it for me.
@taylorotwell
Copy link
Member

This directory is present by default in new Laravel applications, which is where laravel/ui is intended to be used.

@mahmoudmohamedramadan
Copy link
Author

@taylorotwell I know the directory is included by default in Laravel BUT what if the developer remove that directory by mistake, I think also that is IMPORTANT to check the existing state of the directory before copying the file inside it.

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