diff --git a/artisan b/artisan index 44dc07b..5c23e2e 100644 --- a/artisan +++ b/artisan @@ -1,6 +1,8 @@ #!/usr/bin/env php define(App\User::class, function (Faker\Generator $faker) { +$factory->define(App\User::class, function (Faker $faker) { static $password; return [ diff --git a/public/.htaccess b/public/.htaccess index 903f639..0968348 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -7,7 +7,8 @@ # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^(.*)/$ /$1 [L,R=301] + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d diff --git a/public/index.php b/public/index.php index 1e1d775..4584cbc 100644 --- a/public/index.php +++ b/public/index.php @@ -7,6 +7,8 @@ * @author Taylor Otwell */ +define('LARAVEL_START', microtime(true)); + /* |-------------------------------------------------------------------------- | Register The Auto Loader @@ -19,7 +21,7 @@ | */ -require __DIR__.'/../bootstrap/autoload.php'; +require __DIR__.'/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 486dc27..f31e495 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -3,9 +3,7 @@ namespace Tests\Feature; use Tests\TestCase; -use Illuminate\Foundation\Testing\WithoutMiddleware; -use Illuminate\Foundation\Testing\DatabaseMigrations; -use Illuminate\Foundation\Testing\DatabaseTransactions; +use Illuminate\Foundation\Testing\RefreshDatabase; class ExampleTest extends TestCase {