Create laravel project

composer create-project laravel/laravel app_deskvn bash createsubdomain.sh create desk.vn /var/www/app_deskvn/public chown -R www-data:www-data app_deskvn   Hoặc dùng craftable composer global require “brackets/craftable-installer” craftable new my_project Nếu báo lỗi craftable: command not found tức là chưa đặt path, chạy: export PATH=~/.composer/vendor/bin:$PATH

Unit test

https://www.startutorial.com/articles/view/phpunit-beginner-part-1-get-started Nhưng lưu ý thay PHPUnit_Framework_TestCase bằng PHPUnit\Framework\TestCase.   Nếu cài phpunit cho riêng project composer require –dev phpunit/phpunit ^6.0 thêm vào file test trước khi dùng: require __DIR__ . ‘/vendor/autoload.php’;