laravel
Created at: 2022-05-22 04:06:00 | Updated at: 2025-01-09 12:06:33
composer global require laravel/installer
laravel new nom-del-projecte
cd nom-del-projecte
php artisan key:generate
composer require livewire/livewire
php artisan livewire:publish
<livewire:counter />
npm install preline --save
module.exports = {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
'./node_modules/preline/dist/*.js',
],
theme: {
extend: {},
},
plugins: [
require('preline/plugin'),
],
}
Copiarnpm run dev
composer require filament/filament
php artisan filament:install
php artisan make:filament-user
php artisan serve
C:\Windows\System32\drivers\etc\hosts
127.0.0.1 laravel.test
C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/laravel-app/public"
ServerName laravel.test
<Directory "C:/xampp/htdocs/laravel-app/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Copiaruse Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});No valid image directory found or the category is not valid for the gallery.