Skip to content

Commit fac8662

Browse files
Merge pull request #26 from creativetimofficial/master
Update Laravel 7.x
2 parents 79ab32c + 17276a0 commit fac8662

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"activityBar.background": "#490D65",
44
"titleBar.activeBackground": "#67128E",
55
"titleBar.activeForeground": "#FCF8FE"
6-
}
6+
}
77
}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "laravel-frontend-presets/argon",
3-
"description": "Laravel 5.x Front-end preset for argon",
3+
"description": "Laravel 7.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": "^5.5 || ^6.0"
8+
"laravel/framework": "^7.0"
99
},
1010
"autoload": {
1111
"psr-4": {
@@ -19,4 +19,4 @@
1919
]
2020
}
2121
}
22-
}
22+
}

readme.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
1919
- Mac: https://wpshout.com/quick-guides/how-to-install-mamp-on-your-mac/
2020

2121
Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
22-
And Laravel: https://laravel.com/docs/6.x/installation
22+
And Laravel: https://laravel.com/docs/7.x/installation
2323

2424
## Installation
2525

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

3030
1. `Cd` to your Laravel app
3131
2. Install this preset via `composer require laravel-frontend-presets/argon`. No need to register the service provider. Laravel 5.5 & up can auto detect the package.
32-
3. Run `php artisan preset 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`
32+
3. 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`
3333
(NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
3434
4. In your terminal run `composer dump-autoload`
3535
5. Run `php artisan migrate --seed` to create basic users table
@@ -42,10 +42,11 @@ After initializing a fresh instance of Laravel (and making all the necessary con
4242
4. Open `composer.json` file
4343
5. Add `"LaravelFrontendPresets\\ArgonPreset\\": "presets/argon/src"` to `autoload/psr-4` and to `autoload-dev/psr-4`
4444
6. Add `LaravelFrontendPresets\ArgonPreset\ArgonPresetServiceProvider::class` to `config/app.php` file
45-
7. In your terminal run `composer dump-autoload`
46-
8. Run `php artisan preset 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`
45+
7. Type in your terminal: `composer require laravel/ui` and `php artisan ui vue --auth`
46+
8. In your terminal run `composer dump-autoload`
47+
9. 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`
4748
(NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
48-
9. Run `php artisan migrate --seed` to create basic users table
49+
10. Run `php artisan migrate --seed` to create basic users table
4950

5051

5152
## Usage

src/ArgonPreset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace LaravelFrontendPresets\ArgonPreset;
44

55
use Illuminate\Filesystem\Filesystem;
6-
use Illuminate\Foundation\Console\Presets\Preset;
6+
use Laravel\Ui\Presets\Preset;
77

88
class ArgonPreset extends Preset
99
{

src/ArgonPresetServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use Illuminate\Foundation\Console\PresetCommand;
7+
use Laravel\Ui\UiCommand;
8+
use Laravel\Ui\AuthCommand;
79

810
class ArgonPresetServiceProvider extends ServiceProvider
911
{
@@ -14,7 +16,7 @@ class ArgonPresetServiceProvider extends ServiceProvider
1416
*/
1517
public function boot()
1618
{
17-
PresetCommand::macro('argon', function ($command) {
19+
UiCommand::macro('argon', function ($command) {
1820
ArgonPreset::install();
1921

2022
$command->info('Argon scaffolding installed successfully.');

src/argon-stubs/resources/views/layouts/navbars/sidebar.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@
125125
<i class="ni ni-circle-08 text-pink"></i> {{ __('Register') }}
126126
</a>
127127
</li>
128-
<li class="nav-item mb-5" style="position: absolute; bottom: 0;">
129-
<a class="nav-link" href="https://www.creative-tim.com/product/argon-dashboard-pro-laravel" target="_blank">
128+
<li class="nav-item mb-5 bg-danger" style="position: absolute; bottom: 0;">
129+
<a class="nav-link text-white" href="https://www.creative-tim.com/product/argon-dashboard-pro-laravel" target="_blank">
130130
<i class="ni ni-cloud-download-95"></i> Upgrade to PRO
131131
</a>
132132
</li>

src/argon-stubs/resources/views/users/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<span class="navbar-toggler-icon"></span>
2828
</button>
2929
<!-- Brand -->
30-
<a class="navbar-brand pt-0" href="{{ route('home') }}">
30+
<a class="navbar-brand pt-0" href="{{ route('home') }}">
3131
<img src="{{ asset('argon') }}/img/brand/blue.png" class="navbar-brand-img" alt="...">
3232
</a>
3333
<!-- User -->

0 commit comments

Comments
 (0)