An open API service indexing awesome lists of open source software.

https://github.com/vormkracht10/laravel-component-template


https://github.com/vormkracht10/laravel-component-template

Last synced: 3 months ago
JSON representation

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.