![]() By default, Laravel is configured to use MySQL, and you will need to supply connection credentials within the database configuration file. You may configure all of your database connections from the app /config /database. Just add the –port argument: php artisan serve -port = 8080 However if that port is already in use or you wish to serve multiple applications this way, you might want to specify what port to use. Try opening again, you should now see the default laravel page.īy default the HTTP-server will listen to port 8000. To fix this, in terminal type the following and hit enterĪfter that, type the following ad hit enter If you visit you’ll find a blank screen, don’t panic, its just a folder permission issue. This will download and install the latest version of laravel on your htdocs folder “ composer create-project laravel/laravel -prefer-dist” Now you can install laravel, to do this type the following without the quotes and hit enter Next step is to install composer, to do this, navigate to your XAMPP public folder from terminal (htdocs), to do this, typeĪnd hit enter without the quotes, composer will download and install To confirm if this has worked, run “which php” from terminal without the quotes, you should get this “/Applications/XAMPP/xamppfiles/bin/php” ![]() Then hold “Control X” when prompted to save type y and press enter ![]() bash_profile on your home directory (if you don’t have this file already) from terminal, to do this run the following commands one line at a time If what you get IS NOT “/Applications/XAMPP/xamppfiles/bin/php”, here’s how to correct itĬreate a file called. To know which version of PHP you system is using by default, open terminal, run “which php” without the quotes. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |