https://github.com/vormkracht10/laravel-component-template
https://github.com/vormkracht10/laravel-component-template
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vormkracht10/laravel-component-template
- Owner: vormkracht10
- Created: 2023-11-22T08:59:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T16:08:36.000Z (7 months ago)
- Last Synced: 2024-11-12T03:15:47.061Z (7 months ago)
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Component Template
- [ ] Config file
- [ ] Blade views (variants)
- [ ] Build assets
- [ ] Vite
- [ ] Pest tests (PHP)
- [ ] Jest tests (Javascript)This repository template makes it easy to create a new Laravel Blade Component as an installable Composer package, ready to use in any Laravel project.
Click the green button above "Use this template" to make a new repository.
## Structure
### Javascript
In `resources/js` you can add your source Javascript files.
Because we want to make these Components headless, we need to include every Javascript it needs inside the views or add instructions on which Javascript files needs to be added to the asset compilation step inside their existing project.
### CSS
In `resources/css` you can add your source CSS files.
### Views
In `resources/views` you can add your Blade views.
### Public
In `public` folder, you can add files that needs to be published in the Laravel app when the package is installed.