diff --git a/service/.env.example b/service/.env.example deleted file mode 100644 index f5f67f1..0000000 --- a/service/.env.example +++ /dev/null @@ -1,37 +0,0 @@ -APP_ENV=local -APP_DEBUG=true -APP_KEY=SomeRandomKey!!! - -APP_LOCALE=en -APP_FALLBACK_LOCALE=en - -DB_CONNECTION=mysql -DB_HOST=localhost -DB_DATABASE=homestead -DB_USERNAME=homestead -DB_PASSWORD=secret - -CACHE_DRIVER=memcached -SESSION_DRIVER=memcached -QUEUE_DRIVER=database - -# MAIL_DRIVER=smtp -# MAIL_HOST=mailtrap.io -# MAIL_PORT=2525 -# MAIL_USERNAME=null -# MAIL_PASSWORD=null -# MAIL_FROM_ADDRESS=null -# MAIL_FROM_NAME=null - -# FILESYSTEM_DRIVER=local -# FILESYSTEM_CLOUD=s3 - -# S3_KEY=null -# S3_SECRET=null -# S3_REGION=null -# S3_BUCKET=null - -# RACKSPACE_USERNAME=null -# RACKSPACE_KEY=null -# RACKSPACE_CONTAINER=null -# RACKSPACE_REGION=null diff --git a/service/app/Http/Controllers/UserController.php b/service/app/Http/Controllers/UserController.php index abf4f5e..9a2a37d 100644 --- a/service/app/Http/Controllers/UserController.php +++ b/service/app/Http/Controllers/UserController.php @@ -1,7 +1,9 @@ - $id]); + + $users = User::all(); + return view('user', ['user' => $id, 'users' => $users]); } } diff --git a/service/app/Models/User.php b/service/app/Models/User.php new file mode 100644 index 0000000..7149d4b --- /dev/null +++ b/service/app/Models/User.php @@ -0,0 +1,18 @@ +withFacades(); +$app->withFacades(); -// $app->withEloquent(); +$app->withEloquent(); /* |-------------------------------------------------------------------------- diff --git a/service/database/seeds/DatabaseSeeder.php b/service/database/seeds/DatabaseSeeder.php deleted file mode 100644 index b3c69b5..0000000 --- a/service/database/seeds/DatabaseSeeder.php +++ /dev/null @@ -1,20 +0,0 @@ -call('UserTableSeeder'); - } - -} diff --git a/service/resources/views/user.blade.php b/service/resources/views/user.blade.php index 1e5a705..84b2fc9 100644 --- a/service/resources/views/user.blade.php +++ b/service/resources/views/user.blade.php @@ -10,4 +10,5 @@ @section('content')

{{$user}}

+

{{$users}}

@stop