DatabaseMigrations
trait DatabaseMigrations (View source)
Traits
Methods
The parameters that should be used when running "migrate:fresh".
Determine if views should be dropped when refreshing the database.
Determine if types should be dropped when refreshing the database.
Determine if the seed task should be run when refreshing the database.
Determine the specific seeder class that should be used when refreshing the database.
Define hooks to migrate the database before and after each test.
Refresh a conventional test database.
Perform any work that should take place before the database has started refreshing.
Perform any work that should take place once the database has finished refreshing.
Details
protected array
migrateFreshUsing()
The parameters that should be used when running "migrate:fresh".
protected mixed
seeder()
Determine the specific seeder class that should be used when refreshing the database.
protected void
beforeRefreshingDatabase()
Perform any work that should take place before the database has started refreshing.