dinero
dinero copied to clipboard
Issue with artisan
I am not sure if i am stupid enough to work with this but I cannot get what I am doing wrong
When I am trying to run whole thing i get always this error: C:\dinero>php artisan migrate --seed PHP Warning: require(C:\dinero/vendor/autoload.php): Failed to open stream: No such file or directory in C:\dinero\artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required 'C:\dinero/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\dinero\artisan:18 Stack trace: #0 {main} thrown in C:\dinero\artisan on line 18
I have tried to switch php version to 8.1 didn't work, 8.3 didn't work, composer is installed successfully and php works fine, but this isn't
Thanks!
Hi, @LauriSalonen, Good Day !!!
The issued you have faced is not related to PHP versioning. Instead, it indicates that the required dependencies were not installed using composer install.
As stated in the readme file, it's essential to run composer install after cloning the repository to ensure that all dependencies are properly installed.
Also don't forget to copy .env file from .env.example
I trust this clarifies the matter for you. If you have any further questions or concerns, please don't hesitate to reach out.
Thanks
Hello!
As stated in the readme file, it's essential to run composer install after cloning the repository to ensure that all dependencies are properly installed.
I used composer installer that can be found from composer website. I installed to my PHP directory of course. Then I even tried to install with CMD straight to dinero folder. I have reinstalled composer and PHP around 5 times to make sure I didn't miss anything. Still i got same error "C:\dinero>php artisan migrate --seed PHP Warning: require(C:\dinero/vendor/autoload.php): Failed to open stream: No such file or directory in C:\dinero\artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required 'C:\dinero/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\dinero\artisan:18 Stack trace: #0 {main} thrown in C:\dinero\artisan on line 18"
Also don't forget to copy .env file from .env.example I have made it, and I should have done everything right, still I don't get it why this won't work. I have DB open, I have made database, also I have tried in different directories still nothing.
Just to ask did I do everything correctly this is how I installed everything:
- Installed PHP to C:\PHP, added it to system environment
- Installed dinero with git clone
- Installed composer from their site with exe setup
- Installed composer via command line into dinero directory (also tried without this step)
- Made env file correctly
- Did database & opened server
- Then I used php artisan migrate --seed in dinero directory
- Got that error
Do you have any idea what to try next? Have I missed something?
Thanks a lot! :)
Hi @LauriSalonen I am confused about your composer installation. Install composer in your machine using .exe file & install composer with dependency install in project directory are two different thing.
did you do this step before php artisan migrate --seed?
C:\dinero>composer install C:\dinero>php artisan migrate --seed
Hi @shojibflamon Sorry for confusion, I meant I have installed composer with exe from their site
Also I did run composer install in cmd at dinero directory
that run me this error aswell:
What should I try next? Thanks for your help really much! :)
hi @LauriSalonen, You have to install ext-int & ext-fileinfo extension in php as seen in problem or you can run application without required extensions.
Read all the problem you have found.
Thanks.