Skip to content
Laravel 5.7 Boilerplate with docker and local SSL
PHP Dockerfile HTML VCL Shell Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deployment
docker
scripts
src
.gitignore
TODO.md
VERSION
artisan
bitbucket-pipelines.yml
composer.json
mysql
npm
php-cs-fixer
readme.md
restart
run
setup
start
stop
watch

readme.md

Laravel 5.7 Boilerplate

What is Laravel Boilerplate

Anar Bayramov 2018

Laravel Boilerplate provides you many basic and advanced features to start a new project. As each project requires different packages or libraries I tried to keep this one as simple as possible

currently Laravel Boilerplate 5.7 Included

  • Laravel 5.7
  • Most used docker-containers with lots of dependencies (Credits and many thanks to Laradock as it is simplified version of laradock)
  • Local SSL and HTTPS using openssl
  • Fideloper Proxy

Installation

Laravel Boilerplate runs inside docker. In order to use it you must have Docker installed on your local computer. For more please check official Docker Documentation

  • Install project project from source
composer create-project --prefer-dist anarbayramov/laravel-boilerplate myproject
  • Inside src create new .env file from .env.example
 cp src/.env.example src/.env
  • Edit .env file Please be aware that boilerplate does not allow any special characters or spaces on project name

  • run setup script in root folder

 ./setup
  • Thats it!

Your project should be online at http://localhost or https://localhost Please be aware that you'll get Your connection to this site is not secure warning because of self signed SSL certificates are not trusted by default. You can search for how to make self signed ssl certificates trust based on your operating system.

Continuous Deployment

LaravelBoilerplate has bitbucket pipelines as default. In order to have auto deploy your code to your staging and production:

  1. You need to give SSH access to Bitbucket Pipeline
  2. You need to give SSH access from your server to your bitbucket account

Afterwards under deployment/staging/deploy.sh You need to specify

  • SSH username and server ip
  • Your project root
You can’t perform that action at this time.