Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to Laravel 11 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_ADDRESS=admin@localhost
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Laravel Fortify Example
Laravel Authentication Scaffold using Laravel Fortify and Bootstrap.
# Laravel 11 Fortify Example
Laravel 11 Authentication Scaffold using Laravel Fortify and Bootstrap.


## Video Tutorials
Expand Down Expand Up @@ -32,3 +32,15 @@ $ php artisan key:generate
# run migration
$ php artisan migrate
```

Register at mailtrap.io or other service and paste credentials at .env to send messages:
```dotenv
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=123456789
MAIL_PASSWORD=987654321
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=admin@localhost
MAIL_FROM_NAME="${APP_NAME}"
```
3 changes: 1 addition & 2 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
// \App\Http\Middleware\TrustProxies::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
Expand Down
32 changes: 20 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/fortify": "^1.7",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5"
"php": "^8.2|^8.3",
"brick/math": "^0.11",
"doctrine/inflector": "^2.0",
"dragonmantank/cron-expression": "^3.3",
"egulias/email-validator": "^4.0",
"guzzlehttp/guzzle": "^7.8",
"guzzlehttp/promises": "^2.0",
"guzzlehttp/psr7": "^2.6",
"laravel/fortify": "^1.21",
"laravel/framework": "^11.3",
"laravel/tinker": "^2.9",
"league/commonmark": "^2.4",
"league/flysystem": "^3.27",
"monolog/monolog": "^3.6",
"nesbot/carbon": "^3.2",
"psr/container": "^2.0",
"ramsey/uuid": "^4.7",
"symfony/console": "^7.0"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
"fakerphp/faker": "^1.23",
"phpunit/phpunit": "^9.6"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading