(1) 패키지 설치터미널에서 다음 명령어를 실행하여 Laravel UI를 설치합니다: bashcomposer require laravel/ui 이 명령어는 laravel/ui 패키지를 composer.json에 추가하고 의존성을 설치합니다. […]
새로운 프로젝트 만들기 on xampp
1. XAMPP 설치 경로 확인 2. 터미널 열기 (명령 프롬프트) cmd cd C:\xampp\htdocs 3. 라라벨 프로젝트 생성 cmd composer create-project […]
PHP Laravel 6,7 – 문자 자르기 Str::substr() – ( Helpers )
컨트롤 —- use Illuminate\Support\Str; $converted = Str::substr(‘The Laravel Framework’, 4, 7); // Laravel Front (…blade.php) —- {{ \Illuminate\Support\Str::substr(‘The Laravel Framework’,-9 […]
PHP Laravel 파일 작성 .htaccess
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On […]
PHP Laravel 6,7 – 긴글 자르기 ( Helpers )
> Controllers 에서 사용 use Illuminate\Support\Str; // 추가 $truncated = Str::limit(‘가나다라마바사 아 자 차 카 ABcdef 12345566’, 20); // […]
PHP Laravel 6 – 서브쿼리 ( Query builder )
use Illuminate\Support\Facades\DB; $test = DB::table(“test1_table”) -> select(“test1_table.*”, DB::raw(” (select test2_table.name from test2_table […]
PHP Laravel 6 – 특정 테이블만 생성 및 변경시 path 지정하여 시행
1. 모델 만들며 -m 옵션을 아래와 같이 준다. php artisan make:model TestTABLE -m 2. DB 테이블 생성 파일 편집 후 […]
PHP Laravel 6 – debug log
www/config/logging.php 파일의 ‘default’ => env(‘LOG_CHANNEL’, ‘daily’), 변경 ‘channels’ => [ ‘stack’ => [ […]