Quickly Set Up CasbinStarterKits: Laravel, Vue 3 & Tailwind Access Control
This guide walks you through installing and running CasbinStarterKits—a PHP‑Casbin starter kit built on Laravel‑Authz with a Vue 3 and Tailwind CSS front‑end—covering prerequisites, repository cloning, dependency installation, database migration, and accessing the demo with default credentials.
Overview
CasbinStarterKits is a beginner-friendly toolkit for PHP‑Casbin, built on Laravel‑Authz and equipped with a Vue 3 front‑end styled with Tailwind CSS.
Casbin is an open‑source access‑control framework that supports many languages (Go, Java, Node.js, Python, PHP, .NET, etc.). It provides multiple access‑control models, flexible policy storage (e.g., MySQL, PostgreSQL, MongoDB, Redis, Cassandra, AWS S3), and cross‑language consistency.
Features
Role‑Based Access Control (RBAC)
Admin dashboard
Responsive design
Authentication
User management
Role management
Organization management
Menu management
Additional access‑control models
API authorization
Audit logs
Environment Requirements
PHP >= 8.0
Composer package manager
Node.js and npm
MySQL, PostgreSQL, SQLite, or a compatible database
Installation Steps
1. Clone the repository
git clone [email protected]:php-casbin/casbin-starter-kits.git
cd casbin-starter-kits2. Install backend dependencies
composer install3. Set up environment configuration
Copy the .env.example file and adjust settings as needed:
cp .env.example .env
php artisan key:generate4. Run database migrations
php artisan migrate --seed5. Install frontend dependencies
npm install6. Start the frontend project
npm run dev7. Start the backend server
If running inside a Docker container, the host and port were set to allow external access: php artisan serve --host=0.0.0.0 --port=8217 The server output confirms it is listening on http://0.0.0.0:8217.
8. Access the application
Open a browser and navigate to http://127.0.0.1:8217/.
Default accounts
Username: [email protected] Password: admin Username: [email protected] Password:
userWorkbench
Organization Management
Role Management
User Management
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Tech Hub
Sharing cutting-edge internet technologies and practical AI resources.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
