If you use Google, Facebook or another OAuth provider, you might have a difficult time setting up your local environment. That’s because they have some very strict rules about the Authorized Redirect URIs you can register with them. Google, for example, says:

  • it can only be a valid top level domain (or localhost)
  • it can only be served through HTTPS (not HTTP)
  • etc

But if you use Mac OS & Laravel Valet, your projects probably are certainly hosted with a custom extension, something like .test. Google will not allow you to use example.test. …

If you don’t want to pay for an SSL certificate, you can use CloudFlare’s free SSL. Its setup, though, isn’t that apparent and it seems like no one has asked or answered this particular question.


  • you already have CloudFlare setup and your domain name points to it;
  • you manage your server with Laravel Forge (though the same steps should be true for any nginx server);


  1. Generate a self-signed certificate on http://www.selfsignedcertificate.com/. It’ll give you the links to 2 files (private key and certificate). Download them.
  2. In your Forge panel, copy the contents of the above files in Sites…

A complete tutorial to Laravel Packages, from version 5.1 to 8+

Unfortunately, Laravel's documentation on how to create a package is an introduction, at best. It’s important to read it - to understand the concept - but it’s not a step-by-step guide to creating your first package. This is.

Last updated in March 2020 — used it to create a tutorial for Backpack for Laravel add-ons.

Step 1. Install Laravel

For this, check out Laravel’s docs. As an alternative, use an existing Laravel application. Don’t forget you need to:

composer install


chmod -R o+w storage
chmod -R o+w vendor

Step 2. Create your package

We’re going to use this CLI tool to generate a new package. Follow the instructions…

Cristian Tăbăcitu

Creator of Backpack for Laravel & ScheduleThatEmail. I build web products - for work and for fun. www.tabacitu.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store