Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #45 from lucid-architecture/5.8
Browse files Browse the repository at this point in the history
Upgrade to Laravel v5.8
  • Loading branch information
harris21 authored May 28, 2019
2 parents 1d5f460 + 3194d51 commit ac44668
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 37 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function validator(array $data)
return Validator::make($data, [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', 'min:6', 'confirmed'],
'password' => ['required', 'string', 'min:8', 'confirmed'],
]);
}

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"type": "project",
"require": {
"php": ">=7.1.3",
"laravel/framework": "5.7.*",
"lucid-arch/laravel-foundation": "5.7.*",
"laravel/framework": "5.8.*",
"lucid-arch/laravel-foundation": "5.8.*",
"laravel/tinker": "^1.0",
"fideloper/proxy": "~4.0"
},
"require-dev": {
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "~7.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^7.5",
"symfony/css-selector": "~4.0",
"symfony/dom-crawler": "~4.0",
"lucid-arch/laravel-console": "5.7.*",
"lucid-arch/laravel-console": "5.8.*",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0"
},
Expand Down
2 changes: 2 additions & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
'aliases' => [

'App' => Illuminate\Support\Facades\App::class,
'Arr' => Illuminate\Support\Arr::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
Expand Down Expand Up @@ -222,6 +223,7 @@
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
Expand Down
1 change: 1 addition & 0 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'api' => [
'driver' => 'token',
'provider' => 'users',
'hash' => false,
],
],

Expand Down
10 changes: 9 additions & 1 deletion config/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
| Supported: "apc", "array", "database", "file", "memcached", "redis"
| Supported: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb"
|
*/

Expand Down Expand Up @@ -75,6 +76,13 @@
'connection' => 'cache',
],

'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
],
],

/*
Expand Down
12 changes: 11 additions & 1 deletion config/database.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Illuminate\Support\Str;

return [

/*
Expand Down Expand Up @@ -53,6 +55,9 @@
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],

'pgsql' => [
Expand Down Expand Up @@ -97,7 +102,12 @@

'redis' => [

'client' => 'predis',
'client' => env('REDIS_CLIENT', 'predis'),

'options' => [
'cluster' => env('REDIS_CLUSTER', 'predis'),
'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_',
],

'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
Expand Down
11 changes: 6 additions & 5 deletions config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
'block_for' => 0,
],

'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
'region' => 'us-east-1',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'your-queue-name'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],

'redis' => [
Expand Down
10 changes: 7 additions & 3 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
],

'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],

'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => env('SES_REGION', 'us-east-1'),
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],

'sparkpost' => [
Expand Down
6 changes: 4 additions & 2 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

use Faker\Generator as Faker;
use Framework\User;
use Faker\Generator as Faker;


/*
|--------------------------------------------------------------------------
Expand All @@ -13,7 +15,7 @@
|
*/

$factory->define(Framework\User::class, function (Faker $faker) {
$factory->define(User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
Expand Down
11 changes: 6 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="array"/>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>
<server name="MAIL_DRIVER" value="array"/>
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="array"/>
</php>
</phpunit>
22 changes: 10 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ If you prefer a video, watch the announcement of The Lucid Architecture at Larac
- [Microservices](#microservices)

## Installation
### 5.7

### 5.8
To start your project with Lucid right away, run the following command:

```
composer create-project lucid-arch/laravel my-project
```

This will give you a Laravel 5.7 installation with Lucid out-of-the-box. If you wish to download other versions of Laravel you may specify it as well:
This will give you a Laravel 5.8 installation with Lucid out-of-the-box. If you wish to download other versions of Laravel you may specify it as well:

##### 5.7
```
composer create-project lucid-arch/laravel=5.7.x my-project-5.7
```

> Literally 5.7.x and not 5.7.0 or 5.7.1...
##### 5.6
```
Expand All @@ -59,16 +67,6 @@ composer create-project lucid-arch/laravel=5.4.x my-project-5.4
composer create-project lucid-arch/laravel=5.3.x my-project-5.3
```

##### 5.2
```
composer create-project lucid-arch/laravel=5.2.x my-project-5.2
```

##### 5.1
```
composer create-project lucid-arch/laravel=5.1.x my-project-5.1
```

## Introduction

### Directory Structure
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en/passwords.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

'password' => 'Passwords must be at least six characters and match the confirmation.',
'password' => 'Passwords must be at least eight characters and match the confirmation.',
'reset' => 'Your password has been reset!',
'sent' => 'We have e-mailed your password reset link!',
'token' => 'This password reset token is invalid.',
Expand Down

0 comments on commit ac44668

Please sign in to comment.