Basic Laravel 6 Setup with Auth, Git, DB and Telescope

Written by SarahS

23rd September 2019
  1. In Terminal CD to your Projects folder
  2. *Run
    [laravel new projectName --auth]
  3. In GitHub desktop, add a Local Repository, add a readme and Laravel GitIgnore and push it to GitHub
  4. Open your database UI and create a new one with an appropriate name
  5. Add connection information to the .env file in your project
  6. CD into your new project folder
  7. add telescope to dev only
    [composer require laravel/telescope --dev]
  8. add detailed error messages
    [composer require facade/ignition]
  9. until we set up a proper mailing service, make all emails logged by going to .env and changing this
  10. add fancy error pages
    [composer require laravelcollective/errors]

    and then

    [php artisan vendor:publish
  11. run
    [composer update]
  12. run project
    [php artisan serve]

Then your project should be up and running on localhost and you will be able to register and log in and get started!

*Updated 19/11/19 – Laravel 6.3.0 now has auth built in with an --auth flag (see Step 2)

This is one of my Laravel posts.  I’m still learning Laravel so the posts are usually pretty basic and are more aimed at keeping track of things that I find useful so that I can come back to them again at a later date.  I hope you find them useful too.  If not, or if you think they are wrong then please leave a comment below.  Thank you.

Faster Laravel Hosting

If this post helped you or if you have any questions please leave me a comment below:


You May Also Like…

Setting up SQLite for Laravel

Setting up SQLite for Laravel

Sometimes you may decide you want to use SQLite for your Laravel app instead of a full blown MySQL database. In that...