acelords / jetstream
Tailwind scaffolding for the Laravel framework with Inertia modifications to allow for custom themes/templates
Requires
- php: ^7.3|^8.0
- ext-json: *
- illuminate/support: ^8.37|^9.0
- jenssegers/agent: ^2.6
- laravel/fortify: ^1.12
Requires (Dev)
- inertiajs/inertia-laravel: ^0.5.2
- laravel/sanctum: ^2.7
- mockery/mockery: ^1.0
- orchestra/testbench: ^6.0|^7.0
- phpunit/phpunit: ^9.3
- dev-master / 3.x-dev
- 2.x-dev
- 2.8.0
- v2.6.2.1
- 2.5.0.2
- 2.5.0.1
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.16
- v2.3.15
- v2.3.14
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-develop-1.x
- dev-develop
This package is auto-updated.
Last update: 2024-12-12 19:25:36 UTC
README
Introduction
Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.
Jetstream is designed using Tailwind CSS and offers your choice of Livewire or Inertia scaffolding.
Why this fork
Sometimes, yuo might require to use different themes in your application while still retaining the default components that come with Jetstream. With this fork, you are able to specify the location/template for the jetstream component locations.
See by example
Here, the backend template/theme is set to Acelords
folder. That way, all backend items can stay in that folder. the Skeleton
folder holds the public components. Once you specify the template path in jestream
config file, you can move the Jetstream default components to the Acelords
template folder.
/* |-------------------------------------------------------------------------- | Jetstream Inertia Views Prefix |-------------------------------------------------------------------------- | | This configuration value informs Jetstream which "directory prefix" you will be | using for your application. This is especially helpful in projects with more | than one dashboard theme for different use-cases. | | e.g. | 'Templates/Admin/' | 'Themes/Admin/' | 'Themes/Client/' | */ 'inertia_views_prefix' => 'Templates/Acelords',
Here's a sample view of the new app.js
code
require("./bootstrap"); import { createApp, h } from "vue"; import { createInertiaApp } from "@inertiajs/inertia-vue3"; import { InertiaProgress } from "@inertiajs/progress"; // layouts import AcelordsLayout from '@/Layouts/AcelordsLayout' import SkeletonLayout from '@/Layouts/SkeletonLayout' const appName = document.head.querySelector('meta[name="site-name"]').content createInertiaApp({ title: (title) => `${title} | ${appName}`, resolve: (name) => { const page = require(`./Pages/${name}`).default; if (page.layout === undefined) { if(name.startsWith("Templates/Acelords/")) { page.layout = AcelordsLayout; // backend } else { page.layout = SkeletonLayout; // frontend } } return page; }, setup({ el, app, props, plugin }) { return createApp({ render: () => h(app, props) }) .use(plugin) .mixin({ methods: { route } }) .mount(el); }, }); InertiaProgress.init({ color: "#4B5563" });
NB: Should you view double headers displayed on the Jetstream views, it's because of the double inclusion of the header. A quick workaround is setting the
layout
attribute to an empty string in the individual components
<script> import { defineComponent } from 'vue' import AppLayout from '@/Layouts/AcelordsLayout.vue' import Welcome from '@/Jetstream/Welcome.vue' export default defineComponent({ layout: '', // set to an empty string components: { AppLayout, Welcome, }, }) </script>
Official Documentation
Documentation for Jetstream can be found on the Jetstream website.
Contributing
Thank you for considering contributing to Jetstream! You can read the contribution guide here.
Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
Laravel Jetstream is open-sourced software licensed under the MIT license.