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

Commit

Permalink
feat: Laravel 9 Support added (#11)
Browse files Browse the repository at this point in the history
* feat: Laravel 9 support added

* fix: minor fixes in packages
  • Loading branch information
mitulgolakiya authored Feb 21, 2022
1 parent 2cd523e commit aae3c48
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
}
],
"require": {
"php": "^7.3|^8.0",
"illuminate/support": "^8.0",
"infyomlabs/laravel-generator-helpers": "^3.1",
"php": "^8.0",
"illuminate/support": "^9.0",
"infyomlabs/laravel-generator-helpers": "4.x-dev",
"laravel/ui": "^3.0"
},
"autoload": {
Expand Down
16 changes: 11 additions & 5 deletions src/StislaPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ public function __construct(Command $command, $isFortify = false)
*
* @return array
*/
protected static function updatePackageArray(array $packages)
protected static function updatePackageArray(array $packages, $configurationKey)
{
return [
$stislaPackages = [
'dependencies' => [
"bootstrap" => "^4.0.0",
"jquery" => "^3.2",
"popper.js" => "^1.12",
"sass" => "^1.15.2",
"sass-loader" => "^7.1.0",
"@fortawesome/fontawesome-free" => "^5.13.1",
"jquery.nicescroll" => "^3.7.6",
"vue-template-compiler" => "^2.6.12",
Expand All @@ -48,11 +47,18 @@ protected static function updatePackageArray(array $packages)
"sweetalert" => "^1.1.3",
"select2" => "^4.0.13",
"izitoast" => "^1.4.0",
] + $packages;
],
'devDependencies' => [
"webpack" => "^5.23.0",
]
];

return $stislaPackages[$configurationKey] + $packages;
}

public function install()
{
static::updatePackages(false);
static::updatePackages(false);
static::updateWebpackConfiguration();
static::removeNodeModules();
Expand Down
2 changes: 1 addition & 1 deletion stisla-stubs/views/layouts/menu.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<li class="side-menus {{ Request::is('*') ? 'active' : '' }}">
<li class="side-menus {{ Request::is('home') ? 'active' : '' }}">
<a class="nav-link" href="/">
<i class=" fas fa-building"></i><span>Dashboard</span>
</a>
Expand Down

0 comments on commit aae3c48

Please sign in to comment.