Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.89 KB

readme.md

File metadata and controls

40 lines (33 loc) · 1.89 KB

Project 3: Laravel Basics

Live URL

http://p3.lengjai.me

Description

A web application called Developer's Best Friend which includes a Lorem Ipsum Generator and a Random User Generator.

Demo

Screencast Link

Details for teaching team

For the Lorem Ipsum generator, I ran the commands:

> cd vendor/fzaninotto/faker/src/Faker/Provider
> find . -name Text.php | sed 's/\.\///' | sed 's/\/.*//'

to get the language locale codes that the Faker package supported for generating random text.

For the Random User generator, I ran the commands:

> cd vendor/fzaninotto/faker/src/Faker/Provider
> find . -name Address.php | sed 's/\.\///' | sed 's/\/.*//'

to get the language locale codes that the Faker package supported for generating address. And I repeated this command for phone numbers (PhoneNumber.php) and email addresses (Internet.php). I decoded the locale codes using the webpage http://www.science.co.il/Language/Locale-codes.asp and saved all the information into the Excel spreadsheet locale.xlsx.

For the xkcd Password generator, I downloaded the list of words from http://www.wordfrequency.info into the file wordfrequency.info_words and then ran the command:

> sort wordfrequency.info_words | grep -v - | uniq > words

to filter out words with hyphens. And I modified the App\Providers\AppServiceProvider class and added a custom validation rule to validate that the Letter Case parameter is a function.

Outside code