일단 나는 도커 수업을 먼저 들었었고, 조금... 매우 조금만 익숙한 상태이다. 먼저 도커부터 깔아주시고!!! https://laravel.kr/docs/8.x/sail#%EA%B8%B0%EC%A1%B4%20%EC%96%B4%ED%94%8C%EB%A6%AC%EC%BC%80%EC%9D%B4%EC%85%98%EC%97%90%20Sail%20%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0 라라벨 8.x - 세일-Sail 라라벨 한글 메뉴얼 8.x - 세일-Sail laravel.kr 이 부분을 보면, 세일 까는거 나온당. // 컴포저 설치 > brew install composer > composer require laravel/sail // 루트에 docker-compose.yml파일을 생..
permission은 spatie에서 만든 ACL기능을 하도록 해준다. 코끼리쿤한테 물어보면 둘다 잘 대답해주는데, - permission https://packagist.org/packages/spatie/laravel-permission spatie/laravel-permission - Packagist README Associate users with permissions and roles Sponsor If you want to quickly add authentication and authorization to Laravel projects, feel free to check Auth0's Laravel SDK and free plan at https://auth0.com/developers. ..
create(); $role = Role::findOrCreate('superAdmin', 'admin'); $permission = Permission::findOrCreate('rwd', 'admin'); $role->hasPermissionTo($permission); $superAdminUser = $adminUser->assignRole($role); $this->assertEquals(true, $superAdminUser->hasRole('superAdmin', 'admin')); return $superAdminUser; } /** * @test */ public functi..
도커를 깔아주고 시작합니다!! 터미널에서 먼저 만들고자하는 이름의 파일을 생성해주고 .laradock은 만들고자하는 프로젝트 이름입니당! 그리고 파일의 내용은 아래의 스크립트로 채우자. laradock() { if [[ $1 == 'new' ]]; then if [[ -z "$2" ]]; then echo "Input your ProjectName" && exit -1 fi; BASE_PATH="$(eval echo ~$USER)/Desktop/code/$2" if [[ -d "$BASE_PATH" ]]; then echo "Same project already exists" && exit -2 fi; mkdir -p $BASE_PATH && cd $BASE_PATH mkdir ./Infra larave..
1. packagist.org/packages/nuwave/lighthouse nuwave/lighthouse - Packagist README Lighthouse A framework for serving GraphQL from Laravel Lighthouse is a GraphQL framework that integrates with your Laravel application. It takes the best ideas of both and combines them to solve common tasks with ease and offer flexibility when you packagist.org - composer require nuwave/lighthouse - php artisan ve..
laravel-news.com/laravel-5-4-key-too-long-error Laravel 5.4: Specified key was too long error Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything. For laravel-news.com 답은 여기에..... As outlined in the M..
8.0을 하루 앞두고... 생텀을 써보자. 1. 먼저 sample 프로젝트를 만들어보자. 나는 버전 두개 사용해서 composer74지만, 보통은 그냥 composer 함. 라라벨 버전 7.대로 깔리는지 확인하시고. 2. 그리고 생텀을 깔아보자. laravel/ui에 의존해서 설치되도록 하자. 3. 그담은, auth만들고, publish 하고, migration 하자. 4. 설정 ㄱㄱ 먼저 app\Http\Kernel.php use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful; protected $middlewareGroups = [ 'api' => [ EnsureFrontendRequestsAreStateful::class, 't..
우리 회사 홈페이지에 검색 기능이 있더랜다. 검색어는 "Business Data Analyst (비즈니스 데이터 분석)" 이다. 중요 요점은 가운데 analyst(공백2개)(비즈니스 데이터...라는 거다. 저눔의 공백2개-_- 저장할때 저렇게 저장해서 db에도 저장된 값은 공백 2개로 저장이 됐다. 정상적이지. 그래. 근데 크롬에서는 얘가 공백 한개로 보인다. 오랜 css오류라는데, white-space: pre;를 주면 2개로 표시는 된다. 이게 해결 방법은 아닌거 같다. 만약 컨트롤 cv안하고 일일이 타자쳐서 검색하면 또 안나올거 아닌가? 그래서 오랜시간 고심했지만 난 못찾아냈지만 우리 사수님은 찾아내셨다. $query->where($field, 'like', '%' . preg_replace('/[..
제공해 주는 페이지네이션은 쿼리빌더 상태에서만 쓸수있짜나 ㅠㅠ 그리고 우리 스트릭모드 다 맞추고 있어서 그냥 함부로 groupBy써서 중복제거 하는거 안쓰는게 더 편하다...... 난 요고조고 가져와서 조합해서 페이지네이션 하고 싶다구 ㅠㅠ 그러니까, 컬렉션 단위 페이지네이션이 필요하고요, https://rediant.tistory.com/entry/Laravel-74-%EC%88%98%EB%8F%99-%ED%8E%98%EC%9D%B4%EC%A7%80%EB%84%A4%EC%9D%B4%EC%85%98%EC%9D%84-%EC%95%84%EB%9D%BC%EB%B3%B4%EC%9F%88 요기에서 이어짐. ㅇㅇ /** * collection을 페이지네이션. * * @param $items * @param int ..
config/purifier.php 'default' => [ 'HTML.Doctype' => 'HTML 4.01 Transitional', 'HTML.Allowed' => 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[alt|src|style|class|data-id], table[border|cellpadding|cellspacing|style],tbody,tr[style],td[style],iframe[src|width|height|allowfullscreen]', 'HTML.TargetBlank' => true, 'CSS.AllowedProperties' => 'font,font-size,font-weight,fon..
- Total
- Today
- Yesterday
- 배열을_이쁘게
- 더미데이터도유형이있어요
- Testing
- UTF8
- 테스팅
- twoserven.kr/0410
- JSON으로도
- fmf
- twoseven.kr/0410
- xml로도
- PhpStorm
- gcp
- 엘라스틱서치한글성공!
- 프로그래밍은디버거부터시작이다
- 테스팅환경
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |