๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Web

Laravel ์„ค์น˜ (Windows, WSL 2 - Ubuntu)

๋ฐ˜์‘ํ˜•

laravel.com/docs/8.x#getting-started-on-windows

 

Installation - Laravel - The PHP Framework For Web Artisans

Become a Laravel Partner Laravel Partners are elite shops providing top-notch Laravel development and consulting. Each of our partners can help you craft a beautiful, well-architected project.

laravel.com

 

 

 

- Docker Desktop ์„ค์น˜

www.docker.com/products/docker-desktop

 

Docker Desktop for Mac and Windows | Docker

Learn why Docker Desktop is the preferred choice for millions of developers building containerized applications. Download for Mac or Windows.

www.docker.com

docs.docker.com/docker-for-windows/wsl/

 

Docker Desktop WSL 2 backend

 

docs.docker.com

 

 

 

- 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 2.0 is now available!

1/ What's new?The list of changes and improvements is long, check the complete changelog if you are interested in reading it all. I will highlight a few key points here. Performance improvementsWe overhauled pretty much everything from the protocol used be

blog.packagist.com

getcomposer.org/download/

 

Composer

Download Composer Latest: v2.0.8 To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically. php -r "copy('https://getcomposer.org/ins

getcomposer.org

 

composer ์˜ค๋ฅ˜

mytory.net/2017/02/17/composer-update-failed.html

 

[composer] Your requirements could not be resolved to an installable set of packages.

composer update๋ผ๊ณ  ๋ช…๋ น์„ ๋‚ด๋ ธ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์•„๋ž˜ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์™”๋‹ค.Your requirements could not be resolved to an installable set of packages.“์„ค์น˜ ๊ฐ€๋Šฅํ•œ ํŒจํ‚ค์ง€ ์„ธํŠธ๋กœ ์š”๊ตฌ์‚ฌํ•ญ์„ ํ•ด๊ฒฐํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค” ํ•˜๋Š”

mytory.net

 

 

 

 

Database migrations ๋ฐฉ๋ฒ•

 

laravel.com/docs/8.x/migrations#creating-columns

 

Database: Migrations - Laravel - The PHP Framework For Web Artisans

Become a Laravel Partner Laravel Partners are elite shops providing top-notch Laravel development and consulting. Each of our partners can help you craft a beautiful, well-architected project.

laravel.com

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