Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
データベースのデータをLaravelのSeederに逆生成
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Takayuki
May 07, 2019
Programming
920
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
データベースのデータをLaravelのSeederに逆生成
データベースのデータをLaravelのSeederに逆生成
Takayuki
May 07, 2019
More Decks by Takayuki
See All by Takayuki
Build an MCP Server in Laravel to Enable “AI-Operated” Recruiting Tools(English)
bumptakayuki
0
51
Laravel Applications with DDD x Clean Architecture x Vibe Coding
bumptakayuki
1
130
Laravel × Clean Architecture
bumptakayuki
1
620
エンジニアのキャリア論
bumptakayuki
1
310
地方カンファレンス主催のススメ
bumptakayuki
1
280
Laravelで敢えて試す脆弱性のある書き方
bumptakayuki
2
1.4k
地方でのPHPエンジニア採用って実際どうなの?
bumptakayuki
0
830
沖縄観光、名物を一挙紹介!
bumptakayuki
2
840
Laravel ShiftでLaravelのバージョンアップしてみた話
bumptakayuki
1
3.6k
Other Decks in Programming
See All in Programming
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
460
私のClaude Code活用法 (個人開発編) - PHPerKaigi mini #4(2026/08/24)
panda_program
1
180
仕様駆動開発の消費期限
watany
20
9k
VibeCodingからAgenticWorkflowへ
starfish719
0
920
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
5
540
Go 1.27 における memory allocation の高速化
andpad
0
340
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
160
信頼性の目標を誰も求めてない
shubox
0
140
[PyCon KR 2026] More Variants, More Diversity for AI Accelerators
achimnol
0
120
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
260
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
360
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
230
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
310
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
580
GraphQLとの向き合い方2022年版
quramy
50
15k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
550
Code Reviewing Like a Champion
maltzj
528
40k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
800
Game over? The fight for quality and originality in the time of robots
wayneb77
1
260
KATA
mclloyd
PRO
35
15k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Transcript
デʔλベʔεͷσʔλΛ LaravelͷSeederʹٯੜ
3 orangehill/iseedͷ͍ํ Agenda 2 Γ͍ͨࣄ 1 ࣗݾհ
1 ࣗݾհ
4 ࣗݾհ ◆໊લ ླ ೭(Suzuki Takayuki) ◆ࣗݾհ ɾ1990ɺਆಸݝੜ·Εɻ ɾࣾձਓʹͳ͔ͬͯΒɺϓϩάϥϛϯάΛ࢝ΊΔɻ ɾ2015ʹϑϧεϐʔυʹೖࣾ͠ɺ2017ʹϑϦʔϥϯεΛ
ͬͨޙʹ201711݄ʹԭೄͰىۀɻ ◆झຯ ίεϓϨɺԻָϥΠϒɺϚϥιϯେձʹग़Δɺٿ؍ઓ ◆εΩϧ ɾPHP, Symfony2,CakePHP3,Laravel5, ɾJavaScript, backbone.js,Angular4,Vue.js,Nuxt.js
2 Γ͍ͨࣄ
6 2 Γ͍ͨࣄ ɾαΠτ͔ΒεΫϨΠϐϯά͖ͯͨ͠σʔλΛDBʹอଘɻ ※αΠτ͔ΒڐՄΛಘ͍ͯΔɻ ɾϩʔΧϧͷ։ൃڥͰ͋Δఔɺςετσʔλͱͯ͠ɺϚελσʔ λҡ͓͖͍࣋ͯͨ͠ɻ ɾPHPUnitΛ࣮ߦ͢Δ࣌ʹςετσʔλΛ࡞͓͖͍ͬͯͨɻ
7 શମߏ εΫϨΠϐϯά αʔόαΠυ LaravelͷίϚϯ υΛ࣮ߦ औಘͨ͠σʔλΛDBʹอଘ goutte αΠτ DB
3 orangehill/iseedͷ͍ํ
9 ಋೖखॱ https://github.com/orangehill/iseed
1 0 ಋೖखॱ https://github.com/orangehill/iseed ΦϓγϣϯͷίϚϯυ͋ΔͬΆ͍
11 ಋೖखॱ https://github.com/orangehill/iseed ΦϓγϣϯͷίϚϯυ͋ΔͬΆ͍
1 2 ಋೖखॱ $ composer require --dev “orangehill/iseed" Λ࣮ߦ config/app.phpʹProviderͷઃఆΛՃ
1 3 ಋೖखॱ $ php artisan iseed {table_name} Λ࣮ߦ ԼهͷίϚϯυΛ࣮ߦ͢Εςʔϒϧͷ༰ʹԠͨ͡SeederΫϥε͕
ੜ͞Ε·͢
1 4 ಋೖखॱ SeederΫϥεੜޙͷΠϝʔδ
1 5 ͬͯΈͨײ ɾ͚ͬ͜͏ίϚϯυͷ࣮ߦ͍࣌ؒ͠ɺྑ͔ͬͨ ɾσʔλྔ͕ଟ͍ͱϑΝΠϧαΠζ͕େ͖͘ͳͬͯ͠·͏ͷͰɺ ্ख͘forจͱ͔ͰॏෳσʔλίʔυͰ؆ܿʹ·ͱΊͯΒ͑ͨΒ ঘخ͍͠ʂ ɾ͓٬͞Μ͕ϚελσʔλΛఏڙ͍ͯ͠ͳ͍ or API͕ଘࡏͤͣɺ
ࣗͰσʔλΛऔಘ͠ͳ͚Ε͍͚ͳ͍Ҋ݅ʹ͍ͯͦ͏ʂ
1 6 ࢀߟ https://qiita.com/imunew/items/3973658bdcae9ab77b8a