Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMohamed El-Damarawy
11,294 PointsWhy did you require MAMP when we can use the php artisan serve command?
This question is for the Laravel course, but couldn't find the topic in the list
2 Answers
jonathanbarrios
Treehouse TeacherGreat question. The reason we are using MAMP is because you will need a MySQL database and since I didn't cover installing MySQL using HomeBrew for macOS, we use MAMP. If you don't have MySQL installed locally, you can test this behavior by shutting MAMP down completely and try using php artisan serve
-- you will notice a database error, database does not exist
.
If you have MySQL installed, using something like HomeBrew, then you will need to use the terminal to create a MySQL user and database with the correct permissions. Remember that you would still need to add your DB credentials to the .env file, just like we did using MAMP, except this time, you would use the terminal and not PHPMyAdmin
.
I think you might enjoy Laravel Valet so definitely check that out. I hope this was useful, if not check out these two Treehouse Livestream resources:
https://twitter.com/treehouse/status/1251969319115907073?s=20
https://twitter.com/treehouse/status/1251237903411232768?s=20
jonathanbarrios
Treehouse TeacherI am happy to hear that you completed the Laravel Basics course! As you mentioned, it's just to get you started and we will cover much more in each subsequent Laravel course, such as Build a REST API with Laravel
and Laravel Authentication
.
As always, happy coding!
Mohamed El-Damarawy
11,294 PointsThat's great to hear, you guys are awesome!
Mohamed El-Damarawy
11,294 PointsMohamed El-Damarawy
11,294 PointsHi John.
I did use valet, and as far as I got it's just a quick way to fake a domain name for the dev environment.
Anyways, I just finished the course yesterday. It's good enough to get to know Laravel, but I still feel like there's so much more that needs illustration. Like middlewares, service providers, authentication & authorization, setting up emails...etc
And of course I'm waiting for the API course (which I hope covers passport).
Thanks for your reply