Skip to content

rubensrocha/Laravel-12-Admin-Starter-Kit-Livewire

Repository files navigation

Laravel 12 Admin Starter Kit Livewire

Preview

Preview

About This Repository

This is a repository created to show how to create an Admin Panel in Laravel 12 using the Livewire Starter Kit(without Volt), using an "Admin" Model and with all the authentication features available in the "User" Model.

Since the Breeze and Jetstream packages have been discontinued, this repository was created to show how to create the same functionality without them.

Features

  • Admin Authentication(login, register, password reset, password confirmation, email verification)
  • Automatic Redirection to admin.login route if not authenticated(using Exception Handler)
  • Automatic Redirection to admin.index route if authenticated
  • Admin Views(clone of default views)

Stack

  • Laravel 12(with Livewire Starter Kit)
  • Livewire 3(without Volt)
  • Tailwind CSS
  • Alpine.js

Requirements

  • PHP >= 8.2
  • Composer
  • Node.js
  • NPM

Installation

  1. Clone the repository
git clone rubensrocha/Laravel-12-Admin-Starter-Kit-Livewire
  1. Change directory to the cloned repository
cd Laravel-12-Admin-Starter-Kit-Livewire
  1. Install the dependencies
composer install
  1. Copy the .env.example file to .env
cp .env.example .env
  1. Generate the application key
php artisan key:generate
  1. Create the database and update the .env file with the database credentials
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
  1. Run the migrations
php artisan migrate
  1. Install the frontend dependencies
npm install
  1. Build the frontend assets
npm run build
  1. Start the development server
php artisan serve
  1. Visit the application in your browser
http://localhost:8000

Usage

  • Visit the /admin route to access the admin panel
  • You can change /admin prefix in the bootstrap/app.php file

License

The Laravel framework, and this repository, is open-sourced software licensed under the MIT license.

About

Admin Panel with Laravel 12 using Livewire Starter Kit (without Volt)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages