Skip to content

Commit 431cb3a

Browse files
committed
login init
1 parent a51c8cc commit 431cb3a

Some content is hidden

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

58 files changed

+2739
-1054
lines changed

.editorconfig

-15
This file was deleted.

.env.example

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5+
APP_LOG_LEVEL=debug
56
APP_URL=http://localhost
67

7-
LOG_CHANNEL=stack
8-
98
DB_CONNECTION=mysql
109
DB_HOST=127.0.0.1
1110
DB_PORT=3306
@@ -15,9 +14,9 @@ DB_PASSWORD=secret
1514

1615
BROADCAST_DRIVER=log
1716
CACHE_DRIVER=file
18-
QUEUE_CONNECTION=sync
1917
SESSION_DRIVER=file
2018
SESSION_LIFETIME=120
19+
QUEUE_DRIVER=sync
2120

2221
REDIS_HOST=127.0.0.1
2322
REDIS_PASSWORD=null
@@ -34,6 +33,3 @@ PUSHER_APP_ID=
3433
PUSHER_APP_KEY=
3534
PUSHER_APP_SECRET=
3635
PUSHER_APP_CLUSTER=mt1
37-
38-
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
39-
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
/storage/*.key
55
/vendor
66
/.idea
7-
/.vscode
87
/.vagrant
98
Homestead.json
109
Homestead.yaml
1110
npm-debug.log
1211
yarn-error.log
1312
.env
14-
.phpunit.result.cache

README.md

+58-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,58 @@
1-
# F-Kyc
1+
<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>
2+
3+
<p align="center">
4+
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
5+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
6+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
7+
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
8+
</p>
9+
10+
## About Laravel
11+
12+
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
13+
14+
- [Simple, fast routing engine](https://laravel.com/docs/routing).
15+
- [Powerful dependency injection container](https://laravel.com/docs/container).
16+
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
17+
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
18+
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
19+
- [Robust background job processing](https://laravel.com/docs/queues).
20+
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
21+
22+
Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
23+
24+
## Learning Laravel
25+
26+
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
27+
28+
If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
29+
30+
## Laravel Sponsors
31+
32+
We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):
33+
34+
- **[Vehikl](https://vehikl.com/)**
35+
- **[Tighten Co.](https://tighten.co)**
36+
- **[British Software Development](https://www.britishsoftware.co)**
37+
- [Fragrantica](https://www.fragrantica.com)
38+
- [SOFTonSOFA](https://softonsofa.com/)
39+
- [User10](https://user10.com)
40+
- [Soumettre.fr](https://soumettre.fr/)
41+
- [CodeBrisk](https://codebrisk.com)
42+
- [1Forge](https://1forge.com)
43+
- [TECPRESSO](https://tecpresso.co.jp/)
44+
- [Pulse Storm](http://www.pulsestorm.net/)
45+
- [Runtime Converter](http://runtimeconverter.com/)
46+
- [WebL'Agence](https://weblagence.com/)
47+
48+
## Contributing
49+
50+
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
51+
52+
## Security Vulnerabilities
53+
54+
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.
55+
56+
## License
57+
58+
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

app/Exceptions/Handler.php

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class Handler extends ExceptionHandler
2929
/**
3030
* Report or log an exception.
3131
*
32+
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
33+
*
3234
* @param \Exception $exception
3335
* @return void
3436
*/

app/Http/Controllers/Auth/RegisterController.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\User;
66
use App\Http\Controllers\Controller;
7-
use Illuminate\Support\Facades\Hash;
87
use Illuminate\Support\Facades\Validator;
98
use Illuminate\Foundation\Auth\RegistersUsers;
109

@@ -66,7 +65,7 @@ protected function create(array $data)
6665
return User::create([
6766
'name' => $data['name'],
6867
'email' => $data['email'],
69-
'password' => Hash::make($data['password']),
68+
'password' => bcrypt($data['password']),
7069
]);
7170
}
7271
}

app/Http/Kernel.php

+2-21
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Kernel extends HttpKernel
1414
* @var array
1515
*/
1616
protected $middleware = [
17-
\App\Http\Middleware\CheckForMaintenanceMode::class,
17+
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
1818
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
1919
\App\Http\Middleware\TrimStrings::class,
2020
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
@@ -51,30 +51,11 @@ class Kernel extends HttpKernel
5151
* @var array
5252
*/
5353
protected $routeMiddleware = [
54-
'auth' => \App\Http\Middleware\Authenticate::class,
54+
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
5555
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
5656
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
57-
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
5857
'can' => \Illuminate\Auth\Middleware\Authorize::class,
5958
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
60-
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
6159
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
62-
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
63-
];
64-
65-
/**
66-
* The priority-sorted list of middleware.
67-
*
68-
* This forces the listed middleware to always be in the given order.
69-
*
70-
* @var array
71-
*/
72-
protected $middlewarePriority = [
73-
\Illuminate\Session\Middleware\StartSession::class,
74-
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
75-
\App\Http\Middleware\Authenticate::class,
76-
\Illuminate\Session\Middleware\AuthenticateSession::class,
77-
\Illuminate\Routing\Middleware\SubstituteBindings::class,
78-
\Illuminate\Auth\Middleware\Authorize::class,
7960
];
8061
}

app/Http/Middleware/TrustProxies.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ class TrustProxies extends Middleware
1515
protected $proxies;
1616

1717
/**
18-
* The headers that should be used to detect proxies.
18+
* The current proxy header mappings.
1919
*
20-
* @var int
20+
* @var array
2121
*/
22-
protected $headers = Request::HEADER_X_FORWARDED_ALL;
22+
protected $headers = [
23+
Request::HEADER_FORWARDED => 'FORWARDED',
24+
Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR',
25+
Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST',
26+
Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT',
27+
Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO',
28+
];
2329
}

app/Http/Middleware/VerifyCsrfToken.php

-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66

77
class VerifyCsrfToken extends Middleware
88
{
9-
/**
10-
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
11-
*
12-
* @var bool
13-
*/
14-
protected $addHttpCookie = true;
15-
169
/**
1710
* The URIs that should be excluded from CSRF verification.
1811
*

app/Providers/EventServiceProvider.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\Facades\Event;
6-
use Illuminate\Auth\Events\Registered;
7-
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
86
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
97

108
class EventServiceProvider extends ServiceProvider
@@ -15,8 +13,8 @@ class EventServiceProvider extends ServiceProvider
1513
* @var array
1614
*/
1715
protected $listen = [
18-
Registered::class => [
19-
SendEmailVerificationNotification::class,
16+
'App\Events\Event' => [
17+
'App\Listeners\EventListener',
2018
],
2119
];
2220

app/User.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App;
44

55
use Illuminate\Notifications\Notifiable;
6-
use Illuminate\Contracts\Auth\MustVerifyEmail;
76
use Illuminate\Foundation\Auth\User as Authenticatable;
87

98
class User extends Authenticatable

bootstrap/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
$app = new Illuminate\Foundation\Application(
15-
dirname(__DIR__)
15+
realpath(__DIR__.'/../')
1616
);
1717

1818
/*

composer.json

+13-15
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
"license": "MIT",
66
"type": "project",
77
"require": {
8-
"php": "^7.1.3",
9-
"fideloper/proxy": "^4.0",
10-
"laravel/framework": "5.7.*",
11-
"laravel/tinker": "^1.0"
8+
"php": ">=7.0.0",
9+
"fideloper/proxy": "~3.3",
10+
"google/cloud": "^0.81.0",
11+
"laravel/framework": "5.5.*",
12+
"laravel/tinker": "~1.0"
1213
},
1314
"require-dev": {
14-
"beyondcode/laravel-dump-server": "^1.0",
15-
"filp/whoops": "^2.0",
16-
"fzaninotto/faker": "^1.4",
17-
"mockery/mockery": "^1.0",
18-
"nunomaduro/collision": "^2.0",
19-
"phpunit/phpunit": "^7.0"
15+
"filp/whoops": "~2.0",
16+
"fzaninotto/faker": "~1.4",
17+
"mockery/mockery": "~1.0",
18+
"phpunit/phpunit": "~6.0",
19+
"symfony/thanks": "^1.0"
2020
},
2121
"autoload": {
2222
"classmap": [
@@ -43,18 +43,16 @@
4343
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
4444
],
4545
"post-create-project-cmd": [
46-
"@php artisan key:generate --ansi"
46+
"@php artisan key:generate"
4747
],
4848
"post-autoload-dump": [
4949
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
50-
"@php artisan package:discover --ansi"
50+
"@php artisan package:discover"
5151
]
5252
},
5353
"config": {
5454
"preferred-install": "dist",
5555
"sort-packages": true,
5656
"optimize-autoloader": true
57-
},
58-
"minimum-stability": "dev",
59-
"prefer-stable": true
57+
}
6058
}

0 commit comments

Comments
 (0)