KEMBAR78
在 Laravel 裡玩切版 | PDF
Laravel
—
(Shengyou Fan)
LaraGirls Meetup #3
2019/06/04
Copyright © 2000-2019 JetBrains s.r.o.
—
Laravel
—
https://www.laravel-dojo.com
—
https://community.laravel-dojo.com
LaravelConf Taiwan 2019
—
https://laravelconf.tw
View
Photo by Paul Skorupskas on Unsplash
/ vju /
—
Visual	Driven	Development
Web
—
HTML Browser Rendering+ CSS
+ Javascript
—
Request
Response
Laravel
—
Request
Response
Route View
LaraGirls
Photo by Jos Zwaan on Unsplash
5
—
https://laragirls.org
LaraGirls
•
•
—
/jobs/posts/news /projects
/
/jobs/{id}/posts/{id}/news/{id} /projects/{id}
Blade
—
index.blade.php
news.blade.php
post.blade.php
@yield
header.blade.php
sidebar.blade.php
master.blade.php
@include
@include
@extends
Blade
—
@yield	('{section	name}')	
@include('{view	name}')			
@extends('{view	name}')		
@section('{yeild	name}')	
@endsction
{{	$var	}}	
{!!	$html	!!}
@if	
@elseif	
@else	
@endif
@foreach($plural	as	$singular)	
@endforeach	
@for($i	=	0;	$i	<	10;	$++)	
@endfor
Image from: https://i.ytimg.com/vi/DsuTwV0jwaY/maxresdefault.jpg
Vue in View
—
/posts/{id}
Request
Response
Route Data
(HTML)
(JSON)
(show.blade.php)
—
Vue
Laravel
Request
Response
Route Data
(JSON)
ComponentsDownload
—
•
• Web View
• Laravel Blade
•
Photo by Ashley Batz on Unsplash
—
GitHub
• https://github.com/laravel-dojo/20190604-laragirls-layout-with-blade-and-vue-1
• https://github.com/laravel-dojo/20190604-laragirls-layout-with-blade-and-vue-2
Copyright © 2000-2019 JetBrains s.r.o.
Section title
place your text here
four columns
maximum
—
Laravel
(Shengyou Fan)
shengyou.fan@jetbrains.com
—

在 Laravel 裡玩切版