Skip to content

Commit 8e32ea0

Browse files
Merge pull request #4 from creativetimofficial/master
Update Laravel 7.x
2 parents e15c9bd + 898fbbe commit 8e32ea0

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://github.com/creativetimofficial/white-dashboard-laravel",
66
"keywords": ["Laravel", "Preset", "White"],
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: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you don't already have an Apache local environment with PHP and MySQL, use on
2020

2121
Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
2222

23-
And Laravel: https://laravel.com/docs/6.x/installation
23+
And Laravel: https://laravel.com/docs/7.x/installation
2424

2525
## Installation
2626

@@ -29,11 +29,12 @@ After initializing a fresh instance of Laravel (and making all the necessary con
2929
### Via composer
3030

3131
1. `Cd` to your Laravel app
32-
2. Install this preset via `composer require laravel-frontend-presets/white-dashboard`. No need to register the service provider. Laravel 5.5 & up can auto detect the package.
33-
3. Run `php artisan preset white` 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+
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/white-dashboard`. No need to register the service provider. Laravel 5.5 & up can auto detect the package.
34+
4. Run `php artisan ui white` 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`
3435
(NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
35-
4. In your terminal run `composer dump-autoload`
36-
5. Run `php artisan migrate --seed` to create basic users table
36+
5. In your terminal run `composer dump-autoload`
37+
6. Run `php artisan migrate --seed` to create basic users table
3738

3839
### By using the archive
3940

@@ -43,10 +44,11 @@ After initializing a fresh instance of Laravel (and making all the necessary con
4344
4. Open `composer.json` file
4445
5. Add `"LaravelFrontendPresets\\WhitePreset\\": "presets/white/src"` to `autoload/psr-4` and to `autoload-dev/psr-4`
4546
6. Add `LaravelFrontendPresets\WhitePreset\WhitePresetServiceProvider::class` to `config/app.php` file
46-
7. In your terminal run `composer dump-autoload`
47-
8. Run `php artisan preset white` command to install the White Dashboard 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`
47+
7. Type in your terminal: `composer require laravel/ui` and `php artisan ui vue --auth`
48+
8. In your terminal run `composer dump-autoload`
49+
9. Run `php artisan ui white` command to install the White Dashboard 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`
4850
(NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
49-
9. Run `php artisan migrate --seed` to create basic users table
51+
10. Run `php artisan migrate --seed` to create basic users table
5052

5153

5254
## Usage

src/WhitePreset.php

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

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

88
class WhitePreset extends Preset
99
{

src/WhitePresetServiceProvider.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 WhitePresetServiceProvider extends ServiceProvider
911
{
@@ -14,7 +16,7 @@ class WhitePresetServiceProvider extends ServiceProvider
1416
*/
1517
public function boot()
1618
{
17-
PresetCommand::macro('white', function ($command) {
19+
UiCommand::macro('white', function ($command) {
1820
WhitePreset::install();
1921

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<p>{{ _('RTL Support') }}</p>
7272
</a>
7373
</li>
74-
<li class=" {{ $pageSlug == 'upgrade' ? 'active' : '' }}">
74+
<li class=" {{ $pageSlug == 'upgrade' ? 'active' : '' }} bg-info">
7575
<a href="{{ route('pages.upgrade') }}">
7676
<i class="tim-icons icon-spaceship"></i>
7777
<p>{{ _('Upgrade to PRO') }}</p>

0 commit comments

Comments
 (0)