Skip to content

Commit 595f4a2

Browse files
committed
updated laravel version to v6
1 parent 516c584 commit 595f4a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+11815
-7031
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
trim_trailing_whitespace = false
1313

14-
[*.yml]
14+
[*.{yml,yaml}]
1515
indent_size = 2

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ MAIL_USERNAME=null
3030
MAIL_PASSWORD=null
3131
MAIL_ENCRYPTION=null
3232

33+
AWS_ACCESS_KEY_ID=
34+
AWS_SECRET_ACCESS_KEY=
35+
AWS_DEFAULT_REGION=us-east-1
36+
AWS_BUCKET=
37+
3338
PUSHER_APP_ID=
3439
PUSHER_APP_KEY=
3540
PUSHER_APP_SECRET=

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
/public/storage
44
/storage/*.key
55
/vendor
6-
/.idea
7-
/.vscode
8-
/.vagrant
6+
.env
7+
.env.backup
8+
.phpunit.result.cache
99
Homestead.json
1010
Homestead.yaml
1111
npm-debug.log
1212
yarn-error.log
13-
.env
14-
.phpunit.result.cache
13+
.idea
14+
.vscode

.styleci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
php:
2+
preset: laravel
3+
disabled:
4+
- unused_use
5+
finder:
6+
not-name:
7+
- index.php
8+
- server.php
9+
js:
10+
finder:
11+
not-name:
12+
- webpack.mix.js
13+
css: true

readme.md renamed to README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center"><a href="https://laravel.com" target="_blank"><img width="150"src="https://laravel.com/laravel.png"></a></p>
1+
<p align="center"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></p>
22

33
<p align="center">
44
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>

app/Book.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
class Book extends Model
88
{
9-
/**
9+
/**
1010
* The attributes that are mass assignable.
1111
*
1212
* @var array
1313
*/
14-
15-
protected $fillable = ['author', 'description'];
14+
15+
protected $fillable = ['user_id', 'author', 'description'];
1616
}

app/Exceptions/Handler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class Handler extends ExceptionHandler
3232
*
3333
* @param \Exception $exception
3434
* @return void
35+
* @throws Exception
3536
*/
3637
public function report(Exception $exception)
3738
{
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Auth;
4+
5+
use App\Http\Controllers\Controller;
6+
use Illuminate\Foundation\Auth\ConfirmsPasswords;
7+
8+
class ConfirmPasswordController extends Controller
9+
{
10+
/*
11+
|--------------------------------------------------------------------------
12+
| Confirm Password Controller
13+
|--------------------------------------------------------------------------
14+
|
15+
| This controller is responsible for handling password confirmations and
16+
| uses a simple trait to include the behavior. You're free to explore
17+
| this trait and override any functions that require customization.
18+
|
19+
*/
20+
21+
use ConfirmsPasswords;
22+
23+
/**
24+
* Where to redirect users when the intended url fails.
25+
*
26+
* @var string
27+
*/
28+
protected $redirectTo = '/home';
29+
30+
/**
31+
* Create a new controller instance.
32+
*
33+
* @return void
34+
*/
35+
public function __construct()
36+
{
37+
$this->middleware('auth');
38+
}
39+
}

app/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,4 @@ class ForgotPasswordController extends Controller
1919
*/
2020

2121
use SendsPasswordResetEmails;
22-
23-
/**
24-
* Create a new controller instance.
25-
*
26-
* @return void
27-
*/
28-
public function __construct()
29-
{
30-
$this->middleware('guest');
31-
}
3222
}

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace App\Http\Controllers\Auth;
44

5-
use App\User;
65
use App\Http\Controllers\Controller;
6+
use App\User;
7+
use Illuminate\Foundation\Auth\RegistersUsers;
78
use Illuminate\Support\Facades\Hash;
89
use Illuminate\Support\Facades\Validator;
9-
use Illuminate\Foundation\Auth\RegistersUsers;
1010

1111
class RegisterController extends Controller
1212
{
@@ -49,9 +49,9 @@ public function __construct()
4949
protected function validator(array $data)
5050
{
5151
return Validator::make($data, [
52-
'name' => 'required|string|max:255',
53-
'email' => 'required|string|email|max:255|unique:users',
54-
'password' => 'required|string|min:6|confirmed',
52+
'name' => ['required', 'string', 'max:255'],
53+
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
54+
'password' => ['required', 'string', 'min:8', 'confirmed'],
5555
]);
5656
}
5757

0 commit comments

Comments
 (0)