Search result

Review: 소프트웨어 개발의 지혜 - 12장_인퍼테이스 분리 원칙

ISP: 인터페이스 분리 원칙 클라이언트가 자신이 사용하지 않는 메소드에 의존하도록 강제되어서는 안된다. 예시: ATM 사용자 인터페이스 위 상황은 ISP가 지양하는 바로 그 상황이다. 각각의 Transaction 파생 클...

일대다 관계

$table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade');class Article extends Model{protected $fillable = ['titile', 'content'];public function user(){retur...

관계

unsignedInteger(음수를 사용지않음)

unsignedInteger id같은경우 음수를 사용하지 않으므로 int 범위에서 반은 사용하지 않는다.이럴때 unsigned를 선언해 주면 그 범위가 양수로 옮겨진다.-2147483648 ~ 2147483647에서0 ~ 4294967295

Migration

prefix, namespace

Route::group(['namespace' => 'Dashboard','prefix' => 'book'], function() {Route::get('/', 'DashboardController@index');});Route::group(['prefix' => 'book'], function () { Route::post('add', 'BookCo...

라우팅

gyp: No Xcode or CLT version detected!

아래와 같이 입력해도 xcode-select --install아래와 같이 뜬다xcode-select: error: command line tools are already installed, use "Software Update" to install updates아래와 같이 명령어를 입력하자 커맨드라...

에러관련

[Linux] 명령어로 파일 수정 (sed)

[Linux] 명령어로 파일 수정 sudo sed -i 's/memory_limit = 160M/memory_limit = 150M/g' php.ini

Code

Review: 소프트웨어 개발의 지혜 - 11장_의존 관계 역전 원칙

DIP : 의존 관계 역전 원칙 a. 상위 수준의 모듈은 하위 수준의 모듈에 의존해서는 안된다. 둘 모두 추상화에 의존해야 한다. b. 추상화는 구체적인 사항에 의존해서는 안 된다. 구체적인 사항은 추상화에 의존해야...

GuzzleHttp 사용하기

1 web.php 주소는  json api 데이터는 http://jsonplaceholder.typicode.com/ 여기서 가지고 온다.

laravel7스터디

인라인 뷰를 렌더링하는 컴포넌트 생성

1. php artisan make:component Navigation --inlineapp/View/Components/Navigation/php 파일만 생성된다.2. 만들어진 component를 삽입해보자 사이드바 제목 추가내용 결...

laravel7스터디

메인에서 서브컴포넌트로 제목 넘기기

1. welcome.blade.php 사이드바 제목 추가내용 2. merge(['class' => 'text-xl'])}}> {{ $title }} {{ $info }} {{ $sometning }} Hello Laravel 7 Component @for...

laravel7스터디