Uploaded April 2017 | Updated December 2026, 25 minutes ago
In this video I show you how easy it is to create your own custom Artisan command. I go through some of the basics of working with Laravel and the terminal.
Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
PHP Developer Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0Fy93MCcC1Co0BuccJk6QqX
A Journey To TDD the tutorial series:
youtube.com/playlist?list=PLrIm-p2rpV0EWSkkE6Llxaw7sxnsxdVWB
In this video I show you how easy it is to create your own custom Artisan command. I go through some of the basics of working with Laravel and the terminal.
Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
PHP Developer Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0Fy93MCcC1Co0BuccJk6QqX
A Journey To TDD the tutorial series:
youtube.com/playlist?list=PLrIm-p2rpV0EWSkkE6Llxaw7sxnsxdVWB




![Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]
Like I said in a previous video, I would like to do as many things within PhpStorm as I can. Let’s open up our version control panel. You might see some idea files. It is not common practice to commit this to the repository. The idea files contain configurations for the IDE on a per project basis. We can ignore them in this tutorial. Let’s update our .gitignore file. For simplicity, feel free to revert the idea files you may have too.
We can commit our changes, using Ctrl + K. Wherever possible, I am going to be using shortcuts. I will let you know what they are, the first time I use them.
Now, let’s install Codeception. To install codeception, run the composer command:
“composer require codeception/codeception dev”. The “ dev” flag will save Codeception as a dev requirement in our composer.json file. To speed up the download process, I will just skip ahead.
If we take a look in our project view, we can see our composer.json and composer.lock file has been updated. Let’s open up our composer.json. You can see Codeception has been added as a dev dependency.
Before we initialise Codeception. Let’s take a look at our Tests folder. We have some default Laravel stuff in here. Let’s get rid of it, to keep this folder clean. When we boootstrap Codeception, it will create new files here.
To bootstrap Codeception, open up the terminal. To save time, do this outside of Vagrant. Whenever you can do something, outside of the virtual machine, take the opportunity to do so. Whenever we run operations within the virtual machine, it is always going to be slower than out.
Run “vendor/bin/codecept”. This will give us a list of available commands. We want to use the Bootstrap command. So let’s run “vendor/bin/codecept bootstrap”. This will generate new files and folders in our test directory.
Let’s take a look. We now have Codeception installed and initialised. Let’s commit our work.
Watch next video:
https://youtu.be/JWW4r1xM4Q4
Watch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr
Laravel Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]](https://i.ytimg.com/vi/r_ttRXID8kE/mqdefault.jpg)





