Hi everyone! Yes, this is a re-upload, since a lot of people encountered specific errors in the last video. So I am trying to redeem it, by uploading a "better" tutorial hehe. 🙂 Don't worry! The next tutorial will be up in a bit, within the next 5min or so!
I appreciate the effort you put into updating that! I first found your videos during the pandemic, and now am getting into learning full stack with WAMP. I'm really happy you're still putting out stuff!
Its not fine that the setup process doesn't show because it automatically sets up as sqllite when I change the env file to say mysql I get error messages on my webpage. Thanks
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testwebsite.sessions' doesn't exist (Connection: mysql, SQL: select * from `sessions` where `id` = WP6eJLmfXT5RgpjxxxoSReZ6UEinaCKoIhzOMaKm limit 1)
seriuosly you are the best professor ever, I literally have been watching thousands of tutorial from other people, and as a total beginner I was not understanding anything until I found you, now everything makes a sense. thank you, god bless you.
Really thank you for the video. If you guys faced any issue like this "Composer could not find the config file" (This will show in the terminal), try to delete the environment variable that created to the composer, after that project works.
Hello Daniel, In this tutorial (at 19:17 minutes) you are referring to the Dashboard folder. But in another tutorial, in which we installed Xampp, I remember that you recommended to delete that folder. So I had to re-install Xampp to get the Dashboard folder back. No big deal, just letting you know. Bye, Ruud (Netherlands)
Error: 'composer' is not recognized as an internal or external command What helped for me: add this systemvariable: Path C:\composer Hope this is helpful. Thank you Dani for your videos. I managed to install Laravel!!
First off, thanks Dani! Your PHP class tutorial really helped me out and this one's been helping me out as well. To hopefully save someone else a possible headache... Here's an error and the solution that worked for me. While creating the project in the terminal, right before it asked about the database it would give me the error: Composer could not find the config file: C:\ProgramData\ComposerSetup\bin The usual help sites all said remove the Composer variable (same one set up earlier in this video). No luck for me... Found the issue in the system variable PATH. It has a bunch of various paths, somehow the path for Composer was added. Once I removed the Composer section from PATH, the Laravel set up steps worked fine.
I typed the composer.phar at the end of C:\ProgramData\ComposerSetup\bin that seemed to fix it somehow. But looking at the other comments here there happens to many ways of fixing it, like selecting composer.bat or setting the path in PHP
Great tutorial! If you run into issues with the DB and it doesn't install for whatever reason you can fix the issue and type "php artisan migrate" from the project folder dir to install it.
If you are getting In JsonFile.php line 381: "c:\ProgramData\ComposerSetup\bin\composer.bat" does not contain valid JSON. Parse error on line 1: ..., I managed to rectified the error by completely deleting the Composer path in Edit systems variable. I have no idea why it works but it worked. Basically, do no add a path Environment variables for composer.
@BushraAlhusaini-c5l Hello Bushra! I'm happy that I was helpful to you and others. Now, I would like to raise the alarm on a potential issue you might face if you use XAMPP and Laravel. If you are developing a web application without using any laravel and concurrently you are developing a laravel based web app (both using XAMPP), you might run in an error that will prevent you from interacting with your database. Your MySQL server will stop running. If this happens, you unfortunately have to delete XAMPP entirely. Please watch a youtube video first on how to delete XAMPP properly first. Then after deleting your database, create the same old database. This partially worked for me and if you want to know me (since I wrote a lot), let me know.
thanks dani this video realy helped me out today , and for teaching me php and oop, wishing you all the best in your new job, sending lots of love from Kenya
really really thanks for your amazing video i understand how to creat laravel project and work with and if you keep going to creat full course i'll be really thankful 😃
FYI-XAMPP now has several files in the dashboard, in fact when you start running xampp and start the services the dashboard is what loads up (19:31), recommend backing it up first
Hi. first of all id love to thank you for everything youve done. mastered the basics of html, css, php from you. currently learning laravel but sadly cant learn all of it from you since the course isnt finished and im in a rush. Anyway, noticed a problem from your course. Creating an environmental variable for composer gave me problems later on when i tried to create a new laravel project. i had to remove the composer variable again for it to work properly
Differently from installing various NPM JS packages with a plethora of security warnings, It's so satisfying to run "composer require laravel/installer:*" and have "No security vulnerabilities found"...I love the lack of brittleness...btw - that is a work-around any errors received when employing "composer global require laravel/installer"...
Great video it was easy to follow but when you began creating a project in Laravel, this just kept popping up "Composer could not find the config file: C:\ProgramData\ComposerSetup\bin" . So do you have a way of fixing this?
my first answer contained a link to a video showing a solution to this problem, so it hasn't been posted yet. The solution is to open VS Code file - preferences - settings - User - Extensions - PHP - "Edit in settings.json" and add the path to "php.validate.executablePath": "" like so: "php.validate.executablePath": "C:/xampp/php/php.exe"
nice, man I need git too to be installed, I made it work!, make sure to type the directory of the project folder in terminal for artisan to work sheesh took me a long time to realize
During the installation my terminal didn't really asked me for a database so to work around it. If you don't have the env file yet you need to get it not the example one and then edit the database input then run the artisan migrate
thanks yo! a few steps there. question: I started locally with wp, but wondering if i'd have any issues having laravel installed as well. LInux Ubuntu 22.04 keep em coming.
Using windows 11. The path to php in xampp was already set. when I added Composer path to the system variables I got that it was pointing to a directory. I removed the path in system variables for composer only then checked in cmd again for the version and all the information was there.
gettting this error "The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable sh ould point to a composer.json or be left unset." on cmd when running command on cmd
After running laravel inside the terminal in the editor(I am using Visual studio 2019) the terminal never asks me to select a database. It does say that it cant find composer however I did set a path for it like you showed. Anybody know why this is? when I open the Public folder in localhost it displays a screen with the tekst ""500 | SERVER ERROR"
I get the same error - if I however delete the composer path in environmental variables, I get the option to select a database. BUT the database in phpMyAdmin doesn't update with data like in the tutorial. I don't know if that's due to the (now) missing composer path. And I now get the "access denied for root@localhost" when i try to open the public folder. On stackoverflow they recommended deleting the composer path.
@@MichelleThykjr I was able to go around the problem by creating my own database(which I wanted to do anyway) and just migrate the database tables and columns via the CLI in my own editor. But if you want to create the DB while starting your parabel project directly it could well be that the composer path is the problem because I also set up a path for composer in the lower path list and the upper path list which the guy in the video didint realy say anything about. So my suggestion is to just create your own database, connect to it and migrate towards it.
After the testing framework question it generated a message "Composer could not find the config file C:\ProgramData\ComposerSetup\bin" which I already added this path to the system enviroment. To resolve the issue is to remove the system variable (Composer). With the help of bing Copilot!...
In order to make laravel run (after 'laravel new firstwebsite' getting through to laravel instead of errormessage) I had to add an environment variable for path: C:\Users\Username\AppData\Roaming\Composer\vendor\bin You can declare more than one path. Hope this helps someone.
In Factory.php line 231: The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be lef t unset. please assist with this error...
I get this error "The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset." in the comand window :(
Hey guys, I tried to selected all the three files in the folder one by one and none of the options worked getting the error - "C:\ProgramData\ComposerSetup\bin\composer.phar" does not contain valid JSON Parse error on line 1: #... ^ Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset. receiving this error message
Thank you so much for your videos. I just watched How to Easily Install Laravel but after typing mysql as the database my application will use, I don't get tables created in my Database. Instead I see this error in the terminal "Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (The specified module could not be found)..."
Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, skipping. The php.ini used by your command-line PHP is: C:\xampp\php\php.ini Now trying to download from source In GitDownloader.php line 82: git was not found in your PATH, skipping source download
awesome, in htdocs/default i have a lot of maps that where in there afther installing, can i remove all them like what you did before in the htdocs? i have to work on a module web dev and we have to do a laravel project, this tutorial is gonna help me out,
Shouldn't you select MariaDB instead of MySQL during installation? Both your XAMPP and phpMyAdmin say that you are using MariaDB as server type. Just as a side note. I'm very happy that you're now addressing Laravel and look forward to following your tutorial series! Thank you for that! 😊
If you say LARAWELL one more time I’m going to lose my mind 😂 jk Great video thank you for uploading these tutorial videos. You got a New Subscriber!! 🙌🏼
My current PHP version is only 7.4.28, the latest Laravel version requires 8.2^ version of PHP. Will it automatically install the version of Laravel suited for my current PHP version?
dude it said -The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable sh ould point to a composer.json or be left unset.
Hi Dani, I have a problem. In the VS code in the terminal after Laravel was installed I didn't get a prompt about which database your application uses (MySQL, MariaDB, and so on), i was asked do I wanted to connect to GitHub, i wrote no and pressed enter and the project was installed, but I don't have a connection to the database. when I press public i get error 500, also in the website folder I only have the env.example file and not .env. I tried to make some changes in that file to connect to the database but it did not work, I got a prompt that I must make a composer JSON file, and after all that I don't know what to do!
I had the same issue. According to some suggestions, I removed the Composer (c:/ProgramData/ComposerSetup/Bin) from Evnironmental Variables (as we did in this video in Advanced System Settings), restarted VSCode and then ran the "laravel new projectname". This should fix it. After you run this command, it should do the same process, and at the end, you get the database selection. I hope this helps :)
FYI-The new installs with XAMPP and Composer automatically do this for you if you run the install as administrator. 13:15 (Path Variables for the System)
Hello sir, sorry but my php.ini file doesn't have extension=zip in it, should I install the extension or what should I do? Is it okay to run the program without that extension?
@@rickbeniers667 we need to revert this step " COMPOSER environment variable defined and set to C:\ProgramData\ComposerSetup\bin" You should unset/delete that env var. after that it's it's working.
hi Dani, whenever i use the database of XAMPP which is mysql i can't turn it on. it automatically turning of with error in the XAMPP control panel . with error of port numbers something like that . but i think it's because of data corruption of data in the database . is there anyway to fixit . actually i resolved this problem multiple times but it keeps happening . i like using XAMPP so how to prevent this from happening
hello sir Dani, I was following your tutorial and once i tried the npm run dev it always result to Missing script "dev", can I ask how to solve this problem please
whenever i try to install something locally using composer like for example composer require laravel/breeze --dev command I get this error: In RequireCommand.php line 155:
file_put_contents(D:\ComposerSetup): Failed to open stream: Permission denied
However if I try to do a global command like composer global require laravel/breeze it works fine, sorry for being a noob but how can i fix this? My enviroment variables are set to the bin folder and everything.
Cant run apache says it shuts down unexpectedly every single time I run it. Have sat there for hours trying to troubleshoot using different ports, renaming ServerName to local host. I have tried so many forums and youtube solutions to this apache error and nothing works.
Okay I figured it out. When I installed Xampp i was deleting the PHP folder that comes with XAMPP and then putting in my version of PHP into XAMPP which messed somethings up within XAMPP I guess. To fix it I just reinstalled XAMPP and did not delete the base PHP folder than comes with XAMPP but I still put my, newer, version of PHP in the XAMPP folder since that path was added to my env variables for the PATH.
@@srikowshika3676 unfortunately i have the same problem. Even though i restarted vs code when i typed again "laravel new firstwebsite" it gave me this error message "laravel : The term 'laravel' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." If you found any solution please give me a feedback
After I select "Pest" and Enter I got this error Would you like to initialize a Git repository? (yes/no) [no]: > no
In JsonFile.php line 375: "C:\ProgramData\ComposerSetup\bin\composer.bat" does not contain valid JSON Parse error on line 1: @... ^ Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
Hi boss , the first time i opened the php.ini folder i didn't find the extension=zip line i added it myself , is it normal not to find it the first time like in the video??
I noticed that I couldn't find the "php.ini" file because the file name extension check button from the view menu was not activated. So it was just reading as "php" file only.
When I enter `laravel new firstwebsite`, the installation starts automatically without asking me anything. After that, I can't link MySQL, meaning I go to phpMyAdmin, create the database, but it doesn't create the tables. That's where I get stuck in the tutorial and can't move forward haha. Another error that appears during the installation is this: ``` Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (The specified module could not be found), C:\xampp\php\ext\php_zip.dll (The specified module could not be found)) in Unknown on line 0 ```
13:58 I set the variable name as "Composer" but when I go to cmd and prompt the "composer --version" this is what came out " In Factory.php line 231: The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset. So I edited the variable name and set it to "Compose" instead, and when I go to cmd and indicate the version for composer, it work. edited: 15:26 another thing is when I start installing laravel through cmd the zip was somewhat the problem so I tried to fix though the "php.ini" file (of what the tutorial said) where I remove the semi colon of the ;extension=zip and save it, then I tried downloading it again in the cmd "composer global require laravel/installer" and it works wonderful.
It says you need to enable the zip extension, which means you skipped the part of the video, where we went over the php.ini file 🙂 make sure you have the zip extension uncommented
I guess that's what you have to figure out all by yourself.. As far as I can say, this man is really a good teacher... and he is doing all this for free. Respect that and if you want to evolve there are plenty of free and paid resources out there.. look it up and stop complaining.
Hi everyone! Yes, this is a re-upload, since a lot of people encountered specific errors in the last video. So I am trying to redeem it, by uploading a "better" tutorial hehe. 🙂 Don't worry! The next tutorial will be up in a bit, within the next 5min or so!
I appreciate the effort you put into updating that! I first found your videos during the pandemic, and now am getting into learning full stack with WAMP. I'm really happy you're still putting out stuff!
Check your spelling on your thumb..." Installation "
Pls am waiting
Errors in mine
Its not fine that the setup process doesn't show because it automatically sets up as sqllite when I change the env file to say mysql I get error messages on my webpage. Thanks
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testwebsite.sessions' doesn't exist (Connection: mysql, SQL: select * from `sessions` where `id` = WP6eJLmfXT5RgpjxxxoSReZ6UEinaCKoIhzOMaKm limit 1)
seriuosly you are the best professor ever, I literally have been watching thousands of tutorial from other people, and as a total beginner I was not understanding anything until I found you, now everything makes a sense. thank you, god bless you.
Really thank you for the video. If you guys faced any issue like this "Composer could not find the config file" (This will show in the terminal), try to delete the environment variable that created to the composer, after that project works.
Now I'm having a composer could not found. Can you help me?
Hello Daniel,
In this tutorial (at 19:17 minutes) you are referring to the Dashboard folder.
But in another tutorial, in which we installed Xampp, I remember that you recommended to delete that folder.
So I had to re-install Xampp to get the Dashboard folder back.
No big deal, just letting you know.
Bye,
Ruud (Netherlands)
Error: 'composer' is not recognized as an internal or external command
What helped for me: add this systemvariable:
Path
C:\composer
Hope this is helpful. Thank you Dani for your videos. I managed to install Laravel!!
First off, thanks Dani! Your PHP class tutorial really helped me out and this one's been helping me out as well.
To hopefully save someone else a possible headache... Here's an error and the solution that worked for me. While creating the project in the terminal, right before it asked about the database it would give me the error:
Composer could not find the config file: C:\ProgramData\ComposerSetup\bin
The usual help sites all said remove the Composer variable (same one set up earlier in this video). No luck for me...
Found the issue in the system variable PATH. It has a bunch of various paths, somehow the path for Composer was added. Once I removed the Composer section from PATH, the Laravel set up steps worked fine.
Hey, thank you so much for your comment bro my problem has been solved now after an hour of investigating this nefarious problem!!!😭
I typed the composer.phar at the end of C:\ProgramData\ComposerSetup\bin that seemed to fix it somehow. But looking at the other comments here there happens to many ways of fixing it, like selecting composer.bat or setting the path in PHP
Great tutorial!
If you run into issues with the DB and it doesn't install for whatever reason you can fix the issue and type "php artisan migrate" from the project folder dir to install it.
thanks i had excatly this issue
thanks! I had exactly this issue
If you are getting In JsonFile.php line 381: "c:\ProgramData\ComposerSetup\bin\composer.bat" does not contain valid JSON. Parse error on line 1: ..., I managed to rectified the error by completely deleting the Composer path in Edit systems variable. I have no idea why it works but it worked. Basically, do no add a path Environment variables for composer.
it's worked. lmao
I got the same error and when I deleted the composer from the systems variables it worked !
@BushraAlhusaini-c5l Hello Bushra! I'm happy that I was helpful to you and others. Now, I would like to raise the alarm on a potential issue you might face if you use XAMPP and Laravel. If you are developing a web application without using any laravel and concurrently you are developing a laravel based web app (both using XAMPP), you might run in an error that will prevent you from interacting with your database. Your MySQL server will stop running. If this happens, you unfortunately have to delete XAMPP entirely. Please watch a youtube video first on how to delete XAMPP properly first. Then after deleting your database, create the same old database. This partially worked for me and if you want to know me (since I wrote a lot), let me know.
Yep, worked for me. Thanks for the heads up buddy, you're a legend.
thanks dani this video realy helped me out today , and for teaching me php and oop, wishing you all the best in your new job, sending lots of love from Kenya
really really thanks for your amazing video i understand how to creat laravel project and work with and if you keep going to creat full course i'll be really thankful 😃
✨it's not goonna be difficult it's just new things✨
FYI-XAMPP now has several files in the dashboard, in fact when you start running xampp and start the services the dashboard is what loads up (19:31), recommend backing it up first
Should we still use that folder?
Hi. first of all id love to thank you for everything youve done. mastered the basics of html, css, php from you. currently learning laravel but sadly cant learn all of it from you since the course isnt finished and im in a rush. Anyway, noticed a problem from your course. Creating an environmental variable for composer gave me problems later on when i tried to create a new laravel project. i had to remove the composer variable again for it to work properly
same for me
Differently from installing various NPM JS packages with a plethora of security warnings, It's so satisfying to run "composer require laravel/installer:*" and have "No security vulnerabilities found"...I love the lack of brittleness...btw - that is a work-around any errors received when employing "composer global require laravel/installer"...
I was exactly in the middle of learning that video witch suddenly disappeared, you shocked me man😂❤
Sorry 😅 hopefully you enjoy this one more
@@Dani_Krossing Really useful, Great thanks.❤️
Great video it was easy to follow but when you began creating a project in Laravel, this just kept popping up "Composer could not find the config file: C:\ProgramData\ComposerSetup\bin" .
So do you have a way of fixing this?
my first answer contained a link to a video showing a solution to this problem, so it hasn't been posted yet.
The solution is to open VS Code file - preferences - settings - User - Extensions - PHP - "Edit in settings.json" and add the path to "php.validate.executablePath": "" like so:
"php.validate.executablePath": "C:/xampp/php/php.exe"
C:\ProgramData\ComposerSetup\bin\composer.bat
type this to the environment variable instead.
Don't just type the directory
@@winlox925 this works for me but why he's not getting error like this when he don't include the composer.bat?
@@winlox925 thanks a lot man it worked
@@winlox925this saved me a ton of time ,thanks
nice, man I need git too to be installed, I made it work!, make sure to type the directory of the project folder in terminal for artisan to work sheesh took me a long time to realize
During the installation my terminal didn't really asked me for a database so to work around it. If you don't have the env file yet you need to get it not the example one and then edit the database input then run the artisan migrate
what??
thanks yo! a few steps there. question: I started locally with wp, but wondering if i'd have any issues having laravel installed as well. LInux Ubuntu 22.04
keep em coming.
thanku so much sir for this full explain video
Thanks a lot for this helpful tutorial!
Using windows 11. The path to php in xampp was already set. when I added Composer path to the system variables I got that it was pointing to a directory. I removed the path in system variables for composer only then checked in cmd again for the version and all the information was there.
Thank you so much, I am waiting for the next lesson.
Great video. One question: do you recommend using Docker instead of localy installed services like PHP, MySQL etc?
gettting this error "The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable sh
ould point to a composer.json or be left unset." on cmd when running command on cmd
I wasted my Data without knowing that "zip extension". Thank you for the detailed tutorial
After running laravel inside the terminal in the editor(I am using Visual studio 2019) the terminal never asks me to select a database. It does say that it cant find composer however I did set a path for it like you showed. Anybody know why this is? when I open the Public folder in localhost it displays a screen with the tekst ""500 | SERVER ERROR"
I get the same error - if I however delete the composer path in environmental variables, I get the option to select a database. BUT the database in phpMyAdmin doesn't update with data like in the tutorial. I don't know if that's due to the (now) missing composer path. And I now get the "access denied for root@localhost" when i try to open the public folder.
On stackoverflow they recommended deleting the composer path.
@@MichelleThykjr I was able to go around the problem by creating my own database(which I wanted to do anyway) and just migrate the database tables and columns via the CLI in my own editor.
But if you want to create the DB while starting your parabel project directly it could well be that the composer path is the problem because I also set up a path for composer in the lower path list and the upper path list which the guy in the video didint realy say anything about.
So my suggestion is to just create your own database, connect to it and migrate towards it.
Select the composer.bat as the environment variable instead of just the directory
After the testing framework question it generated a message "Composer could not find the config file C:\ProgramData\ComposerSetup\bin" which I already added this path to the system enviroment. To resolve the issue is to remove the system variable (Composer). With the help of bing Copilot!...
I had the same problem. could you walk me through the solution
I'm getting the same error, been driving me crazy for 30 minutes. I don't think this worked for me but I am going to try a bunch of things.
I'm having the same problem. Is there a way to resolve it?
@@THEGODDARKWOLF remove the composer system variable
@@overseer6943 remove the composer system variable
Finally i found this video , Thans
In order to make laravel run (after 'laravel new firstwebsite' getting through to laravel instead of errormessage) I had to add an environment variable for path: C:\Users\Username\AppData\Roaming\Composer\vendor\bin
You can declare more than one path.
Hope this helps someone.
In Factory.php line 231:
The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin
which is a directory, this variable should point to a composer.json or be lef
t unset. please assist with this error...
you can delete the environment variable, then restart ur computer, it works for me
I get this error "The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset." in the comand window :(
select the .bat or whatever is in there, dont just put the directory
i also encountered the same problem, does anyone else had figured it out?
@@MarshallDTeach-hv3hw YES! That's it. Thanks.
Hey guys, I tried to selected all the three files in the folder one by one and none of the options worked getting the error -
"C:\ProgramData\ComposerSetup\bin\composer.phar" does not contain valid JSON
Parse error on line 1:
#...
^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
@@avinashtripathi3246 same error i am facing
really great work!
The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset. receiving this error message
Thank you so much for your videos. I just watched How to Easily Install Laravel but after typing mysql as the database my application will use, I don't get tables created in my Database. Instead I see this error in the terminal "Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (The specified module could not be found)..."
Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
In GitDownloader.php line 82:
git was not found in your PATH, skipping source download
awesome, in htdocs/default i have a lot of maps that where in there afther installing, can i remove all them like what you did before in the htdocs? i have to work on a module web dev and we have to do a laravel project, this tutorial is gonna help me out,
dont remove them. just leave em be
Shouldn't you select MariaDB instead of MySQL during installation? Both your XAMPP and phpMyAdmin say that you are using MariaDB as server type. Just as a side note.
I'm very happy that you're now addressing Laravel and look forward to following your tutorial series! Thank you for that! 😊
XAMPP and phpMyAdmin uses MySQL by default 🙂 but you can set it up with MariaDB if you want.
@@Dani_Krossing I just thought because at 22:40 you have MariaDB on the right side of phpMyAdmin.
do you use herd? what is the purpose of using it and do i need it in learning laravel?
Hi, I don't have the extension=zip inside my php.ini is it ok to add it?
Thank you
If you say LARAWELL one more time I’m going to lose my mind 😂 jk Great video thank you for uploading these tutorial videos. You got a New Subscriber!! 🙌🏼
first you insult then try and be kind, that's not how it works.
whole time I was wondering if I was saying it wrong all this time until I saw this comment lol
My current PHP version is only 7.4.28, the latest Laravel version requires 8.2^ version of PHP. Will it automatically install the version of Laravel suited for my current PHP version?
Amazing tutorial!
dude it said -The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable sh
ould point to a composer.json or be left unset.
really helped thanks!
Thanks, man! Great video.
Hi Dani, I have a problem. In the VS code in the terminal after Laravel was installed I didn't get a prompt about which database your application uses (MySQL, MariaDB, and so on), i was asked do I wanted to connect to GitHub, i wrote no and pressed enter and the project was installed, but I don't have a connection to the database. when I press public i get error 500, also in the website folder I only have the env.example file and not .env. I tried to make some changes in that file to connect to the database but it did not work, I got a prompt that I must make a composer JSON file, and after all that I don't know what to do!
same problem here
I had the same issue. According to some suggestions, I removed the Composer (c:/ProgramData/ComposerSetup/Bin) from Evnironmental Variables (as we did in this video in Advanced System Settings), restarted VSCode and then ran the "laravel new projectname". This should fix it.
After you run this command, it should do the same process, and at the end, you get the database selection. I hope this helps :)
waiting for your laravel series.......
FYI-The new installs with XAMPP and Composer automatically do this for you if you run the install as administrator. 13:15 (Path Variables for the System)
Hello sir, sorry but my php.ini file doesn't have extension=zip in it, should I install the extension or what should I do? Is it okay to run the program without that extension?
had the same problem ... turns out my xxamp version was too old and with installing the newest all was good
What editor are you using?
Dani, you are amazing
Why I don't have that option to popup when i created the laravel "Which Datebase your application will use?"
yea same. for me it also says that the Composer path towards the Bin in programdata cannot be found for some reason
@@rickbeniers667 we need to revert this step " COMPOSER environment variable defined and set to C:\ProgramData\ComposerSetup\bin"
You should unset/delete that env var. after that it's it's working.
Why mine says locking after I put the composer global require laravel/installer?
hi Dani, whenever i use the database of XAMPP which is mysql i can't turn it on. it automatically turning of with error in the XAMPP control panel . with error of port numbers something like that . but i think it's because of data corruption of data in the database . is there anyway to fixit . actually i resolved this problem multiple times but it keeps happening . i like using XAMPP so how to prevent this from happening
if you have xampp running you don;'t need to create the database the terminal does that for you 22:54
21:15
Here when I choose none it shows this error message
"the term none is not recognized as the name of a cmdlet in vs code"
I failed to get php.ini. Am just only seeing php.ini development and production so how i solved such problem?
Thanks Dani
Hi Dani I have error in this
In CurlDownloader.php line 196:
curl_setopt(): Unable to create temporary file.
What do I do ?
Please Help Me
Thank you so much.....
hello sir Dani, I was following your tutorial and once i tried the npm run dev it always result to Missing script "dev", can I ask how to solve this problem please
was a nice tutorial
Why not put all these videos in a playlist and place the link in the description?
whenever i try to install something locally using composer like for example composer require laravel/breeze --dev command I get this error:
In RequireCommand.php line 155:
file_put_contents(D:\ComposerSetup): Failed to open stream: Permission denied
However if I try to do a global command like composer global require laravel/breeze it works fine, sorry for being a noob but how can i fix this? My enviroment variables are set to the bin folder and everything.
thanks so much
Can I also use mamp instead of xampp and does it change anything important about the rest of the process?
You can use MAMP as well. 🙂 the goal is just to have a server running.
thanks for this 😁
your videos are helpfull
Well every thing went fine i got the version but then downloading fails with many messages
bro this is version 8.2 of php how to update or upgrade into version 8.3 or the latest version in xampp ?
Followed all the steps but getting this error 'composer' is not recognized as an internal or external command,
operable program or batch file.
problem solved
@@john-karoltagboh44 how
@@john-karoltagboh44 how?
Cant run apache says it shuts down unexpectedly every single time I run it. Have sat there for hours trying to troubleshoot using different ports, renaming ServerName to local host. I have tried so many forums and youtube solutions to this apache error and nothing works.
Okay I figured it out. When I installed Xampp i was deleting the PHP folder that comes with XAMPP and then putting in my version of PHP into XAMPP which messed somethings up within XAMPP I guess. To fix it I just reinstalled XAMPP and did not delete the base PHP folder than comes with XAMPP but I still put my, newer, version of PHP in the XAMPP folder since that path was added to my env variables for the PATH.
Sir how to restart the vscode when creating the laravel new firstwebsite.... Sir please tell me... Im exhausted now😢😭
Hloo sirr plz answer me
@@srikowshika3676 unfortunately i have the same problem. Even though i restarted vs code when i typed again "laravel new firstwebsite" it gave me this error message "laravel : The term 'laravel' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." If you found any solution please give me a feedback
After I select "Pest" and Enter I got this error
Would you like to initialize a Git repository? (yes/no) [no]:
> no
In JsonFile.php line 375:
"C:\ProgramData\ComposerSetup\bin\composer.bat" does not contain valid JSON
Parse error on line 1:
@...
^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
same problem here , how did you do?
@@SolCreatives I add the "composer.bat" in the PATH you added instead of "bin" folder..I think.
Thanks!
Hi boss , the first time i opened the php.ini folder i didn't find the extension=zip line i added it myself , is it normal not to find it the first time like in the video??
I am experiencing the same thing too
I noticed that I couldn't find the "php.ini" file because the file name extension check button from the view menu was not activated. So it was just reading as "php" file only.
At 21:36 I hit ENTER then at 21:38 you said BUT WAIT! I'm like FUCK ME!!! then you said ITS OK DON'T WORRY. O what a relief LOL
How can i use PostgreSQL as my application database
When I enter `laravel new firstwebsite`, the installation starts automatically without asking me anything. After that, I can't link MySQL, meaning I go to phpMyAdmin, create the database, but it doesn't create the tables. That's where I get stuck in the tutorial and can't move forward haha. Another error that appears during the installation is this:
```
Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (The specified module could not be found), C:\xampp\php\ext\php_zip.dll (The specified module could not be found)) in Unknown on line 0
```
same issue.. have you resolved this one?
If your dashboard folder on XAMPP is not empty, you will receive a COMPOSER error
file_put_contents(C:\ProgramData\ComposerSetup\bin): Failed to open stream: Permission denied
13:58 I set the variable name as "Composer" but when I go to cmd and prompt the "composer --version" this is what came out "
In Factory.php line 231:
The COMPOSER environment variable is set to C:\ProgramData\ComposerSetup\bin which is a directory, this variable should point to a composer.json or be left unset.
So I edited the variable name and set it to "Compose" instead, and when I go to cmd and indicate the version for composer, it work.
edited:
15:26 another thing is when I start installing laravel through cmd the zip was somewhat the problem so I tried to fix though the "php.ini" file (of what the tutorial said) where I remove the semi colon of the ;extension=zip and save it, then I tried downloading it again in the cmd "composer global require laravel/installer" and it works wonderful.
THANK YOU!!!
This helped tremendously. Thank you.
Am not seeing my composer setups what do i do
it said no composer.json file . Please help me. Im stuck
21:35 - Mine was asked for git because I have it installed, then the rest was the same
love u fstik
I cant find the ProgramData folder
hey im this error message after typing this into comand prompt
composer global require laravel/installer
Changed current directory to C:/Users/HeartCoding/AppData/Roaming/Composer
./composer.json has been created
Running composer update laravel/installer
Loading composer repositories with package information
Updating dependencies
Lock file operations: 30 installs, 0 updates, 0 removals
- Locking carbonphp/carbon-doctrine-types (3.2.0)
- Locking doctrine/inflector (2.0.10)
- Locking illuminate/collections (v11.7.0)
- Locking illuminate/conditionable (v11.7.0)
- Locking illuminate/contracts (v11.7.0)
- Locking illuminate/filesystem (v11.7.0)
- Locking illuminate/macroable (v11.7.0)
- Locking illuminate/support (v11.7.0)
- Locking laravel/installer (v5.8.0)
- Locking laravel/prompts (v0.1.21)
- Locking nesbot/carbon (3.3.1)
- Locking psr/clock (1.0.0)
- Locking psr/container (2.0.2)
- Locking psr/simple-cache (3.0.0)
- Locking symfony/clock (v7.0.7)
- Locking symfony/console (v7.0.7)
- Locking symfony/deprecation-contracts (v3.5.0)
- Locking symfony/finder (v7.0.7)
- Locking symfony/polyfill-ctype (v1.29.0)
- Locking symfony/polyfill-intl-grapheme (v1.29.0)
- Locking symfony/polyfill-intl-normalizer (v1.29.0)
- Locking symfony/polyfill-mbstring (v1.29.0)
- Locking symfony/polyfill-php80 (v1.29.0)
- Locking symfony/polyfill-php83 (v1.29.0)
- Locking symfony/process (v7.0.7)
- Locking symfony/service-contracts (v3.5.0)
- Locking symfony/string (v7.0.7)
- Locking symfony/translation (v7.0.7)
- Locking symfony/translation-contracts (v3.5.0)
- Locking voku/portable-ascii (2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 30 installs, 0 updates, 0 removals
Failed to download doctrine/inflector from dist: The zip extension and unzip/7z commands are both missing, skipping.
The php.ini used by your command-line PHP is: C:\xampp\php\php.ini
Now trying to download from source
In GitDownloader.php line 82:
git was not found in your PATH, skipping source download
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [...]
It says you need to enable the zip extension, which means you skipped the part of the video, where we went over the php.ini file 🙂 make sure you have the zip extension uncommented
am having an error message installing composer
hi every one?
HELP ME how to install Laravel 11 in macbook m1?
cristal clear
huhu I get a lot of Failed to Download huhuhu
What about Linux users :)
Or simply install & use Laravel Herd 🤷♂
why everything in the courses are for beginners and that's it, and not going to what is beyond the basics to improve the students step by step
I guess that's what you have to figure out all by yourself..
As far as I can say, this man is really a good teacher... and he is doing all this for free.
Respect that and if you want to evolve there are plenty of free and paid resources out there.. look it up and stop complaining.
Please do this again on Linux.
laralwel?
larawel🤓🤓🤓🤓🤓🤓🤓🤓
its called laravel