fromhome / laravel-starter
Laravel project starter with Chakra UI, InertiaJS and Laravel Fortify.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 6
Language:TypeScript
Type:project
Requires
- php: ^8.2
- inertiajs/inertia-laravel: 2.x-dev
- laravel/fortify: ^1.24.2
- laravel/framework: ^11.28.1
- laravel/sanctum: ^4.0.3
- laravel/tinker: ^2.10
- spatie/laravel-data: ^4.10.1
Requires (Dev)
- fakerphp/faker: ^1.23.1
- larastan/larastan: ^2.9.9
- laravel/pint: ^1.13.
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.5.0
- phpunit/phpunit: ^11.4.1
- roave/security-advisories: dev-latest
- dev-main
- 3.x-dev
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.0.0
- 1.x-dev
- 1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/composer/phpunit/phpunit-11.4.3
- dev-dependabot/composer/laravel/fortify-1.24.4
- dev-dependabot/composer/laravel/framework-11.30.0
- dev-dependabot/npm_and_yarn/lucide-react-0.454.0
- dev-dependabot/npm_and_yarn/prettier-3.3.3
- dev-dependabot/npm_and_yarn/typescript-eslint-8.12.2
This package is auto-updated.
Last update: 2024-11-01 17:41:30 UTC
README
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
Installation
- 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
Usage
Enable or disable Fortify feature
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.
Application Layout
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
Register new menu
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
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.