定制 mortenebak/tallstarter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mortenebak/tallstarter

Composer 安装命令:

composer create-project mortenebak/tallstarter

包简介

An oppinionated Laravel Starter Kit based on the Official Laravel Livewire Starter Kit

README 文档

README

Latest Version on Packagist Project Status: Active – The project has reached a stable, usable state and is being actively developed. GitHub last commit GitHub Sponsors

This Starter kit contains my starting point when developing a new Laravel project. Its based on the official Livewire Starter kit, and includes the following features:

  • User Management,
  • Role Management,
  • Permissions Management,
  • Two-Factor Authentication (2FA)
  • Teams - Collaborative team management (configurable)
  • Social Login (Google, Facebook, Twitter/X)
  • Localization options
  • ✅ Separate Dashboard for Super Admins
  • ✅ Updated for Laravel 12.0 and Livewire 3.0

Admin dashboard view:

alt text

Supporting multiple languages:

alt text

TALL stack

It uses the TALL stack, which stands for:

Further it includes:

Among other things, it also includes:

Upcoming features

I'm considering adding the following features, depending on my clients' most common requirements:

Requirements

  • PHP 8.2 or higher (8.2, 8.3, 8.4, or 8.5)
  • Composer
  • Node.js 22+ and npm

Installation

alt text

laravel new my-project --using=mortenebak/tallstarter

You could also just use this repository as a starting point for your own project by clicking use template. If installing manually, these are the steps to install:

1. Install dependencies

composer install
npm install
npm run build # or npm run dev

2. Configure environment

Setup your .env file and run the migrations.

cp .env.example .env
php artisan key:generate
php artisan storage:link

3. Migration

php artisan migrate

4. Seeding

php artisan db:seed

5. Creating the first Super Admin user

php artisan app:create-super-admin

6. Set default timezone if different from UTC

// config/app.php
return [
    // ...

    'timezone' => 'Europe/Copenhagen' // Default: UTC

    // ...
];

Features

Users, Roles & Permissions

This starter kit includes a complete admin system at /admin for managing users, roles, and permissions, built on Spatie Roles & Permissions.

Key features:

  • User, role, and permission CRUD in a separate admin dashboard
  • Seeded default permissions and a Super Admin role
  • php artisan app:create-super-admin command for creating the first admin
  • User impersonation (gated by the impersonate permission)

For detailed information, see Users, Roles & Permissions Documentation.

Two-Factor Authentication

This starter kit includes built-in support for Two-Factor Authentication (2FA) using TOTP (Time-based One-Time Passwords), compatible with apps like Google Authenticator, Authy, and 1Password.

Key features:

  • QR code generation for easy setup
  • Recovery codes for account recovery
  • Seamless integration with the authentication flow
  • User-friendly interface

For detailed information, see Two-Factor Authentication Documentation.

Teams

This starter kit includes comprehensive teams functionality that allows users to create, manage, and collaborate within teams. Teams can be enabled or disabled via configuration, making it suitable for both single-user and multi-team applications.

Key features:

  • Team creation and management
  • Role-based access (Admin/Member)
  • Email invitations with secure tokens
  • Team switching
  • Member and role management
  • Configurable feature (enable/disable via config)

For detailed information, see Teams Documentation.

Social Login

This starter kit includes support for social authentication using Laravel Socialite. Users can sign in or register using their Google, Facebook, or Twitter/X accounts.

Key features:

  • OAuth 2.0 support for Google and Facebook
  • OAuth 1.0a support for Twitter/X
  • Automatic account creation for new social login users
  • Random password generation for social accounts
  • Email verification automatically set

For detailed setup instructions, see Social Login Documentation.

Developing

Check for code style issues

composer review

This command will run, in order:

  • Laravel/Pint
  • PHPStan
  • Rector (dry-run)
  • PestPHP

Ensuring that your code is up to standard and tested.

Troubleshooting

"Unable to locate file in Vite manifest"

The frontend assets haven't been built yet. Run:

npm run build # or npm run dev

Storage permission errors

If you see errors writing to logs or cache, make sure the storage and bootstrap/cache directories are writable by your web server user, and that the storage symlink exists:

php artisan storage:link

"Database file does not exist" (SQLite)

The default .env uses SQLite. Create the database file and run the migrations:

touch database/database.sqlite
php artisan migrate

Contributing

Feel free to contribute to this project by submitting a pull request. See the Contributing Guide for local setup, the composer review workflow, and PR conventions. Here's a great resource on how to contribute to open source projects.

Credits

I'd like to thank all the people who have contributed to the packages used in this project. Especially Spatie for their great packages, Livewire and Alpinejs for their awesome framework and the Laravel community for their great work. And of course Laravel for their awesome framework, and their Livewire Starter Kit, which this kit is based on.

Contributors

Take a look at the contributors who have helped make this project better. Many thanks!

Donate

If you like this project, please consider donating to support it.

Thanks to:

mortenebak/tallstarter 适用场景与选型建议

mortenebak/tallstarter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 993 次下载、GitHub Stars 达 132, 最近一次更新时间为 2025 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「laravel」 「starter kit」 「livewire」 「tall stack」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mortenebak/tallstarter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mortenebak/tallstarter 我们能提供哪些服务?
定制开发 / 二次开发

基于 mortenebak/tallstarter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 993
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 132
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 132
  • Watchers: 5
  • Forks: 28
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-06