툴랩
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(라라벨)을 설치해 보려고 합니다. 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
Rocky Linux 9 - PHP Composer 설치

Rocky Linux 9 - PHP Composer 설치

Rockey Linux 9 에서 Composer 설치 방법입니다. wget 설치 $ sudo dnf install wget Composer 다운로드 $ sudo wget https://getcomposer.org/installer -O composer-installer.php Composer 설치 $ sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin Composer 설치된 버전 확인 $ composer --version

  • format_list_bulleted Server/RockyLinux
  • · 2023. 6. 30.
  • textsms

Rocky Linux 9 - PHP, PHP-FPM 설치 및 설정

기본 설치 sudo dnf install dnf-utils sudo dnf install epel-release sudo dnf install http://rpms.remirepo.net/enterprise/remi-release-9.rpm PHP 설치 가능 리스트 확인 sudo dnf module list php PHP 8.2 설치 sudo dnf module install php:remi-8.2 sudo dnf update sudo dnf install php # php version 확인 php -v # 모듈 설치 dnf install php -{cli,gd,mysqlnd,mbstring,json,common,dba,dbg,devel,embedded,enchant,bcmath,gmp,intl,lda..

  • format_list_bulleted Server/RockyLinux
  • · 2023. 6. 12.
  • 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)
최근 글
인기 글
최근 댓글
태그
  • #laravel
  • #rockylinux
  • #Flutter
  • #ChatGPT
  • #PHP
  • #Python
  • #golang
  • #라라벨
  • #Laravel10
  • #flask
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바