Links
Laravel - Mix
Off Doc RusLaravel Nuxt
Off Site - Laravel Nuxt
GitHub
CheatSheet Laravel
List
- Laravel Sail
- Laravel Sanctum
- starter Kits:
- Laravel Breeze
- Laravel Jetstream
- Inertia
- Vite (replaced Laravel Mix)
zapaDEV
## base
composer create-project laravel/laravel .
php artisan migrate
## Laravel Inertia project
composer create-project laravel/laravel .
php artisan migrate
composer require inertiajs/inertia-laravel
php artisan inertia:middleware
Laravel 9 && MySQL && Vie.JS && Inertia && Jetstream && Docker
composer create-project laravel/laravel l9mvijd
curl -s "https://laravel.build/l9mvijd" | bash
/d/zapadev/_docker/_sandbox/l9mvijd
/mnt/d/zapadev/_docker/_sandbox/l9mvijd
./vendor/bin/sail up
sail composer require laravel/jetstream
sail artisan jetstream:install inertia
sail npm install
sail npm run dev
sail artisan migrate
Создание нового пользователя
sail artisan tinker
User::factory()->create()
# LG: nkozey@example.org
# PW: password - пароль по умолчанию для каждого пользователя, созданного с помощью фабрики
rosalee30@example.com
Fix white screen
// vite.config.js
server: {
hmr: {
host: 'localhost'
}
}
Отключение регистрации
// config/fortify.php
// закомментировать Features::registration()
'features' => [
// Features::registration(),
Features::resetPasswords(),
// Features::emailVerification(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
// 'window' => 0,
]),
],
sail artisan route:list # посмотреть все маршруты