πInstall
we now have a good env to start building our app, so let's start by setup Laravel v9 on our PC
Create a Folder
cd Siteslet's now go and create a new project inside the Sites directory
Install Laravel
composer create-project laravel/laravel viltLink With Valet +
it's working now we have a new database you can check it in your phpmyadmin, now let's link and secure the app
valet link
valet secureUpdate .env
now to can go and create a new database you can use Valet+ to do that
for MacOS Users
valet db create viltfor Linux Users
valet db:create viltthe last step to run the project is to edit your .env file with the database info and APP_URL.
APP_NAME=vilt
APP_URL=https://vilt.test
DB_DATABASE=vilt
DB_USERNAME=root
DB_PASSWORD=12345678Clear Cache
Clear cache to reset .env vars
php artisan config:cache
php artisan migrateInstall VILT
composer required queents/viltNow Install VILT
php artisan vilt:installit will ask you to select the UI
we are recommending you to use "FilamentUI" because "UI" is still under development
Select Modules
after install ui it will ask you to select plugins you when to install you can enter it like
1,2,3,4,5,6after the install finish it will ask you to add "FilamentUI" to .env and modules
Run migration
php artisan migrateInstall Roles
new run this command to generate the main role and generate username and password
php artisan roles:installClear View
php artisan optimizeRun Yarn
before you start building your app assets if you are not using macOS you need to change the path of vite.config.js from .config/valet to .valet because the change of path between OS Like
- let keyPath = resolve(homedir(), `.config/valet/Certificates/${host}.key`);
- let certificatePath = resolve(homedir(), `.config/valet/Certificates/${host}.crt`);
+ let keyPath = resolve(homedir(), `.valet/Certificates/${host}.key`);
+ let certificatePath = resolve(homedir(), `.valet/Certificates/${host}.crt`);now install the nodejs packages by use yarn
yarnafter install all packages build your view
yarn buildyou can now login to the admin from /admin/login
Email:
admin@admin.comPassword:
QTS@2022Fix Errors
when you try to access profile you may get an error because of two_factor_confirmed_at filed it's can fix by easy make a new migration and add it
Schema::table('users', function (Blueprint $table) {
$table->timestamp('two_factor_confirmed_at')
->after('two_factor_recovery_codes')
->nullable();
});and run migrate
php artisan migrateLast updated