Install the package:
composer require servicioslineaonce/starter-kit:^1.0 --dev
Run the installer (interactive mode):
php artisan kitlauncher:install
--auth).--force if overwriting existing files.Post-installation setup:
composer install
npm install
npm run dev
php artisan migrate
Use the package to bootstrap a Laravel project with a modern frontend stack in minutes. Ideal for:
Example (non-interactive):
php artisan kitlauncher:install --ui=primevue --auth --force --no-interaction
resources/js/Pages/ for Inertia components (e.g., Welcome.vue, Dashboard.vue).resources/js/Layouts/AppLayout.vue for shared UI (e.g., headers, footers).resources/js/Components/ (e.g., Button.vue, Alert.vue).Example (PrimeVue Inertia):
<!-- resources/js/Pages/Dashboard.vue -->
<script setup>
import AppLayout from '@/Layouts/AppLayout.vue';
import Welcome from '@/Components/Welcome.vue';
</script>
<template>
<AppLayout>
<Welcome />
</AppLayout>
</template>
app/Livewire/ (e.g., Auth/Login.php).resources/views/ for Blade layouts (e.g., layouts/app.blade.php).<x-wire-button>).Example (WireUI Livewire):
// app/Livewire/Auth/Login.php
public function mount()
{
$this->form = [
'email' => '',
'password' => '',
];
}
<!-- resources/views/auth/login.blade.php -->
<x-wireui.auth.login />
app/Http/Controllers/Auth/ (e.g., LoginController.php).app/Http/Requests/Auth/ (e.g., LoginRequest.php).app/Http/Middleware/ (e.g., Authenticate.php, VerifyCsrfToken.php).// app/Models/User.php
use ServiciosLineaOnce\StarterKit\Traits\TwoFactorAuth;
class User extends Authenticatable
{
use TwoFactorAuth;
}
resources/views/auth/ (e.g., login.blade.php for Livewire or Login.vue for Inertia).SLO_AUTH_REGISTRATION=false
SLO_AUTH_TWO_FACTOR=false
/settings/two-factor/recovery-codes./settings/two-factor in their authenticator app.VerifyTwoFactor protects routes requiring 2FA.resources/js/lib/i18n.js:
import { useI18n } from '@/lib/i18n';
const { locale, setLocale } = useI18n();
lang/es/kit.php or lang/en/kit.php.SetLocale reads from session:
$locale = session('locale', config('app.locale'));
POST /locale/{locale}.php artisan test to execute feature tests in tests/Feature/Auth/.tests/Feature/ExampleTest.php for preset-specific assertions.Middleware Conflicts:
HandleInertiaRequests in bootstrap/app.php.--force to clean up:
php artisan kitlauncher:install --ui=wireui --force
NPM Dependency Conflicts:
--force to purge old dependencies:
npm uninstall @primevue/themes @inertiajs/vue3
npm install
Migration Conflicts:
--force to overwrite migrations.Vite Config Overwrites:
vite.config.js may be lost during preset changes.--force.Check Installed Files:
php artisan kitlauncher:install --dry-run
(View what would be installed without modifying files.)
Auth Debugging:
php artisan session:clear.tail -f storage/logs/laravel.log during auth flows.php artisan tinker to manually verify TOTP:
$user = \App\Models\User::first();
$user->generateTwoFactorSecret();
$user->twoFactorSecret; // Scan this in an authenticator app
Locale Issues:
SetLocale is registered in bootstrap/app.php.session()->get('locale') should reflect the current locale.Custom Presets:
stubs/presets/primevue/ to a new folder (e.g., stubs/presets/myui/).InstallCommand.php to include your preset in the --ui options.Override Stubs:
resources/views/auth/ before installation to preserve them.resources/js/Components/; these won’t be overwritten by --force.Configuration:
config/servicios-linea-once.php:
'auth' => [
'registration' => env('SLO_AUTH_REGISTRATION', false), // Disable registration
'two_factor' => [
'required' => true, // Make 2FA mandatory
],
],
CI/CD Integration:
php artisan kitlauncher:install --ui=react --auth --force --no-interaction
composer install
npm ci
npm run build
php artisan migrate --force
Partial Auth Setup:
php artisan kitlauncher:install --auth --no-interaction
Tailwind Customization:
resources/css/theme-effects.css for preset-specific styles.Livewire + Inertia Hybrid:
Localization Shortcuts:
@lang('kit.welcome') in Blade or {{ __('kit.welcome') }} in Vue/React.use Illuminate\Support\Facades\App;
App::setLocale($request->session()->get('locale'));
Performance:
resources/js/app.js into chunks using Vite’s build.rollupOptions.php artisan view:cache) for Livewire presets.How can I help you explore Laravel packages today?