Lux Auram
Lux Auram
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
I've tried to add this but didnt work...
location ^~ /filament {
try_files $uri $uri/ /index.php?$query_string;
}
location ^~ /filament {
try_files $uri $uri/ /index.php?$query_string;
}
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
I've just found this, i'm gonna read it even if it's filament 2.x https://v2.filamentphp.com/tricks/fix-filament-assets-nginx
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
and what about ->viteTheme()? Even if i don't have any custom theme
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
Do i have to put anything into the AppServiceProvider? Or into the AdminPanelProvider? I really have no clue....
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
I've just changed that... but nothing happened... i really think it's not loading style or even nor alpine and js
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
server {
listen 80;
listen [::]:80;
server_name MY_DOMAIN;
root /var/www/MY_DIR/MY_DIR/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";

index index.html index.htm index.php;

charset utf-8;

location / {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

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:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}

location ~ /\.(?!well-known).* {
deny all;
}
}
server {
listen 80;
listen [::]:80;
server_name MY_DOMAIN;
root /var/www/MY_DIR/MY_DIR/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";

index index.html index.htm index.php;

charset utf-8;

location / {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

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:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}

location ~ /\.(?!well-known).* {
deny all;
}
}
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
i created my .conf file using the one on laravel... any ideas where i can find a better one? Cause mine is actually this:
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
i'll take a look but... i have the "typed content", i just don't have the style and the js... what can be wrong so?
17 replies
FFilament
Created by Lux Auram on 5/26/2024 in #❓┊help
Dafault Css/Tailwind Not working in production
in the console is everything red of course... a lot of these "forms.css:1

Failed to load resource: the server responded with a status of 502 (Bad Gateway)" A lot of these as well "module.esm.js:553 Alpine Expression Error" and other errors like these "Uncaught TypeError: Cannot read properties of undefined (reading 'isOpen')" (due to alpine and tailwind error i supposed) Any clue?
17 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
(Sorry for the bothering dude but i'm noob af. Like a lot. I'm from fashion retail and I've just swapped my life)
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
Occhei... so... I don't knwo... I mean this last piece of code was just copy/pasted to see if something changed xD Is it correct? Do I have to keep it? And if yes how do I create this func in the create page? like literally.
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
because of this:
->createOptionUsing(function (array $data, Album $record): void {
$record->author()->associate($data['album_id']);
$record->save();
})
->createOptionUsing(function (array $data, Album $record): void {
$record->author()->associate($data['album_id']);
$record->save();
})
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
I'm receiving this
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
App\Filament\Resources\PhotoResource::App\Filament\Resources\{closure}(): Argument #2 ($record) must be of type App\Models\Album, null given, called in
App\Filament\Resources\PhotoResource::App\Filament\Resources\{closure}(): Argument #2 ($record) must be of type App\Models\Album, null given, called in
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
(from the PhotoResource)
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
now I try to create a new one
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
Jesus it worked -.- it was just the fillable problem.. I mean I've tried with an existing album and I'm getting the link both with user_id and album_id
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
I try to :fresh and I let u know
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
it shows up the name but if I decide to see just ids they don't show up
58 replies
FFilament
Created by Lux Auram on 9/12/2023 in #❓┊help
Retriving album_id from a relationships - Select::make('album:id)
it's like i'm no getting the album ids at all...
58 replies