Skip to content

Commit 2cd1965

Browse files
Merge pull request #7 from laravel-frontend-presets/master
Update to Laravel 9.x
2 parents c41545e + b6a8e3b commit 2cd1965

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ All notable changes to `Argon` frontend preset for Laravel will be documented in
2828
## Version 1.1.1 - 2020-09-23
2929
- Update to Laravel 8.x
3030

31+
## Version 1.1.2 - 2022-03-25
32+
- Update to Laravel 9.x
33+

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "laravel-frontend-presets/argon",
3-
"description": "Laravel 8.x Front-end preset for argon",
3+
"description": "Laravel 9.x Front-end preset for argon",
44
"license": "MIT",
55
"homepage": "https://github.com/creativetimofficial/argon-dashboard-laravel",
66
"keywords": ["Laravel", "Preset", "Argon"],
77
"require": {
8-
"laravel/framework": "^8.0",
8+
"laravel/framework": "^9.0",
99
"laravel/legacy-factories": "^1.0"
1010
},
1111
"autoload": {

license.md

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

3-
Copyright (c) 2019 [Updivision](https://updivision.com) [Creative Tim](https://www.creative-tim.com)
3+
Copyright (c) 2022 [Updivision](https://updivision.com) [Creative Tim](https://www.creative-tim.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

readme.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Argon Frontend Preset For Laravel Framework 8.x and Up
1+
# Argon Frontend Preset For Laravel Framework 9.x and Up
22

33
![version](https://img.shields.io/badge/version-1.0.12-blue.svg) ![license](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/laravel-frontend-presets/argon.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/argon/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/laravel-frontend-presets/argon.svg?maxAge=2592000)](https://github.com/laravel-frontend-presets/argon/issues?q=is%3Aissue+is%3Aclosed)
44

5-
*Current version*: Argon v1.0.10. More info at https://www.creative-tim.com/product/argon-dashboard-laravel.
5+
*Current version*: Argon v1.1.2. More info at https://www.creative-tim.com/product/argon-dashboard-laravel.
66

7-
8-
[<img src="/screens/Dashboard.png" width="100%" />](https://www.creative-tim.com/live/argon-dashboard-laravel)
7+
[<img src="https://s3.amazonaws.com/creativetim_bucket/products/140/original/opt_ad_laravel_thumbnail.jpg" width="100%" />](https://www.creative-tim.com/live/argon-dashboard-laravel)
98

109
## Note
1110

@@ -20,7 +19,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
2019
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/
2120

2221
Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
23-
And Laravel: https://laravel.com/docs/8.x/installation
22+
And Laravel: https://laravel.com/docs/9.x/installation
2423

2524
## Installation
2625

@@ -30,7 +29,7 @@ After initializing a fresh instance of Laravel (and making all the necessary con
3029

3130
1. `Cd` to your Laravel app
3231
2. Type in your terminal: `composer require laravel/ui` and `php artisan ui vue --auth`
33-
3. Install this preset via `composer require laravel-frontend-presets/argon`. No need to register the service provider. Laravel 8.x & up can auto detect the package.
32+
3. Install this preset via `composer require laravel-frontend-presets/argon`. No need to register the service provider. Laravel 9.x & up can auto detect the package.
3433
4. Run `php artisan ui argon` command to install the Argon preset. This will install all the necessary assets and also the custom auth views, it will also add the auth route in `routes/web.php`
3534
(NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
3635
5. In your terminal run `composer dump-autoload`

src/argon-stubs/app/Http/Middleware/TrustProxies.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace App\Http\Middleware;
44

55
use Illuminate\Http\Request;
6-
use Fideloper\Proxy\TrustProxies as Middleware;
6+
use Illuminate\Http\Middleware\TrustProxies as Middleware;
77

88
class TrustProxies extends Middleware
99
{
@@ -19,5 +19,9 @@ class TrustProxies extends Middleware
1919
*
2020
* @var int
2121
*/
22-
protected $headers = Request::HEADER_X_FORWARDED_AWS_ELB;
22+
protected $headers = Request::HEADER_X_FORWARDED_FOR |
23+
Request::HEADER_X_FORWARDED_HOST |
24+
Request::HEADER_X_FORWARDED_PORT |
25+
Request::HEADER_X_FORWARDED_PROTO |
26+
Request::HEADER_X_FORWARDED_AWS_ELB;
2327
}

0 commit comments

Comments
 (0)