DatabaseMigrations Not Found In Laravel 5.0

316 Views Asked by At

I was watching a video of Unit Testing of Laravel 5.4, and the tutor uses

use Illuminate\Foundation\Testing\DatabaseMigrations;

and

use DatabaseMigrations;

inside the testing file

In Laravel 5.0, there are no such files and I cannot use DatabaseMigrations in my testing file.

I get error like

Fatal error: Trait 'Illuminate\Foundation\Testing\DatabaseMigrations' not found

Are there any replacements in Laravel 5.0

1

There are 1 best solutions below

1
On

Just these in command prompt "php artisan make:migration create_users_table --create=users" this will create create_users_table migration. after that run this command "php artisan migrate" this will create users table in a database. Thanks