Skip to content

Commit

Permalink
Move config file to Rapidez folder (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Dec 1, 2023
1 parent 6fea70c commit 3dcf02e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions resources/views/menu/item.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li class="{{ config('menu.classes.'.$loop->depth.'.li') }}">
<a class="{{ config('menu.classes.'.$loop->depth.'.category') }}" href="{{ url($item->url) }}">
<li class="{{ config('rapidez.menu.classes.'.$loop->depth.'.li') }}">
<a class="{{ config('rapidez.menu.classes.'.$loop->depth.'.category') }}" href="{{ url($item->url) }}">
{{ $item->name }}
</a>
@includeWhen($item->children->count(), 'rapidez::menu.menu', ['items' => $item->children])
Expand Down
2 changes: 1 addition & 1 deletion resources/views/menu/menu.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="{{ config('menu.classes.'.(isset($loop->depth) ? $loop->depth + 1 : 1).'.ul') }}">
<ul class="{{ config('rapidez.menu.classes.'.(isset($loop->depth) ? $loop->depth + 1 : 1).'.ul') }}">
@foreach ($items as $item)
@include('rapidez::menu.item')
@endforeach
Expand Down
4 changes: 2 additions & 2 deletions src/MenuServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public function boot()
__DIR__.'/../resources/views' => resource_path('views/vendor/rapidez'),
], 'views');

$this->mergeConfigFrom(__DIR__.'/../config/menu.php', 'menu');
$this->mergeConfigFrom(__DIR__.'/../config/rapidez/menu.php', 'rapidez.menu');

$this->publishes([
__DIR__.'/../config/menu.php' => config_path('menu.php'),
__DIR__.'/../config/rapidez/menu.php' => config_path('rapidez/menu.php'),
], 'config');

Blade::component('menu', MenuComponent::class);
Expand Down

0 comments on commit 3dcf02e

Please sign in to comment.