Home
Add Document
Sign In
Register
laptrinhlaravel_bai3.pdf
Home
laptrinhlaravel_bai3.pdf
Full description...
Author:
Ho Khoa
11 downloads
124 Views
80KB Size
Report
DOWNLOAD .PDF
Recommend Documents
No documents
BÀI 3 : ROUTE I Khởi tạo route Route::get('/', function() { return 'Hello World'; });
II Truyền tham số trên route Route::get('hoten/{ten}', function($ten) {
return 'Họ Tên Bạn Là '.$ten; });
III Truyền tham số trên route nhưng route có thể thiếu tham số
Route::get('monan/{monan?}', function($monan = 'Gà KFC') { return $monan; });
IV Thêm điều kiện cho các tham số để an toàn Route::get('thongtin/{tuoi}/{ten}', function($tuoi, $ten) {
return "Chào Bạn $ten có $tuoi tuổi"; })->where(['tuoi' => '[0-9]+', 'ten' => '[a-z]+']);
×
Report "laptrinhlaravel_bai3.pdf"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close