Skip to content

Instantly share code, notes, and snippets.

Created Jul 10, 2020
What would you like to do?
Example of how to use the `DatabaseTransactions` Trait in Laravel.
namespace Tests;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
use CreatesApplication, DatabaseTransactions;
// your other stuff hence-forth
Copy link

agm1984 commented Jul 10, 2020

This file exists alongside this sampler pack:


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment