Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
composer create-project laravel/laravel scanner-crm-> laravel/laravel (v10.2.6)- configure your
.env npm install&npm run dev- rimossi riferimenti a
Userstarter template - creato
app.bladeper template php artisan make:model -mrc Scansioniphp artisan migrateper tabellascansionis
cd ScannerCRM & php artisan serve --host=0.0.0.0
cat /etc/os-release> NAME="Rocky Linux" VERSION="9.2"dnf -y install epel-release && dnf -y install htop net-tools vim git php mysql mysql-server nginx composer- since it requires php >= 8.1:
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpmdnf update
dnf module list php
dnf module enable php:8.1
dnf update
php -v(to check php version)
dnf install php-mysqlnd systemctl start mysqldmysql_secure_installation(set here DB_USER and DB_PASSWORD)mysql -u root -p>create database DB_NAME;(scansioniDB)git clone "https://github.com/Smig0l/ScannerCRM.git"cd ScannerCRMcomposer installvim .env(copiare da .env.sample e settare APP_ENV=production insieme ai parametri per il DB)php artisan migrate(per creare automaticamente la tabellascansionis)php artisan key:generatemv ScannerCRM /usr/share/nginx/chown -R nginx:nginx /usr/share/nginx/ScannerCRM/storage//FIXME: env?chown -R nginx:nginx /usr/share/nginx/ScannerCRM/publicvim /etc/php-fpm.d/www.conf> user / group = nginxsystemctl restart php-fpmmkdir /etc/nginx/sslsudo openssl req -x509 -nodes -newkey rsa:4096 -keyout /etc/nginx/ssl/scansionicrm.key -out /etc/nginx/ssl/scansionicrm.crt -days 365vim /etc/nginx/conf.d/scansionicrm.conf(for the virtualhost block):server { listen 80; listen [::]:80; server_name scansioni.crm.local; return 301 https://$host$request_uri; } server { listen 443 ssl; listen [::]:443 ssl; server_name scansioni.crm.local; root /usr/share/nginx/ScannerCRM/public; ssl_certificate /etc/nginx/ssl/scansionicrm.crt; ssl_certificate_key /etc/nginx/ssl/scansionicrm.key; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php; location ~ \.php$ { fastcgi_pass unix:/run/php-fpm/www.sock; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.(?!well-known).* { deny all; } }systemctl restart nginxsystemctl stop && disable firewalldvim /etc/sysconfig/selinux> disabled