https://github.com/setnemo/laracasts-tdd-course
Laracasts course https://laracasts.com/series/lets-build-a-forum-with-laravel
https://github.com/setnemo/laracasts-tdd-course
Last synced: 23 days ago
JSON representation
Laracasts course https://laracasts.com/series/lets-build-a-forum-with-laravel
- Host: GitHub
- URL: https://github.com/setnemo/laracasts-tdd-course
- Owner: setnemo
- License: mit
- Created: 2021-02-14T19:26:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-29T15:49:21.000Z (almost 5 years ago)
- Last Synced: 2025-10-09T00:29:41.937Z (7 months ago)
- Language: PHP
- Size: 223 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## My notes for the course 'Lets Build a Forum With Laravel And TDD'
[Link to the course][0]
### Lesson 1 : [link][2]
Commands:
```bash
php artisan make:model Thread -mr
php artisan migrate
php artisan make:model Reply -mc
php artisan tinker
>>> factory('App\Thread', 50)->create();
php artisan migrate:refresh
>>> $threads = factory('App\Thread', 50)->create();
>>> $threads->each(function ($thread) { factory('App\Reply', 10)->create(['thread_id' => $thread->id]); });
```
[0]: https://laracasts.com/series/lets-build-a-forum-with-laravel
[1]: https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/1