๋ฐ์ํ
laravel.com/docs/8.x#getting-started-on-windows
- Docker Desktop ์ค์น
www.docker.com/products/docker-desktop
docs.docker.com/docker-for-windows/wsl/
- WSL2 ์ค์น
- Laravel Installer ์ค์น (global)
composer global require laravel/installer
laravel new example-app
php artisan serve
~/.bashrc ์ PATH ์ถ๊ฐ
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
- composer 2๋ก ์ ๊ทธ๋ ์ด๋
php composer-setup.php --install-dir=/usr/bin --filename=composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
blog.packagist.com/composer-2-0-is-now-available/
composer ์ค๋ฅ
mytory.net/2017/02/17/composer-update-failed.html
Database migrations ๋ฐฉ๋ฒ
laravel.com/docs/8.x/migrations#creating-columns
create users table
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email');
$table->timestamps();
});
๋ฐ์ํ
'Web' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฅ์ฌํฌ๋ก ๊ทธ๋ฆฌ๋ (0) | 2023.11.21 |
---|---|
๋ฅ์ฌํฌ๋ก Dataset (0) | 2023.11.16 |
[Laravel] laravel/fortify (0) | 2020.12.20 |
[nginx] ๊ธฐ๋ณธ ์ฐ๊ฒฐ https๋ก ์ค์ (0) | 2020.10.09 |
20191202 (0) | 2019.12.02 |