README

Sadržaj

💪 WDR app readme - installs, configs and tools 💪

FIREWALL BAN

mkdir -p /home/willdienstrad/public_html/wdr-cloud-platform/database/settings

FILE AND FOLDERS Permissions - LIVE

Composer - packages updates

Composer.json - post install scripts - maknut --force

Latest Added packages:

Inverse seed generator (iSeed)

Laravel reCAPTCHA

Spatie Settings

Removed packages

Removed development packages -maileclipse, migrator, dibi, prequel

Laravel tools and commands

-   pa queue:table
-   pa queue:failed-table
-   pa migrate:fresh --seed

Informacija o modelima

-   pa model:show Company\\Company
-   pa model:show Employee\\Employee

VSCode - dev optimization

Settings:

Rappasoft livewire table view publish

-php artisan vendor:publish --tag=livewire-tables-views

Application cache, logs and preview clear

php artisan app:clear-app-cache

Composer.json -script correction - post update removed

novo - php artisan vendor:publish --tag=public izbačeno - "@php artisan app:commands:azuriraj-jezike --ansi", izbačeno - "@php artisan app:commands:ocisti-jezike --ansi", "@php artisan lang:update --ansi", "@php artisan lang:publish --ansi",

PHP Composer and Laravel commands

composer global show composer show 'phpstan/*' composer outdated // promjene u composer vendor composer status -v // dependencies composer show -D

Testing - PHPStan and Larastan

composer require --dev phpstan/phpstan composer require --dev larastan/larastan php /home/willdienstrad/public_html/wdr-cloud-platform/vendor/bin/phpstan analyse

Database tools

composer require rezaamini-ir/migrator php artisan vendor:publish --provider="Migrator\MigratorServiceProvider" --tag="views"

https://github.com/Protoqol/Prequel

Schedule and queue

https://stackoverflow.com/questions/54628998/no-scheduled-commands-are-ready-to-run-only-in-schedule

Composer unused packages

composer require --dev icanhazstring/composer-unused vendor/bin/composer-unused

Desktop notifications

https://github.com/jolicode/JoliNotif/blob/main/doc/05-cli-usage.md

Translations and languages

Langs: https://laravel-lang.com/ https://github.com/Laravel-Lang/lang GUI: https://github.com/MohmmedAshraf/laravel-translations URL i sve ostalo: https://github.com/mcamara/laravel-localization?tab=readme-ov-file#collaborators

Laravel default language publish :

php artisan lang:publish

Laravel Lang package

composer require --dev laravel-lang/common php artisan lang:update php artisan lang:add hr php artisan lang:add de

Translations package publish :

php artisan translations:import php artisan translations:publish

Mail - Maileclipse

php artisan laravel-mail-editor:install

Laravel Scheduler - Cron job

Publishes all vendor assets

php artisan vendor:publish

🎉Rappasoft datatables🎉

Datatables - current

php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=livewire-tables-config php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=livewire-tables-views php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=livewire-tables-translations

php artisan vendor:publish --tag=livewire-tables-public

Rappasoft bugs

php artisan clear-compiled && php artisan cache:clear && php artisan route:clear && php artisan view:clear && php artisan config:clear && composer dumpautoload -o

PDF

composer require barryvdh/laravel-dompdf php artisan vendor:publish --provider="Barryvdh\DomPDF\ServiceProvider"

Publish all assets

php artisan vendor:publish --all

PIVOT MODELI

php artisan make:model CompanyFilePivot --pivot

WDR Cloud Platform

💻 Languages and tools

NGINX PHP NODE JS MYSQL HTML 5 CSS 3 Java Script

🚀 Frameworks and technologies

LARAVEL Bootstrap 5 LiveWire VITE

PHP dependencies

Debug bar - pomoć u razvoju

composer require barryvdh/laravel-debugbar --dev

PHPMyAdmin - MySQL

https://db.willdienstrad.app

Ide helper - pomoćnik za razvoj

composer require --dev barryvdh/laravel-ide-helper

Log viewer

URL : https://willdienstrad.app/logs

composer require opcodesio/logs php artisan vendor:publish --tag="logs-config"

Datatables 10.3.1 - alat za tablice

composer require yajra/laravel-datatables-oracle:"^10.3.1"

PDF - DOM PDF - generator PDF-a

composer require barryvdh/laravel-dompdf

Laravel 10 - Bootstrap 5 - Skeleton starter kit

composer require laravel/ui

php artisan ui bootstrap php artisan ui bootstrap --auth

Roles and permissions - Custom many to many RBAC

php artisan make:migration create_roles_permissions_table --create=roles_permissions

php artisan make:migration create_users_permissions_table --create=users_permissions php artisan make:migration create_users_roles_table --create=users_roles

Database - Migrations and Seeders

php artisan migrate

php artisan db:seed

Frontend - VITE bundle - npm

npm install

npm run build

Error stranice

php artisan vendor:publish --tag=laravel-notifications

php artisan vendor:publish --tag=laravel-errors

Folder dozvole

sudo chmod -R 755 wdr-cloud-platform

chmod -R o+w wdr-cloud-platform/storage chmod -R o+w wdr-cloud-platform/bootstrap/cache sudo chmod -R ugo+rwx storage sudo chmod -R 777 storage

PHP packages and dependencies

composer require beyondcode/laravel-query-detector --dev

composer require beyondcode/laravel-query-detector --dev composer require spatie/laravel-health

Health check

https://willdienstrad.app/health?fresh

Folder dozvole

sudo chown -R wdr:wdr /home/wdr/public_html/wdr-cloud-platform/

find /home/wdr/public_html/wdr-cloud-platform/ -type d -exec chmod 755 {} ; find /home/wdr/public_html/wdr-cloud-platform/ -type f -exec chmod 644 {} ;

sudo find ./bootstrap/cache -type d -exec chmod g+s {} ; sudo find ./storage -type d -exec chmod g+s {} ;

sudo chmod -R 775 /home/wdr/public_html/wdr-cloud-platform/storage sudo chmod -R 775 /home/wdr/public_html/wdr-cloud-platform//bootstrap/cache

sudo chown -R :adravolonteri ./storage sudo chown -R :adravolonteri ./bootstrap/cache sudo find ./storage -type d -exec chmod 775 {} ; sudo find ./storage -type f -exec chmod 664 {} ; sudo find ./bootstrap/cache -type d -exec chmod 775 {} ; sudo find ./bootstrap/cache -type f -exec chmod 664 {} ; sudo find ./ -type d -exec chmod 755 {} ; sudo find ./ -type f -exec chmod 644 {} ; sudo setfacl -R -d -m g::rwx ./storage sudo setfacl -R -d -m g::rwx ./bootstrap/cache

node js

sudo chmod -R +x node_modules

Backup downloads

sudo chmod -R a+rwx,o-w storage/

Composer unused packages

Run from shell as composer root => "/root/.config/composer/vendor/insolita/unused-scanner/unused_scanner wdr_scanner_config.php"