- PHP ^7.3.0
- Extensions: mbstring, curl, dom, xml,zip, sqlite3
- Composer
- Node.js & npm
- SQLite for local
- heroku cli
For Docker setup update .env.example
DB_CONNECTION=pgsql
DB_HOST=db
DB_DATABASE=postgres
DB_USERNAME=postgres
DB_PASSWORD=password
$ make setup
$ make start
$ composer create-project --prefer-dist laravel/laravel hexlet-laravel-blog
$ cd hexlet-laravel-blog
$ make start # Open http://localhost:8000
touch database/database.sqlite
# update .env.example (DB_CONNECTION DB_DATABASE)
$ php artisan make:model Article --migration
# update migration (add name and body)
$ php artisan migrate
$ add .psysh # https://stackoverflow.com/questions/53773098/php-artisan-tinker-crashing-from-any-command
# for relaoding https://github.com/furey/tinx
$ php artisan tinker
$ php artisan make:controller ArticleController --resource
# add Route::resource('articles', 'ArticleController');
$ php artisan route:list
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).