Install Laravel in Docker container on Ubuntu for beginners 101



Install Laravel on Ubuntu for beginners using Docker. (see shortcuts below to key points) Adam Culp of Beachcasts php programming videos shares how to install Lavavel globally, and how to create a new Laravel project, and set up a development environment with Docker.

Please * LIKE, COMMENT, AND SUBSCRIBE * – and share with others!

Key Topics:
– Install Laravel installer globally
– Install a Laravel project/Create a Laravel application
– Using Artisan to perform tasks in Laravel
– Create docker-compose.yml
– Create Dockerfile
– Use Laravel with Docker container

Errata:
This video assumes you have Composer and PHP installed on your system already.
08:35 I say “Composer” but meant to say “Docker”
13:31 The container will use Debian from the base image, not Ubuntu
13:39 Need to use mariadb-client because Debian doesn’t have mysql-client
Let me know if you notice anything that should be errata

Associated Links:
https://laravel.com/
https://laravel.com/docs/5.8/installation
https://getcomposer.org/

Example Docker files used in this video:
https://github.com/Beachcasts/doctrine-expressive-example/blob/master/docker-compose.yml
https://github.com/Beachcasts/doctrine-expressive-example/blob/master/container-build/web/Dockerfile

Timeline:
01:26 Install Laravel installer globally
02:30 Add the Laravel installer to the $PATH
03:00 Edit the .bashrc to add to PATH
04:40 Use Laravel installer via CLI
05:30 Create a new Laravel based project
06:55 How to use artisan command line tool to perform tasks for Lavarel
07:50 Use artisan to launch the PHP built in web server
09:40 Alter /bootstrap and /storage directory permissions for web server
11:16 Create the docker-compose.yml file
12:30 Create the Dockerfile to be used by docker-compose
13:20 Walk through Dockerfile contents
15:04 Launch docker-compose

Other Beachcasts videos you might find interesting:
Laravel Model Factory Tutorial using Artisan make:model https://youtu.be/hM135dPJ1dM
Authentication in Laravel https://youtu.be/2qJkzWJNpjQ
Getters and Setters accessors in object oriented programming https://youtu.be/cozignPaoLg
Critical programming issues preventing a PHP 7 upgrade https://youtu.be/z13glyDnm6s
Behat for beginners functional REST API testing tutorial https://youtu.be/nFNGDhyFrm4
Doctrine ORM one-to-many bi-directional association https://youtu.be/4nEdBDxBc1w
PHP Mess Detector static analysis to find PHP code smells https://youtu.be/8fEfHESrK5E
Doctrine ORM one-to-many self-referencing association https://youtu.be/4dHZ6cZooOk
10 reasons to become a consultant in a consulting business https://youtu.be/J7gpMYAKmDM
Zend Framework becomes Laminas project at Linux Foundation https://youtu.be/CEIO90ocEDI
10 bad things about consulting https://youtu.be/ELE0G3e7h3c
How to get lines of code in PHP https://youtu.be/HpC-Cvxj6oY
Make a List handler middleware https://youtu.be/VLqavHCFv6g
Make a Delete handler middleware https://youtu.be/3nLbQfMk99k
Make an Update handler middleware https://youtu.be/3Zcq5Jjz1Po
Use UUID with Doctrine ORM for DB keys https://youtu.be/SYuLwMwSIpg
Make a Create handler middlware https://youtu.be/FIYh-VIWUko
Automate Hypermedia creation for PHP REST API https://youtu.be/dX6S-pJVUXI
Learn about Hypermedia and how to create it https://youtu.be/aV6ro_JXL_A
Doctrine ORM Paginator for PHP REST API https://youtu.be/UpqOew4sNT0
Doctrine ORM Entity how to https://youtu.be/NnK9Geg1h_E
Configure Doctrine ORM https://youtu.be/pFvh5ZNhdOQ
Create PHP middlware with Zend Expressive https://youtu.be/26440j7D0BE
Configure PhpStorm for PHP development with Docker https://youtu.be/FQWL-JTZvf4
Create PHP development environment with docker https://youtu.be/2ESAi2vq-80

Help through referrals:
Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. https://www.tesla.com/referral/tanya21367

I use TubeBuddy to help me manage my YouTube channel. If you’re interested, click the following link to check it out. https://www.tubebuddy.com/beachcasts

#laravel #laraveldocker #beachcasts

source

LEAVE A REPLY

Please enter your comment!
Please enter your name here