Skip to content

Commit 3e0e39f

Browse files
authored
Merge pull request #348 from jeremykenedy/laravel7
Laravel7
2 parents 71a2307 + 994b35c commit 3e0e39f

File tree

92 files changed

+1718
-543
lines changed

Some content is hidden

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

92 files changed

+1718
-543
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.env.example

+28-24
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
55
APP_URL=http://localhost
6-
APP_PROJECT_VERSION=6
6+
APP_PROJECT_VERSION=7
77

88
LOG_CHANNEL=stack
99

1010
DB_CONNECTION=mysql
1111
DB_HOST=127.0.0.1
1212
DB_PORT=3306
13-
DB_DATABASE=laravelAuth
14-
DB_USERNAME=homestead
15-
DB_PASSWORD=secret
13+
DB_DATABASE=laravel
14+
DB_USERNAME=root
15+
DB_PASSWORD=
1616

1717
BROADCAST_DRIVER=pusher
1818
CACHE_DRIVER=file
@@ -24,23 +24,27 @@ REDIS_HOST=127.0.0.1
2424
REDIS_PASSWORD=null
2525
REDIS_PORT=6379
2626

27-
MAIL_DRIVER=smtp
27+
MAIL_MAILER=smtp
2828
MAIL_HOST=smtp.mailtrap.io
2929
MAIL_PORT=2525
3030
MAIL_USERNAME=null
3131
MAIL_PASSWORD=null
3232
MAIL_ENCRYPTION=null
33-
34-
MAIL_FROM_ADDRESS=
35-
MAIL_FROM_NAME=''
33+
MAIL_FROM_ADDRESS=null
34+
MAIL_FROM_NAME="${APP_NAME}"
3635

3736
EMAIL_EXCEPTION_ENABLED=false
38-
EMAIL_EXCEPTION_FROM=[email protected]
37+
EMAIL_EXCEPTION_FROM="${MAIL_FROM_ADDRESS}"
3938
4039
EMAIL_EXCEPTION_CC=''
4140
EMAIL_EXCEPTION_BCC=''
4241
EMAIL_EXCEPTION_SUBJECT=''
4342

43+
AWS_ACCESS_KEY_ID=
44+
AWS_SECRET_ACCESS_KEY=
45+
AWS_DEFAULT_REGION=us-east-1
46+
AWS_BUCKET=
47+
4448
PUSHER_APP_ID=
4549
PUSHER_APP_KEY=
4650
PUSHER_APP_SECRET=
@@ -64,7 +68,7 @@ LARAVEL_2STEP_ENABLED=false
6468
LARAVEL_2STEP_DATABASE_CONNECTION=mysql
6569
LARAVEL_2STEP_DATABASE_TABLE=laravel2step
6670
LARAVEL_2STEP_USER_MODEL=App\User
67-
LARAVEL_2STEP_EMAIL_FROM="[email protected]"
71+
LARAVEL_2STEP_EMAIL_FROM=
6872
LARAVEL_2STEP_EMAIL_FROM_NAME="Laravel 2 Step Verification"
6973
LARAVEL_2STEP_EMAIL_SUBJECT='Laravel 2 Step Verification'
7074
LARAVEL_2STEP_EXCEEDED_COUNT=3
@@ -143,53 +147,53 @@ ROLES_GUI_FLASH_MESSAGES_ENABLED=false
143147
ROLES_GUI_BLADE_PLACEMENT_CSS=template_linked_css
144148
ROLES_GUI_BLADE_PLACEMENT_JS=footer_scripts
145149

146-
// NOTE: YOU CAN REMOVE THE KEY CALL IN app.blade.php IF YOU GET A POP UP AND DO NOT WANT TO SETUP A KEY FOR DEV
150+
# NOTE: YOU CAN REMOVE THE KEY CALL IN app.blade.php IF YOU GET A POP UP AND DO NOT WANT TO SETUP A KEY FOR DEV
147151
# Google Maps API v3 Key - https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
148152
GOOGLEMAPS_API_STATUS=true
149153
GOOGLEMAPS_API_KEY=YOURGOOGLEMAPSkeyHERE
150154

151-
# https://console.developers.google.com/ - NEED OAUTH CREDS
152-
GOOGLE_ID=YOURGOOGLEPLUSidHERE
153-
GOOGLE_SECRET=YOURGOOGLEPLUSsecretHERE
154-
GOOGLE_REDIRECT=http://yourwebsiteURLhere.com/social/handle/google
155-
156155
# https://www.google.com/recaptcha/admin#list
157156
ENABLE_RECAPTCHA=true
158157
RE_CAP_SITE=YOURGOOGLECAPTCHAsitekeyHERE
159158
RE_CAP_SECRET=YOURGOOGLECAPTCHAsecretHERE
160159

160+
# https://console.developers.google.com/ - NEED OAUTH CREDS
161+
GOOGLE_ID=YOURGOOGLEPLUSidHERE
162+
GOOGLE_SECRET=YOURGOOGLEPLUSsecretHERE
163+
GOOGLE_REDIRECT=https://YOURWEBURLHERE.COM/social/handle/google
164+
161165
# https://developers.facebook.com/
162166
FB_ID=YOURFACEBOOKidHERE
163167
FB_SECRET=YOURFACEBOOKsecretHERE
164-
FB_REDIRECT=http://yourwebsiteURLhere.com/social/handle/facebook
168+
FB_REDIRECT=https://YOURWEBURLHERE.COM/social/handle/facebook
165169

166170
# https://apps.twitter.com/
167171
TW_ID=YOURTWITTERidHERE
168172
TW_SECRET=YOURTWITTERkeyHERE
169-
TW_REDIRECT=http://yourwebsiteURLhere.com/social/handle/twitter
173+
TW_REDIRECT=https://YOURWEBURLHERE.COM/social/handle/twitter
170174

171175
# https://github.com/settings/applications/new
172176
GITHUB_ID=YOURIDHERE
173177
GITHUB_SECRET=YOURSECRETHERE
174-
GITHUB_URL=https://larablog.io/social/handle/github
178+
GITHUB_URL=https://YOURWEBURLHERE.COM/social/handle/github
175179

176180
# https://developers.google.com/youtube/v3/getting-started
177181
YOUTUBE_KEY=YOURKEYHERE
178182
YOUTUBE_SECRET=YOURSECRETHERE
179-
YOUTUBE_REDIRECT_URI=https://larablog.io/social/handle/youtube
183+
YOUTUBE_REDIRECT_URI=https://YOURWEBURLHERE.COM/social/handle/youtube
180184

181-
# http://www.twitch.tv/kraken/oauth2/clients/new
185+
# https://dev.twitch.tv/docs/authentication/
182186
TWITCH_KEY=YOURKEYHERE
183187
TWITCH_SECRET=YOURSECRETHERE
184-
TWITCH_REDIRECT_URI=http://laravel-authentication.local/social/handle/twitch
188+
TWITCH_REDIRECT_URI=https://YOURWEBURLHERE.COM/social/handle/twitch
185189

186190
# https://instagram.com/developer/register/
187191
INSTAGRAM_KEY=YOURKEYHERE
188192
INSTAGRAM_SECRET=YOURSECRETHERE
189-
INSTAGRAM_REDIRECT_URI=http://laravel-authentication.local/social/handle/instagram
193+
INSTAGRAM_REDIRECT_URI=https://YOURWEBURLHERE.COM/social/handle/instagram
190194

191195
# https://basecamp.com/
192196
# https://github.com/basecamp/basecamp-classic-api
193197
37SIGNALS_KEY=YOURKEYHERE
194198
37SIGNALS_SECRET=YOURSECRETHERE
195-
37SIGNALS_REDIRECT_URI=http://laravel-authentication.local/social/handle/37signals
199+
37SIGNALS_REDIRECT_URI=https://YOURWEBURLHERE.COM/social/handle/37signals

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
* text=auto
22
*.css linguist-vendored
33
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ yarn.lock
4444
/storage/logs
4545
/storage/users
4646
packages/
47+
.phpunit.result.cache
48+
.env.backup
4749

4850
# Debug Files
4951
npm-debug.log

.styleci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
preset: laravel
2+
3+
enabled:
4+
- strict
5+
- align_double_arrow
6+
7+
disabled:
8+
- unused_use
9+
10+
finder:
11+
not-name:
12+
- index.php
13+
- server.php
14+
- CheckIsUserActivated.php
15+
- SocialController.php

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
php:
4-
- 7.2
4+
- 7.2.5
55
- 7.3
66

77
services:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-2019 jeremykenedy
3+
Copyright (c) 2017-2020 jeremykenedy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+32-26
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Laravel-Auth
1+
## Laravel Auth
22

3-
#### Laravel-Auth is a Complete Build of Laravel 6 with Email Registration Verification, Social Authentication, User Roles and Permissions, User Profiles, and Admin restricted user management system. Built on Bootstrap 4.
3+
#### Laravel Auth is a Complete Build of Laravel 7 with Email Registration Verification, Social Authentication, User Roles and Permissions, User Profiles, and Admin restricted user management system. Built on Bootstrap 4.
44
[![Build Status](https://travis-ci.org/jeremykenedy/laravel-auth.svg?branch=master)](https://travis-ci.org/jeremykenedy/laravel-auth)
55
[![StyleCI](https://styleci.io/repos/44714043/shield?branch=master)](https://styleci.io/repos/44714043)
66
[![Build Status](https://scrutinizer-ci.com/g/jeremykenedy/laravel-auth/badges/build.png?b=master)](https://scrutinizer-ci.com/g/jeremykenedy/laravel-auth/build-status/master)
@@ -51,29 +51,29 @@
5151
- [Contributors](#Contributors)
5252

5353
### About
54-
Laravel 6.0 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses official [Bootstrap 4](https://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Project can be stood up in minutes.
54+
Laravel 7 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses official [Bootstrap 4](https://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Project can be stood up in minutes.
5555

5656
### Features
57-
#### A [Laravel](https://laravel.com/) 6.0.x with minimal [Bootstrap](https://getbootstrap.com) 4.0.x project.
57+
#### A [Laravel](https://laravel.com/) 7.x with [Bootstrap](https://getbootstrap.com) 4.x project.
5858

59-
| Laravel-Auth Features |
59+
| Laravel Auth Features |
6060
| :------------ |
61-
|Built on [Laravel](https://laravel.com/) 6.0|
61+
|Built on [Laravel](https://laravel.com/) 7.0|
6262
|Built on [Bootstrap](https://getbootstrap.com/) 4|
6363
|Uses [MySQL](https://github.com/mysql) Database (can be changed)|
64-
|Uses [Artisan](https://laravel.com/docs/6.x/artisan) to manage database migration, schema creations, and create/publish page controller templates|
64+
|Uses [Artisan](https://laravel.com/docs/master/artisan) to manage database migration, schema creations, and create/publish page controller templates|
6565
|Dependencies are managed with [COMPOSER](https://getcomposer.org/)|
6666
|Laravel Scaffolding **User** and **Administrator Authentication**.|
6767
|User [Socialite Logins](https://github.com/laravel/socialite) ready to go - See API list used below|
6868
|[Google Maps API v3](https://developers.google.com/maps/documentation/javascript/) for User Location lookup and Geocoding|
6969
|CRUD (Create, Read, Update, Delete) Themes Management|
7070
|CRUD (Create, Read, Update, Delete) User Management|
71-
|Robust [Laravel Logging](https://laravel.com/docs/6.x/errors#logging) with admin UI using MonoLog|
71+
|Robust [Laravel Logging](https://laravel.com/docs/master/errors#logging) with admin UI using MonoLog|
7272
|Google [reCaptcha Protection with Google API](https://developers.google.com/recaptcha/)|
7373
|User Registration with email verification|
74-
|Makes use of Laravel [Mix](https://laravel.com/docs/6.x/mix) to compile assets|
75-
|Makes use of [Language Localization Files](https://laravel.com/docs/6.x/localization)|
76-
|Active Nav states using [Laravel Requests](https://laravel.com/docs/6.x/requests)|
74+
|Makes use of Laravel [Mix](https://laravel.com/docs/master/mix) to compile assets|
75+
|Makes use of [Language Localization Files](https://laravel.com/docs/master/localization)|
76+
|Active Nav states using [Laravel Requests](https://laravel.com/docs/master/requests)|
7777
|Restrict User Email Activation Attempts|
7878
|Capture IP to users table upon signup|
7979
|Uses [Laravel Debugger](https://github.com/barryvdh/laravel-debugbar) for development|
@@ -85,7 +85,7 @@ Laravel 6.0 with user authentication, registration with email confirmation, soci
8585
|User Login with remember password|
8686
|User [Roles/ACL Implementation](https://github.com/jeremykenedy/laravel-roles)|
8787
|Roles and Permissions GUI|
88-
|Makes use of [Laravel's Soft Delete Structure](https://laravel.com/docs/6.x/eloquent#soft-deleting)|
88+
|Makes use of [Laravel's Soft Delete Structure](https://laravel.com/docs/master/eloquent#soft-deleting)|
8989
|Soft Deleted Users Management System|
9090
|Permanently Delete Soft Deleted Users|
9191
|User Delete Account with Goodbye email|
@@ -133,10 +133,15 @@ php artisan vendor:publish --tag=laravel2step
133133
2. From the projects root folder run `yarn run dev` or `yarn run production`
134134
* You can watch assets with `yarn run watch`
135135

136+
##### Using NPM:
137+
1. From the projects root folder run `npm install`
138+
2. From the projects root folder run `npm run dev` or `npm run production`
139+
* You can watch assets with `npm run watch`
140+
136141
#### Optionally Build Cache
137142
1. From the projects root folder run `php artisan config:cache`
138143

139-
###### And thats it with the caveat of setting up and configuring your development environment. I recommend [Laravel Homestead](https://laravel.com/docs/6.x/homestead)
144+
###### And thats it with the caveat of setting up and configuring your development environment. I recommend [Laravel Homestead](https://laravel.com/docs/master/homestead)
140145

141146
### Seeds
142147
##### Seeded Roles
@@ -551,18 +556,19 @@ INSTAGRAM_REDIRECT_URI=http://laravel-authentication.local/social/handle/instagr
551556
```
552557

553558
#### Laravel Developement Packages Used References
554-
* https://laravel.com/docs/6.x/authentication
555-
* https://laravel.com/docs/6.x/authorization
556-
* https://laravel.com/docs/6.x/routing
557-
* https://laravel.com/docs/6.x/migrations
558-
* https://laravel.com/docs/6.x/queries
559-
* https://laravel.com/docs/6.x/views
560-
* https://laravel.com/docs/6.x/eloquent
561-
* https://laravel.com/docs/6.x/eloquent-relationships
562-
* https://laravel.com/docs/6.x/requests
563-
* https://laravel.com/docs/6.x/errors
559+
* https://laravel.com/docs/master/authentication
560+
* https://laravel.com/docs/master/authorization
561+
* https://laravel.com/docs/master/routing
562+
* https://laravel.com/docs/master/migrations
563+
* https://laravel.com/docs/master/queries
564+
* https://laravel.com/docs/master/views
565+
* https://laravel.com/docs/master/eloquent
566+
* https://laravel.com/docs/master/eloquent-relationships
567+
* https://laravel.com/docs/master/requests
568+
* https://laravel.com/docs/master/errors
564569

565570
###### Updates:
571+
* Update to Laravel 7.0 [See changes in this Commit](https://github.com/jeremykenedy/laravel-auth/commit/038a23f516efc08cd02c4582249234f6f6432c46)
566572
* Update to Laravel 6.0
567573
* Update to Laravel 5.8
568574
* Added [Laravel Blocker Package](https://github.com/jeremykenedy/laravel-blocker)
@@ -575,16 +581,16 @@ INSTAGRAM_REDIRECT_URI=http://laravel-authentication.local/social/handle/instagr
575581
* Update to Laravel 5.5
576582
* Added User Delete with Goodbye email
577583
* Added User Restore Deleted Account from email with secure token
578-
* Added [Soft Deletes](https://laravel.com/docs/6.x/eloquent#soft-deleting) and Soft Deletes Management panel
584+
* Added [Soft Deletes](https://laravel.com/docs/master/eloquent#soft-deleting) and Soft Deletes Management panel
579585
* Added User Account Settings to Profile Edit
580586
* Added User Change Password to Profile Edit
581587
* Added User Delete Account to Profile Edit
582588
* Added [Password Strength Meter](https://github.com/elboletaire/password-strength-meter)
583589
* Added [hideShowPassword](https://github.com/cloudfour/hideShowPassword)
584590
* Added Admin Routing Details
585591
* Admin PHP Information
586-
* Added Robust [Laravel Logging](https://laravel.com/docs/6.x/errors#logging) with admin UI using MonoLog
587-
* Added Active Nav states using [Laravel Requests](https://laravel.com/docs/6.x/requests)
592+
* Added Robust [Laravel Logging](https://laravel.com/docs/master/errors#logging) with admin UI using MonoLog
593+
* Added Active Nav states using [Laravel Requests](https://laravel.com/docs/master/requests)
588594
* Added [Laravel Debugger](https://github.com/barryvdh/laravel-debugbar) with Service Provider to manage status in `.env` file.
589595
* Updated Capture IP not found IP address
590596
* Added User Avatar Image AJAX Upload with [Dropzone.js](http://www.dropzonejs.com/#configuration)

app/Console/Kernel.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ class Kernel extends ConsoleKernel
2525
*/
2626
protected function schedule(Schedule $schedule)
2727
{
28-
// $schedule->command('inspire')
29-
// ->hourly();
28+
// $schedule->command('inspire')->hourly();
3029

31-
$schedule->command('activations:clean')
32-
->daily();
30+
$schedule->command('activations:clean')->daily();
3331
}
3432

3533
/**

0 commit comments

Comments
 (0)