Skip to content
Permalink
Browse files

Install Laravel

  • Loading branch information...
vagrant
vagrant committed Sep 14, 2018
0 parents commit 876d92ac0696f8239ab79854c84c8efd4f7273b3
Showing with 13,182 additions and 0 deletions.
  1. +15 −0 .editorconfig
  2. +39 −0 .env.example
  3. +5 −0 .gitattributes
  4. +14 −0 .gitignore
  5. +42 −0 app/Console/Kernel.php
  6. +51 −0 app/Exceptions/Handler.php
  7. +32 −0 app/Http/Controllers/Auth/ForgotPasswordController.php
  8. +39 −0 app/Http/Controllers/Auth/LoginController.php
  9. +72 −0 app/Http/Controllers/Auth/RegisterController.php
  10. +39 −0 app/Http/Controllers/Auth/ResetPasswordController.php
  11. +41 −0 app/Http/Controllers/Auth/VerificationController.php
  12. +13 −0 app/Http/Controllers/Controller.php
  13. +80 −0 app/Http/Kernel.php
  14. +19 −0 app/Http/Middleware/Authenticate.php
  15. +17 −0 app/Http/Middleware/CheckForMaintenanceMode.php
  16. +17 −0 app/Http/Middleware/EncryptCookies.php
  17. +26 −0 app/Http/Middleware/RedirectIfAuthenticated.php
  18. +18 −0 app/Http/Middleware/TrimStrings.php
  19. +23 −0 app/Http/Middleware/TrustProxies.php
  20. +24 −0 app/Http/Middleware/VerifyCsrfToken.php
  21. +28 −0 app/Providers/AppServiceProvider.php
  22. +30 −0 app/Providers/AuthServiceProvider.php
  23. +21 −0 app/Providers/BroadcastServiceProvider.php
  24. +34 −0 app/Providers/EventServiceProvider.php
  25. +73 −0 app/Providers/RouteServiceProvider.php
  26. +30 −0 app/User.php
  27. +53 −0 artisan
  28. +55 −0 bootstrap/app.php
  29. +2 −0 bootstrap/cache/.gitignore
  30. +60 −0 composer.json
  31. +4,070 −0 composer.lock
  32. +214 −0 config/app.php
  33. +102 −0 config/auth.php
  34. +59 −0 config/broadcasting.php
  35. +94 −0 config/cache.php
  36. +127 −0 config/database.php
  37. +69 −0 config/filesystems.php
  38. +52 −0 config/hashing.php
  39. +92 −0 config/logging.php
  40. +123 −0 config/mail.php
  41. +86 −0 config/queue.php
  42. +39 −0 config/services.php
  43. +197 −0 config/session.php
  44. +33 −0 config/view.php
  45. +1 −0 database/.gitignore
  46. +23 −0 database/factories/UserFactory.php
  47. +36 −0 database/migrations/2014_10_12_000000_create_users_table.php
  48. +32 −0 database/migrations/2014_10_12_100000_create_password_resets_table.php
  49. +16 −0 database/seeds/DatabaseSeeder.php
  50. +22 −0 package.json
  51. +33 −0 phpunit.xml
  52. +21 −0 public/.htaccess
  53. +6 −0 public/css/app.css
  54. 0 public/favicon.ico
  55. +60 −0 public/index.php
  56. +1 −0 public/js/app.js
  57. +2 −0 public/robots.txt
  58. +1 −0 public/svg/403.svg
  59. +1 −0 public/svg/404.svg
  60. +1 −0 public/svg/500.svg
  61. +1 −0 public/svg/503.svg
  62. +22 −0 resources/js/app.js
  63. +56 −0 resources/js/bootstrap.js
  64. +23 −0 resources/js/components/ExampleComponent.vue
  65. +19 −0 resources/lang/en/auth.php
  66. +19 −0 resources/lang/en/pagination.php
  67. +22 −0 resources/lang/en/passwords.php
  68. +146 −0 resources/lang/en/validation.php
  69. +20 −0 resources/sass/_variables.scss
  70. +14 −0 resources/sass/app.scss
  71. +95 −0 resources/views/welcome.blade.php
  72. +18 −0 routes/api.php
  73. +16 −0 routes/channels.php
  74. +18 −0 routes/console.php
  75. +16 −0 routes/web.php
  76. +21 −0 server.php
  77. +3 −0 storage/app/.gitignore
  78. +2 −0 storage/app/public/.gitignore
  79. +8 −0 storage/framework/.gitignore
  80. +3 −0 storage/framework/cache/.gitignore
  81. +2 −0 storage/framework/cache/data/.gitignore
  82. +2 −0 storage/framework/sessions/.gitignore
  83. +2 −0 storage/framework/testing/.gitignore
  84. +2 −0 storage/framework/views/.gitignore
  85. +2 −0 storage/logs/.gitignore
  86. +22 −0 tests/CreatesApplication.php
  87. +21 −0 tests/Feature/ExampleTest.php
  88. +10 −0 tests/TestCase.php
  89. +19 −0 tests/Unit/ExampleTest.php
  90. +15 −0 webpack.mix.js
  91. +5,918 −0 yarn.lock
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
@@ -0,0 +1,39 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
@@ -0,0 +1,5 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
*.js linguist-vendored
CHANGELOG.md export-ignore
@@ -0,0 +1,14 @@
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vscode
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env
.phpunit.result.cache
@@ -0,0 +1,42 @@
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}
@@ -0,0 +1,51 @@
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}
}
@@ -0,0 +1,32 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset emails and
| includes a trait which assists in sending these notifications from
| your application to your users. Feel free to explore this trait.
|
*/
use SendsPasswordResetEmails;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}
@@ -0,0 +1,39 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest')->except('logout');
}
}
@@ -0,0 +1,72 @@
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
/**
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed',
]);
}
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return \App\User
*/
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
]);
}
}
@@ -0,0 +1,39 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset requests
| and uses a simple trait to include this behavior. You're free to
| explore this trait and override any methods you wish to tweak.
|
*/
use ResetsPasswords;
/**
* Where to redirect users after resetting their password.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}
@@ -0,0 +1,41 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\VerifiesEmails;
class VerificationController extends Controller
{
/*
|--------------------------------------------------------------------------
| Email Verification Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling email verification for any
| user that recently registered with the application. Emails may also
| be resent if the user did not receive the original email message.
|
*/
use VerifiesEmails;
/**
* Where to redirect users after verification.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
$this->middleware('signed')->only('verify');
$this->middleware('throttle:6,1')->only('verify', 'resend');
}
}

0 comments on commit 876d92a

Please sign in to comment.
You can’t perform that action at this time.