This is Laravel starter project built using Laravel Fortify, Inertia and Chakra UI for UI. This starter already have
- Login
- Registration
- Reset and change password
- Layout and page template
- Navigation menu
- Clone the repository:
git clone https://github.com/your-username/your-repo.git
or usingUse this template
button in GitHub repository page - Install dependencies:
composer install
andbun install
- Create a copy of the
.env.example
file and rename it to.env
. Update the environment variables as needed. - Generate an application key:
php artisan key:generate
- Run the database migrations:
php artisan migrate --seed
- Build or watch a Inertia and Chakra UI :
bun run dev
- Start the development server:
php artisan serve
Now you can open a http://localhost:8000
in browser and login using admin@fromhome.dev
and password is password
This project using Laravel Fortify to handle auth, you can enable or disable feature in the config file. You can read detail in this docs
Warning!!! At the time, only
registration
,resetPasswords
,updateProfileInformation
andupdatePasswords
is implemented. FeatureemailVerification
andtwoFactorAuthentication
not implemeted yet.
This project comes with two app layouts: AppSidebarLayout
and AppTopbarLayout
. By default, the project uses AppSidebarLayout
. To change the layout, you can edit app.tsx
AppSidebarLayout |
AppTopbarLayout |
---|---|
For a add new menu you can update a NavigationServiceProvider
.
private function registerNavigationGroups(): void
{
Navigation::registerNavigationGroups([
NavigationGroup::new()->menus([
NavigationItem::new()
->label('Home')
->href('/')
->icon('home'),
]),
NavigationGroup::new()->label('Setting')->icon('settings')->menus([
NavigationItem::new()
->label('User')
->href('/users')
->icon('user-round-cog'),
// Other menu for Setting
]),
// Other group
]);
}
This project using Lucide for icon library
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.