> For Laravel 5.5, the package will **auto-discovered** and ready to go.
#### For Laravel 5.3 and 5.4
#### For Laravel 5.4
Update `config/app.php`, add provider and aliases :
@ -147,8 +147,6 @@ Next, to use the generated testing classes, we can set the database environment
</phpunit>
```
> If you are using Laravel 5.3, you need some [additional configuration](#only-for-laravel-53).
Then run PHPUnit
```bash
@ -159,46 +157,6 @@ All tests should be passed.

#### ONLY for Laravel 5.3
Before start using the package on Laravel 5.3, we need some configuration to make testing works (since it still has BrowserKit Testing features, we will use existing Laravel BaseTest Class and PHPUnit 5.7).
Then on `config/simple-crud.php` edit "base_test_path" and "base_test_class" value:
```php
// config/simple-crud.php
'base_test_path' => 'tests/TestCase.php',
'base_test_class' => 'TestCase',
```
Then add **loginAsUser** method on `tests/TestCase.php` file :
```php
<?php
use App\User;
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
{
// ... method createApplication()
protected function loginAsUser()
{
$user = factory(User::class)->create();
$this->actingAs($user);
return $user;
}
}
```
Done, you may continue to [try the testing suite](#lets-try-the-generated-testing-suite). Please [let me know](https://github.com/nafiesl/SimpleCrudGenerator/issues/new) if this configuration had **any issue**.
## License
This package is open-sourced software licensed under the [MIT license](LICENSE).