keizah7's avatar
Level 17

Laravel 8 example test factory

I created new laravel project and seems that factories is not working..

Process finished with exit code 11

I have another project with laravel 8, and tests are running successfully with factories.. Where problem can be?

/**
 * A basic test example.
 *
 * @return void
 */
public function testBasicTest()
{
    dd(Category::factory()->create());
    $response = $this->get('/');

    $response->assertStatus(200);
}
0 likes
1 reply
keizah7's avatar
Level 17

If I trying use factory somewhere in the project it does not work to.. tinker crashes also

Please or to participate in this conversation.