Skip to content

Commit f84df0f

Browse files
author
jeremykenedy
committed
update from 5.1 to 5.2 complete
1 parent ddf851c commit f84df0f

32 files changed

+104
-46
lines changed

.env.example

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ APP_URL=http://localhost
77
DB_CONNECTION=mysql
88
DB_HOST=127.0.0.1
99
DB_PORT=3306
10-
DB_DATABASE=laravelAuthentication
10+
DB_DATABASE=laravelAuth
1111
DB_USERNAME=homestead
1212
DB_PASSWORD=secret
1313

14-
1514
CACHE_DRIVER=file
1615
SESSION_DRIVER=file
1716
QUEUE_DRIVER=sync
@@ -74,4 +73,4 @@ INSTAGRAM_REDIRECT_URI=http://laravel-authentication.local/social/handle/instagr
7473

7574
// 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
7675
# Google Maps API v3 Key - https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
77-
GOOGLEMAPS_API_KEY=YOURGOOGLEMAPSkeyHERE
76+
GOOGLEMAPS_API_KEY=YOURGOOGLEMAPSkeyHERE

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 jeremykenedy
3+
Copyright (c) 2015-2016 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

Lines changed: 78 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,27 @@
1-
### Laravel-Auth is a Complete Build of Laravel 5.1 with FULL Email and Social Authentication - COMPLETE WORKING Implementation. [![License](http://jeremykenedy.com/license-mit.svg)](https://packagist.org/packages/laravel/framework)
1+
### Laravel-Auth is a Complete Build of Laravel 5.2 with FULL Email and Social Authentication - COMPLETE WORKING Implementation. [![License](http://jeremykenedy.com/license-mit.svg)]()
22

3-
Laravel 5.1 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Super easy setup, can be done in 15 minutes. It will take longer to obtain your Facebook, Twitter, and Google Plus API Keys than it will to set this up.
3+
Laravel 5.2 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Super easy setup, can be done in 15 minutes. It will take longer to obtain your Facebook, Twitter, and Google Plus API Keys than it will to set this up.
44

5-
###### Updates:
6-
* Added eloquent editable user profile
7-
* Added IP Capture
8-
* Added Google Maps API v3 for User Location lookup
9-
* Added Google Maps API v3 for User Location Input Geocoding
10-
* Added Google Maps API v3 for User Location Map with Options
11-
* Added CRUD(Create, Read, Update, Delete) User Management
12-
13-
###### A [Laravel](http://laravel.com/) 5.1.x with minimal [Bootstrap](http://getbootstrap.com) 3.5.x project.
5+
###### A [Laravel](http://laravel.com/) 5.2.x with minimal [Bootstrap](http://getbootstrap.com) 3.5.x project.
146
| Laravel-Auth Features |
157
| :------------ |
16-
|Built on [Laravel](http://laravel.com/) 5.1|
8+
|Built on [Laravel](http://laravel.com/) 5.2|
179
|Uses [MySQL](https://github.com/mysql) Database|
18-
|Uses [Artisan](http://laravel.com/docs/5.1/artisan) to manage database migration, schema creations, and create/publish page controller templates|
10+
|Uses [Artisan](http://laravel.com/docs/5.2/artisan) to manage database migration, schema creations, and create/publish page controller templates|
1911
|Dependencies are managed with [COMPOSER](https://getcomposer.org/)|
2012
|Laravel Scaffolding **User** and **Administrator Authentication**.|
13+
|User Socialite Logins ready to go - See API list used below|
14+
|Google Maps API v3 for User Location lookup and Geocoding|
15+
|CRUD (Create, Read, Update, Delete) User Management|
16+
|Google Captcha Protection with Google API|
2117
|User Registration with email verification|
22-
|User roles implementation|
23-
|User Login with remember password|
24-
|User Password Reset|
25-
|User Socialite Logins ready to go - See API list below|
26-
|Google Captcha Protection|
27-
|Google Maps API v3 for User Location lookup|
28-
|Google Maps API v3 for Geocoding user address|
29-
|Google Maps API v3 for rendering user location map|
3018
|Capture IP to users table upon signup|
19+
|User Password Reset via Email Token|
20+
|User Login with remember password|
21+
|User roles implementation|
3122
|Eloquent user profiles|
32-
|CRUD (Create, Read, Update, Delete) User Management|
3323
|Custom 404 Page|
3424

35-
| Next up on development |
36-
| :------------ |
37-
|Add User Gravatar <- This is currently done in [laravel-admin](https://github.com/jeremykenedy/laravel-admin)|
38-
39-
|Add User Location Geocoding and Map|
40-
4125
### Quick Project Setup
4226
###### (Not including the dev environment)
4327
1. Run `sudo git clone https://github.com/jeremykenedy/laravel-auth.git laravel-authentication`
@@ -69,13 +53,22 @@ And thats it with the caveat of setting up and configuring your development envi
6953
* ```/auth/register```
7054
* ```/password/email```
7155

72-
7356
### Laravel-Authentication Alias Redirect URL's (routes)
7457
* ```/home```
58+
* ```/reset```
7559
* ```/login```
7660
* ```/logout```
7761
* ```/register```
78-
* ```/reset```
62+
63+
### Laravel-Authentication Profile Routes
64+
* ```/profile/{username}```
65+
* ```/profile/{username}/edit``` <- Editing in this view is limited to current user only.
66+
67+
### Laravel-Authentication Admin Routes
68+
* ```/users```
69+
* ```/users/create```
70+
* ```/users{user_id}```
71+
* ```/users{user_id}/edit```
7972

8073
### Get Socialite Login API Keys:
8174
* [Google Captcha API] (https://www.google.com/recaptcha/admin#list)
@@ -140,18 +133,26 @@ And thats it with the caveat of setting up and configuring your development envi
140133
Example `.env` file:
141134
```
142135
APP_ENV=local
143-
APP_DEBUG=true
144136
APP_KEY=SomeRandomString
137+
APP_DEBUG=true
138+
APP_LOG_LEVEL=debug
139+
APP_URL=http://localhost
145140

146-
DB_HOST=localhost
147-
DB_DATABASE=homestead
148-
DB_USERNAME=YOURDATABSEusernameHERE
149-
DB_PASSWORD=YOURDATABSEpasswordHERE
141+
DB_CONNECTION=mysql
142+
DB_HOST=127.0.0.1
143+
DB_PORT=3306
144+
DB_DATABASE=laravelAuth
145+
DB_USERNAME=homestead
146+
DB_PASSWORD=secret
150147

151148
CACHE_DRIVER=file
152149
SESSION_DRIVER=file
153150
QUEUE_DRIVER=sync
154151

152+
REDIS_HOST=127.0.0.1
153+
REDIS_PASSWORD=null
154+
REDIS_PORT=6379
155+
155156
MAIL_DRIVER=smtp
156157
MAIL_HOST=smtp.gmail.com
157158
MAIL_PORT=465
@@ -173,10 +174,40 @@ TW_ID=YOURTWITTERidHERE
173174
TW_SECRET=YOURTWITTERkeyHERE
174175
TW_REDIRECT=http://yourwebsiteURLhere.com/social/handle/twitter
175176

176-
# https://console.developers.google.com/
177+
# https://console.developers.google.com/ - NEED OAUTH CREDS
177178
GOOGLE_ID=YOURGOOGLEPLUSidHERE
178179
GOOGLE_SECRET=YOURGOOGLEPLUSsecretHERE
179180
GOOGLE_REDIRECT=http://yourwebsiteURLhere.com/social/handle/google
181+
182+
# https://github.com/settings/applications/new
183+
GITHUB_ID=YOURIDHERE
184+
GITHUB_SECRET=YOURSECRETHERE
185+
GITHUB_URL=https://larablog.io/social/handle/github
186+
187+
# https://developers.google.com/youtube/v3/getting-started
188+
YOUTUBE_KEY=YOURKEYHERE
189+
YOUTUBE_SECRET=YOURSECRETHERE
190+
YOUTUBE_REDIRECT_URI=https://larablog.io/social/handle/youtube
191+
192+
# http://www.twitch.tv/kraken/oauth2/clients/new
193+
TWITCH_KEY=YOURKEYHERE
194+
TWITCH_SECRET=YOURSECRETHERE
195+
TWITCH_REDIRECT_URI=http://laravel-authentication.local/social/handle/twitch
196+
197+
# https://instagram.com/developer/register/
198+
INSTAGRAM_KEY=YOURKEYHERE
199+
INSTAGRAM_SECRET=YOURSECRETHERE
200+
INSTAGRAM_REDIRECT_URI=http://laravel-authentication.local/social/handle/instagram
201+
202+
# https://basecamp.com/
203+
# https://github.com/basecamp/basecamp-classic-api
204+
37SIGNALS_KEY=YOURKEYHERE
205+
37SIGNALS_SECRET=YOURSECRETHERE
206+
37SIGNALS_REDIRECT_URI=http://laravel-authentication.local/social/handle/37signals
207+
208+
// 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
209+
# Google Maps API v3 Key - https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
210+
GOOGLEMAPS_API_KEY=YOURGOOGLEMAPSkeyHERE
180211
```
181212
182213
### File Structure of Common Used Files
@@ -345,14 +376,24 @@ laravel-auth/
345376
---
346377
347378
#### Laravel Developement Packages Used References
348-
* [Documentation and Usage](https://github.com/illuminate/html)
349379
* http://laravel.com/docs/5.1/authentication
350380
* http://laravel.com/docs/5.1/authorization
351381
* http://laravel.com/docs/5.1/routing
352382
* http://laravel.com/docs/5.0/schema
353383
354384
---
355385
386+
###### Updates:
387+
* Update from Laravel 5.1 to 5.2
388+
* Added eloquent editable user profile
389+
* Added IP Capture
390+
* Added Google Maps API v3 for User Location lookup
391+
* Added Google Maps API v3 for User Location Input Geocoding
392+
* Added Google Maps API v3 for User Location Map with Options
393+
* Added CRUD(Create, Read, Update, Delete) User Management
394+
395+
---
396+
356397
## [Laravel](http://laravel.com/) PHP Framework
357398
358399
[![Build Status](https://travis-ci.org/laravel/framework.png)](https://travis-ci.org/laravel/framework) [![Latest Stable Version](https://poser.pugx.org/laravel/framework/version.png)](https://packagist.org/packages/laravel/framework) [![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.png)](https://packagist.org/packages/laravel/framework) [![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
@@ -620,8 +661,6 @@ Alias to **hide all hidden files** on MAC OS X filesystem:
620661
alias hidefiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
621662
```
622663
623-
624-
625664
##### GIT CLI Quick alias functions
626665
###### Quick GIT PUSH
627666
```

app/Http/Controllers/UsersManagementController.php

100644100755
File mode changed.

app/Http/Middleware/Administrator.php

100644100755
File mode changed.

app/Http/Middleware/CheckCurrentUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Closure;
44
use Illuminate\Contracts\Auth\Guard;
55
use Illuminate\Http\RedirectResponse;
6-
use App\User;
6+
use App\Models\User;
77

88

99
class CheckCurrentUser

app/Http/Middleware/Editor.php

100644100755
File mode changed.

app/Logic/User/CaptureIp.php

100644100755
File mode changed.

app/Logic/macros.php

100644100755
File mode changed.

app/Providers/MacroServiceProvider.php

100644100755
File mode changed.

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
'Validator' => Illuminate\Support\Facades\Validator::class,
209209
'View' => Illuminate\Support\Facades\View::class,
210210
'Form' => Collective\Html\FormFacade::class,
211-
'Html' => Collective\Html\HtmlFacade::class,
211+
'HTML' => Collective\Html\HtmlFacade::class,
212212

213213
// ADD SOCIALITE
214214
'Socialite' => Laravel\Socialite\Facades\Socialite::class,

config/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
'providers' => [
6868
'users' => [
6969
'driver' => 'eloquent',
70-
'model' => App\User::class,
70+
'model' => App\Models\User::class,
7171
],
7272

7373
// 'users' => [

database/migrations/2015_12_25_010553_add_signup_ip_address_to_users_table.php

100644100755
File mode changed.

database/migrations/2015_12_25_011117_add_signup_confirmation_ip_address_to_users_table.php

100644100755
File mode changed.

database/migrations/2015_12_25_025231_add_signup_sm_ip_address_to_users_table.php

100644100755
File mode changed.

database/migrations/2016_04_19_045644_add_signup_admin_ip_address_to_users_table.php

100644100755
File mode changed.

license.svg

Lines changed: 20 additions & 0 deletions
Loading

resources/lang/en/forms.php

100644100755
File mode changed.

resources/lang/en/links-and-buttons.php

100644100755
File mode changed.

resources/lang/en/modals.php

100644100755
File mode changed.

resources/views/admin/create-user.blade.php

100644100755
File mode changed.

resources/views/admin/edit-user.blade.php

100644100755
File mode changed.

resources/views/admin/edit-users.blade.php

100644100755
File mode changed.

resources/views/admin/show-user.blade.php

100644100755
File mode changed.

resources/views/admin/show-users.blade.php

100644100755
File mode changed.

resources/views/modals/modal-delete.blade.php

100644100755
File mode changed.

resources/views/modals/modal-save.blade.php

100644100755
File mode changed.

resources/views/partials/form-status.blade.php

100644100755
File mode changed.

resources/views/scripts/delete-modal-script.blade.php

100644100755
File mode changed.

resources/views/scripts/gmaps-address-lookup-api3.blade.php

100644100755
File mode changed.

resources/views/scripts/google-maps-geocode-and-map.blade.php

100644100755
File mode changed.

resources/views/scripts/save-modal-script.blade.php

100644100755
File mode changed.

0 commit comments

Comments
 (0)