Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit aae3c48

Browse files
feat: Laravel 9 Support added (#11)
* feat: Laravel 9 support added * fix: minor fixes in packages
1 parent 2cd523e commit aae3c48

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^7.3|^8.0",
19-
"illuminate/support": "^8.0",
20-
"infyomlabs/laravel-generator-helpers": "^3.1",
18+
"php": "^8.0",
19+
"illuminate/support": "^9.0",
20+
"infyomlabs/laravel-generator-helpers": "4.x-dev",
2121
"laravel/ui": "^3.0"
2222
},
2323
"autoload": {

src/StislaPreset.php

+11-5
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ public function __construct(Command $command, $isFortify = false)
3131
*
3232
* @return array
3333
*/
34-
protected static function updatePackageArray(array $packages)
34+
protected static function updatePackageArray(array $packages, $configurationKey)
3535
{
36-
return [
36+
$stislaPackages = [
37+
'dependencies' => [
3738
"bootstrap" => "^4.0.0",
3839
"jquery" => "^3.2",
3940
"popper.js" => "^1.12",
40-
"sass" => "^1.15.2",
41-
"sass-loader" => "^7.1.0",
4241
"@fortawesome/fontawesome-free" => "^5.13.1",
4342
"jquery.nicescroll" => "^3.7.6",
4443
"vue-template-compiler" => "^2.6.12",
@@ -48,11 +47,18 @@ protected static function updatePackageArray(array $packages)
4847
"sweetalert" => "^1.1.3",
4948
"select2" => "^4.0.13",
5049
"izitoast" => "^1.4.0",
51-
] + $packages;
50+
],
51+
'devDependencies' => [
52+
"webpack" => "^5.23.0",
53+
]
54+
];
55+
56+
return $stislaPackages[$configurationKey] + $packages;
5257
}
5358

5459
public function install()
5560
{
61+
static::updatePackages(false);
5662
static::updatePackages(false);
5763
static::updateWebpackConfiguration();
5864
static::removeNodeModules();

stisla-stubs/views/layouts/menu.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li class="side-menus {{ Request::is('*') ? 'active' : '' }}">
1+
<li class="side-menus {{ Request::is('home') ? 'active' : '' }}">
22
<a class="nav-link" href="/">
33
<i class=" fas fa-building"></i><span>Dashboard</span>
44
</a>

0 commit comments

Comments
 (0)