generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
27 changed files
with
147 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,27 @@ since it's the default for any new Laravel project.* | |
composer require webup/helium-core | ||
# or, if you live on the edge: | ||
composer require webup/helium-core:@dev | ||
``` | ||
|
||
### Publishing and customizing the default configuration | ||
|
||
`config/helium-core.php` is published along with all the other assets. | ||
|
||
You should check to see if the default values suit your requirements. | ||
Most likely, the `user` keyword is already used as your main authentication label. | ||
|
||
Helium allows you to change the database table names, along with the name | ||
of the guard and auth provider that will be automatically declared | ||
|
||
```sh | ||
# publish the configuration first | ||
artisan vendor:publish --tag=helium-core-config | ||
|
||
# /!\ now is the time to configure the package /!\ | ||
nano config/helium-core.php | ||
|
||
# publish all needed files | ||
artisan vendor:publish --tag=helium | ||
artisan vendor:publish --tag=helium-core | ||
``` | ||
|
||
### Setting up the frontend assets build | ||
|
@@ -35,8 +53,8 @@ In order to unlock the full power of tailwind and helium's customizability, | |
the package publishes its frontend assets to your application. | ||
|
||
The frontend assets are published to: | ||
- `resources/js/vendor/helium/` | ||
- `resources/css/vendor/helium/` | ||
- `resources/js/vendor/helium-core/` | ||
- `resources/css/vendor/helium-core/` | ||
|
||
You can now update your `vite.config.js` to build the new js/css files: | ||
```js | ||
|
@@ -48,25 +66,15 @@ export default defineConfig({ | |
'resources/js/app.js', | ||
|
||
// add the helium assets to the build | ||
'resources/css/vendor/helium/app.css', | ||
'resources/js/vendor/helium/app.js', | ||
'resources/css/vendor/helium-core/app.css', | ||
'resources/js/vendor/helium-core/app.js', | ||
], | ||
refresh: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
### Checking the default configuration | ||
|
||
`config/helium.php` is published along with all the other assets. | ||
|
||
You should check to see if the default values suit your requirements. | ||
Most likely, the `user` keyword is already used as your main authentication label. | ||
|
||
Helium allows you to change the database table names, along with the name | ||
of the guard and provider that will be automatically declared. | ||
|
||
### Running the migrations | ||
|
||
The default helium user has the following credentials: `[email protected]; password`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<div class="space-y-1"> | ||
<x-helium::menu.item icon="tabler-users-group" | ||
:opened="Route::is('helium::user.*')"> | ||
<x-helium-core::menu.item icon="tabler-users-group" :opened="Helium::isRoute('user.*')"> | ||
Helium Users | ||
<x-slot:sublevel> | ||
<x-helium::menu.sub :url="route('helium::user.index')" | ||
:current="Route::is('helium::user.*')">Users</x-helium::menu.sub> | ||
<x-helium::menu.sub url="#">Roles</x-helium::menu.sub> | ||
<x-helium-core::menu.sub :url="Helium::route('user.index')" :current="Helium::isRoute('user.*')">Users</x-helium-core::menu.sub> | ||
<x-helium-core::menu.sub url="#">Roles</x-helium-core::menu.sub> | ||
</x-slot:sublevel> | ||
</x-helium::menu.item> | ||
</x-helium-core::menu.item> | ||
|
||
<x-helium::menu.item url="{{ route('helium::setting.index') }}" | ||
icon="tabler-settings" | ||
:current="Route::is('helium::setting.*')">Settings</x-helium::menu.item> | ||
<x-helium-core::menu.item url="{{ Helium::route('setting.index') }}" icon="tabler-settings" :current="Helium::isRoute('setting.*')">Settings</x-helium-core::menu.item> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
<x-helium::layout.auth title="Log in"> | ||
<form action="{{ route('helium::postLogin') }}" | ||
method="post"> | ||
<x-helium-core::layout.auth title="Log in"> | ||
<form action="{{ Helium::route('postLogin') }}" method="post"> | ||
@csrf | ||
<x-helium::box> | ||
<x-helium::form.input label="Email" | ||
type="email" | ||
name="email" | ||
required /> | ||
<x-helium-core::box> | ||
<x-helium-core::form.input label="Email" type="email" name="email" required /> | ||
|
||
<x-helium::form.input label="Password" | ||
type="password" | ||
name="password" | ||
required /> | ||
<x-helium::button label="Login" | ||
class="mt-3 w-full" /> | ||
</x-helium::box> | ||
<x-helium-core::form.input label="Password" type="password" name="password" required /> | ||
<x-helium-core::button label="Login" class="mt-3 w-full" /> | ||
</x-helium-core::box> | ||
</form> | ||
</x-helium::layout.auth> | ||
</x-helium-core::layout.auth> |
Oops, something went wrong.