https://github.com/zofe/layout-module
Layout Module
https://github.com/zofe/layout-module
Last synced: 9 months ago
JSON representation
Layout Module
- Host: GitHub
- URL: https://github.com/zofe/layout-module
- Owner: zofe
- Created: 2023-02-03T16:31:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T13:39:27.000Z (over 1 year ago)
- Last Synced: 2024-11-16T09:04:07.909Z (over 1 year ago)
- Language: JavaScript
- Size: 744 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rapyd Admin - Layout Module
This is the Layout module of [Rapyd Admin](https://github.com/zofe/rapyd-admin), a Laravel application bootstrap for your projects
The idea is to isolate assets compilation and template pages for frontend/admin in a single, generic, reusable module.
the base is SBAdmin but updated to bootstrap 5.3
# Installation
This module is part of [Rapyd Admin](https://github.com/zofe/rapyd-admin) package
# Customizing Rapyd Admin Layout
This module will be found on app/Modules/Layout.
You can customize scss / static assets by editing the files in this folder.
then from app/Modules/Layout you can build and publish assets running:
```
cd app/Modules/Layout
npm i
npm run dev
```
the last command this will compile copy and replace all assets
in your laravel public folder
# Testing routes
- /test-admin
- /test-frontend
# Usage
you can refer to two predefined layout in your rapyd-admin modules config.php es:
```
return [
'layout' => 'layout::frontend',
];
```
or
```
return [
'layout' => 'layout::admin',
];
```
but you can also use directly the reference in your livewire components ie:
```php
...
public function render()
{
return view('knowledgebase::Admin.articles_edit')
->layout('layout::admin');
}
...
```