Skip to content

Commit 7418692

Browse files
Laravel update 7.x
1 parent 5583e93 commit 7418692

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ After initializing a fresh instance of Laravel (and making all the necessary con
2828

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

4950
## Usage
5051

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/now-ui-dashboard-laravel",
66
"keywords": ["Laravel", "Preset", "Now UI"],
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+
}

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

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

src/NowUiPreset.php

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

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

88
class NowUiPreset extends Preset
99
{

src/now-ui-stubs/resources/assets/css/now-ui-dashboard.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Licensed under the MIT license - http://opensource.org/licenses/MIT
2929
Copyright (c) 2015 Daniel Eden
3030
*/
3131

32+
.color-ev {
33+
background-color: rgb(12, 152, 152);
34+
}
35+
3236
.animated {
3337
-webkit-animation-duration: 1s;
3438
animation-duration: 1s;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</a>
7474
</li>
7575
<li class = "@if ($activePage == 'upgrade') active @endif active-pro">
76-
<a href="{{ route('page.index','upgrade') }}">
76+
<a href="{{ route('page.index','upgrade') }}" class="color-ev">
7777
<i class="now-ui-icons arrows-1_cloud-download-93"></i>
7878
<p>{{ __('Upgrade to PRO') }}</p>
7979
</a>

0 commit comments

Comments
 (0)