File tree Expand file tree Collapse file tree 16 files changed +52
-32
lines changed
app/Http/Controllers/Auth Expand file tree Collapse file tree 16 files changed +52
-32
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ MAIL_HOST=mailtrap.io
16
16
MAIL_PORT = 2525
17
17
MAIL_USERNAME = null
18
18
MAIL_PASSWORD = null
19
- MAIL_ENCRYPTION = null
19
+ MAIL_ENCRYPTION = null
Original file line number Diff line number Diff line change 1
1
/vendor
2
2
/node_modules
3
+ Homestead.yaml
4
+ Homestead.json
3
5
.env
Original file line number Diff line number Diff line change 5
5
use App \User ;
6
6
use Validator ;
7
7
use App \Http \Controllers \Controller ;
8
+ use Illuminate \Foundation \Auth \ThrottlesLogins ;
8
9
use Illuminate \Foundation \Auth \AuthenticatesAndRegistersUsers ;
9
10
10
11
class AuthController extends Controller
@@ -20,7 +21,7 @@ class AuthController extends Controller
20
21
|
21
22
*/
22
23
23
- use AuthenticatesAndRegistersUsers;
24
+ use AuthenticatesAndRegistersUsers, ThrottlesLogins ;
24
25
25
26
/**
26
27
* Create a new authentication controller instance.
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
'mailgun ' => [
18
- 'domain ' => '' ,
19
- 'secret ' => '' ,
18
+ 'domain ' => env ( ' MAILGUN_DOMAIN ' ) ,
19
+ 'secret ' => env ( ' MAILGUN_SECRET ' ) ,
20
20
],
21
21
22
22
'mandrill ' => [
23
- 'secret ' => '' ,
23
+ 'secret ' => env ( ' MANDRILL_SECRET ' ) ,
24
24
],
25
25
26
26
'ses ' => [
27
- 'key ' => '' ,
28
- 'secret ' => '' ,
27
+ 'key ' => env ( ' SES_KEY ' ) ,
28
+ 'secret ' => env ( ' SES_SECRET ' ) ,
29
29
'region ' => 'us-east-1 ' ,
30
30
],
31
31
32
32
'stripe ' => [
33
33
'model ' => App \User::class,
34
- 'key ' => '' ,
35
- 'secret ' => '' ,
34
+ 'key ' => env ( ' STRIPE_KEY ' ) ,
35
+ 'secret ' => env ( ' STRIPE_SECRET ' ) ,
36
36
],
37
37
38
38
];
Original file line number Diff line number Diff line change 11
11
|
12
12
*/
13
13
14
- $ factory ->define (App \User::class, function ($ faker ) {
14
+ $ factory ->define (App \User::class, function (Faker \ Generator $ faker ) {
15
15
return [
16
16
'name ' => $ faker ->name ,
17
17
'email ' => $ faker ->email ,
18
- 'password ' => str_random (10 ),
18
+ 'password ' => bcrypt ( str_random (10 ) ),
19
19
'remember_token ' => str_random (10 ),
20
20
];
21
21
});
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function run()
14
14
{
15
15
Model::unguard ();
16
16
17
- // $this->call(' UserTableSeeder' );
17
+ // $this->call(UserTableSeeder::class );
18
18
19
19
Model::reguard ();
20
20
}
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ var elixir = require('laravel-elixir');
6
6
|--------------------------------------------------------------------------
7
7
|
8
8
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
9
- | for your Laravel application. By default, we are compiling the Less
9
+ | for your Laravel application. By default, we are compiling the Sass
10
10
| file for our application, as well as publishing vendor resources.
11
11
|
12
12
*/
13
13
14
14
elixir ( function ( mix ) {
15
- mix . less ( 'app.less ' ) ;
15
+ mix . sass ( 'app.scss ' ) ;
16
16
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"devDependencies" : {
4
- "gulp" : " ^3.8.8" ,
5
- "laravel-elixir" : " ^2.0.0"
4
+ "gulp" : " ^3.8.8"
5
+ },
6
+ "dependencies" : {
7
+ "laravel-elixir" : " ^3.0.0" ,
8
+ "bootstrap-sass" : " ^3.0.0"
6
9
}
7
10
}
Original file line number Diff line number Diff line change 5
5
6
6
RewriteEngine On
7
7
8
- # Redirect Trailing Slashes...
8
+ # Redirect Trailing Slashes If Not A Folder...
9
+ RewriteCond %{REQUEST_FILENAME} !-d
9
10
RewriteRule ^(.*)/$ /$1 [L,R=301 ]
10
11
11
12
# Handle Front Controller...
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
2
+
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ return [
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Authentication Language Lines
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | The following language lines are used during authentication for various
11
+ | messages that we need to display to the user. You are free to modify
12
+ | these language lines according to your application's requirements.
13
+ |
14
+ */
15
+
16
+ 'failed ' => 'These credentials do not match our records. ' ,
17
+ 'throttle ' => 'Too many login attempts. Please try again in :seconds seconds. ' ,
18
+
19
+ ];
Original file line number Diff line number Diff line change 14
14
*/
15
15
16
16
'password ' => 'Passwords must be at least six characters and match the confirmation. ' ,
17
- 'user ' => "We can't find a user with that e-mail address. " ,
18
- 'token ' => 'This password reset token is invalid. ' ,
19
- 'sent ' => 'We have e-mailed your password reset link! ' ,
20
17
'reset ' => 'Your password has been reset! ' ,
18
+ 'sent ' => 'We have e-mailed your password reset link! ' ,
19
+ 'token ' => 'This password reset token is invalid. ' ,
20
+ 'user ' => "We can't find a user with that e-mail address. " ,
21
21
22
22
];
Original file line number Diff line number Diff line change 35
35
'digits ' => 'The :attribute must be :digits digits. ' ,
36
36
'digits_between ' => 'The :attribute must be between :min and :max digits. ' ,
37
37
'email ' => 'The :attribute must be a valid email address. ' ,
38
- 'filled ' => 'The :attribute field is required. ' ,
39
38
'exists ' => 'The selected :attribute is invalid. ' ,
39
+ 'filled ' => 'The :attribute field is required. ' ,
40
40
'image ' => 'The :attribute must be an image. ' ,
41
41
'in ' => 'The selected :attribute is invalid. ' ,
42
42
'integer ' => 'The :attribute must be an integer. ' ,
70
70
'string ' => 'The :attribute must be :size characters. ' ,
71
71
'array ' => 'The :attribute must contain :size items. ' ,
72
72
],
73
- 'timezone ' => 'The :attribute must be a valid zone. ' ,
74
73
'string ' => 'The :attribute must be a string. ' ,
74
+ 'timezone ' => 'The :attribute must be a valid zone. ' ,
75
75
'unique ' => 'The :attribute has already been taken. ' ,
76
76
'url ' => 'The :attribute format is invalid. ' ,
77
77
Original file line number Diff line number Diff line change 3
3
<head >
4
4
<title >Be right back.</title >
5
5
6
- <link href =' //fonts.googleapis.com/css?family=Lato:100' rel =' stylesheet' type =' text/css' >
6
+ <link href =" //fonts.googleapis.com/css?family=Lato:100" rel =" stylesheet" type =" text/css" >
7
7
8
8
<style >
9
9
html , body {
Original file line number Diff line number Diff line change 3
3
<head >
4
4
<title >Laravel</title >
5
5
6
- <link href =' //fonts.googleapis.com/css?family=Lato:100' rel =' stylesheet' type =' text/css' >
6
+ <link href =" //fonts.googleapis.com/css?family=Lato:100" rel =" stylesheet" type =" text/css" >
7
7
8
8
<style >
9
9
html , body {
14
14
margin : 0 ;
15
15
padding : 0 ;
16
16
width : 100% ;
17
- color : #B0BEC5 ;
18
17
display : table ;
19
18
font-weight : 100 ;
20
19
font-family : ' Lato' ;
33
32
34
33
.title {
35
34
font-size : 96px ;
36
- margin-bottom : 40px ;
37
- }
38
-
39
- .quote {
40
- font-size : 24px ;
41
35
}
42
36
</style >
43
37
</head >
44
38
<body >
45
39
<div class =" container" >
46
40
<div class =" content" >
47
41
<div class =" title" >Laravel 5</div >
48
- <div class =" quote" >{{ Inspiring:: quote () } } </div >
49
42
</div >
50
43
</div >
51
44
</body >
You can’t perform that action at this time.
0 commit comments