Faker in Laravel: 10+ Less-Known Methods

Faker in Laravel: 10+ Less-Known Methods

Laravel Daily

1 год назад

9,815 Просмотров

I want to show you a few interesting methods where Faker can be a great help for some dummy data.

Faker docs: https://fakerphp.github.io/

- - - - -
Support the channel by checking out my products:
- My Laravel courses membership: https://laraveldaily.teachable.com/p/all-courses-yearly-membership
- Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Livewire Kit Components: https://livewirekit.com

- - - - -
Other places to follow:
- My weekly Laravel newsletter: http://bit.ly/laravel-newsletter
- My personal Twitter: https://twitter.com/povilaskorop
Ссылки и html тэги не поддерживаются


Комментарии:

Ryan B
Ryan B - 28.09.2022 06:44

Looks like This Century/This Decade are just using a rolling period of the last 100 or 10 years respectively. Which was probably done to just keep it simple.

Ответить
Gareth Lategan
Gareth Lategan - 26.09.2022 14:23

Can I use faker to make a girlfriend? Asking for a friend..

Ответить
Ahsan Khan
Ahsan Khan - 26.09.2022 02:49

Please make a on faker image. It doesn't work properly in Laravel 9 version. Please share your views. Thank you

Ответить
Indra Prastha
Indra Prastha - 25.09.2022 19:12

Great to know, may be someday a topic on how to create our own fake data and extending it into faker custom method will be helpful

Ответить
Mehdi Daalvand
Mehdi Daalvand - 25.09.2022 19:12

When you use the 'unique' method, it is recommended that you use $this->faker instead 'fake' function, because of memory usage problems.

Ответить
Kirill Hybrid
Kirill Hybrid - 25.09.2022 12:22

Do you speak spanish too? :)

Ответить
Valtrgr
Valtrgr - 25.09.2022 11:19

can you make video about servce container

Ответить
Hosam gnaba
Hosam gnaba - 25.09.2022 10:53

good to know man thank you

Ответить