Skip to content

Commit a491c19

Browse files
Update Laravel 7.x
1 parent 1c8f4f3 commit a491c19

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.');

0 commit comments

Comments
 (0)