툴랩
close
프로필 배경
프로필 로고

툴랩

  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
  • Home
  • Tags
  • Guest
  • NaverBlog
  • YouTube

Laravel 10 Seeder 기본 데이터 넣기

안녕하세요. 라라벨을 이용할때 서버 배포 또는 DB 초기화 후 기본 데이터를 넣을 수 있습니다. Seeder(시더)를 이용한 방법이 있는데요 아래 간단하게 명령어와 사용법을 확인하시면 됩니다. 명령어(시더파일 생성) php artisan make:seeder AdminsTableSeeder 관리자 이메일, 비밀번호 입력 database/seeders/AdminsTableSeeder.php: use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class AdminsTableSeeder extends Seeder { public function run() { DB::table..

  • format_list_bulleted Programming/Laravel
  • · 2023. 12. 5.
  • textsms
Laravel 10 서버 배포시 자동으로 패키지 설치

Laravel 10 서버 배포시 자동으로 패키지 설치

안녕하세요. Laravel 에서만 활용될 수 있는 내용은 아닙니다. CI/CD를 적용해서 활용하시는 분들도 많으시겠지만 저는 간단하게 git commit, git push, git pull 단계에서 직접적으로 확인 하고 간단하게 동작하는 형태를 좋아해서 git 에서 지원하는 hook 기능을 쓰고 있습니다. 서버에서 git pull 을 하면 작동하는 hook이며 composer, php artisan *:cache 를 실행합니다. Git 설정 # git이 적용된 프로젝트 폴더에서 아래 파일 생성 vi .git/hooks/post-merge post-merge 내용 #!/bin/sh #npm install #npm run build composer install --optimize-autoloader --n..

  • format_list_bulleted Programming/Laravel
  • · 2023. 12. 4.
  • textsms
Laravel 10 설치 및 프로젝트 생성

Laravel 10 설치 및 프로젝트 생성

안녕하세요. Laravel(라라벨)을 설치해 보려고 합니다. Laravel 은 여러가지 설치 방식을 지원해 주고 있습니다. 아래 메뉴얼 링크에서 보면 composer, sail, git 을 이용한 설치 방법이 있습니다. https://laravel.com/docs/10.x Laravel - The PHP Framework For Web Artisans Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things. laravel.com 개인적으로는 sail을 활용하여 개..

  • format_list_bulleted Programming/Laravel
  • · 2023. 10. 17.
  • textsms

Laravel 10 기초 명령

프로젝트 생성 composer create-project laravel/laravel example-app 서버실행 cd example-app php artisan serve .env DB 수정 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel_crud DB_USERNAME=root DB_PASSWORD=root 모델 및 컨트롤러 생성 php artisan make:model Prodcut -mc 마이그레이션 파일 생성 php artisan make:migration create_flights_table --create=flights Vite 활성화 npm install # 개발 npm run dev # 빌드 npm run bu..

  • format_list_bulleted Programming/Laravel
  • · 2023. 4. 12.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
최근 글
인기 글
최근 댓글
태그
  • #ChatGPT
  • #PHP
  • #laravel
  • #Python
  • #rockylinux
  • #Flutter
  • #golang
  • #flask
  • #라라벨
  • #Laravel10
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바