Skip to content

Commit 011f701

Browse files
Merge pull request #5 from creativetimofficial/master
Update Laravel 7.x
2 parents d44b5b5 + 60dd20a commit 011f701

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
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/light-bootstrap-dashboard-laravel",
66
"keywords": ["Laravel", "Preset", "Light Bootstrap"],
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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ After initializing a fresh instance of Laravel (and making all the necessary con
3030
### Via composer
3131

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

3940
### By using the archive
4041

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

5254

5355
## Usage

src/LightBootstrapPreset.php

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

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

88
class LightBootstrapPreset extends Preset
99
{

src/LightBootstrapPresetServiceProvider.php

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

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

89
class LightBootstrapPresetServiceProvider extends ServiceProvider
910
{
@@ -14,7 +15,7 @@ class LightBootstrapPresetServiceProvider extends ServiceProvider
1415
*/
1516
public function boot()
1617
{
17-
PresetCommand::macro('light-bootstrap', function ($command) {
18+
UiCommand::macro('light-bootstrap', function ($command) {
1819
LightBootstrapPreset::install();
1920

2021
$command->info('Light Bootstrap scaffolding installed successfully.');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<p>{{ __("Notifications") }}</p>
7777
</a>
7878
</li>
79-
<li class="nav-item active active-pro">
79+
<li class="nav-item active-pro bg-danger">
8080
<a class="nav-link active" href="{{route('page.index', 'upgrade')}}">
8181
<i class="nc-icon nc-alien-33"></i>
8282
<p>{{ __("Upgrade to PRO") }}</p>

0 commit comments

Comments
 (0)