On domain (host) "/admin" returns 304
Hi, I'm not sure why but on my host when i go to /admin i get the 304 Forbidden.

113 Replies
But also on my localhost works perfecttly.
Thank you, it worked! ❤️
I'm not sure why i get this server error every time when i acces the /dashboard route.

I know why, im just not sure how to fix them.
Hosted

Localhost

those 2 charts, did i missed something?
Couldn’t tell you, anything in the logs on the server.
Could be a server config about the livewire url, could be an error retrieving the records from the db. Just don’t have enough information without any log output.
All right, thank you so much i'll figure it out by myself, i have a idea is from the database, on local i use mysql on host sqlite.
We’re certainly willing to help but we need more information about what is happening than just showing there was a 500 error. 😀
[2025-05-05 21:25:46] staging.ERROR: SQLSTATE[HY000]: General error: 1 no such function: MONTH (Connection: sqlite, SQL: select MONTH(created_at) as month, count() as total from "users" where strftime('%Y', "created_at") = cast(2025 as text) group by "month" order by "month" asc) {"userId":2,"exception":"[object] (Illuminate\Database\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1 no such function: MONTH (Connection: sqlite, SQL: select MONTH(created_at) as month, count() as total from "users" where strftime('%Y', "created_at") = cast(2025 as text) group by "month" order by "month" asc) at /home/forge/parfumer-staging.twodevs.ro/vendor/laravel/framework/src/Illuminate/Database/Connection.php:822)
Yea, i feel so good that you guys are ready to help, but my goal is to learn. 😊
From db.
Are you sure you’re on sqlite locally. Month isn’t an sqlite function.
Or if it is the sqlite version might be out of date and their docs are out of date too.
Noo, on local i'm on mysql, on host i'm on sqlite.
Well, that’s your problem.
Yes
You need to use MYSQL on the server or change your code to not depend on MySQL functions.
I fix it, I've changed the envoierment in .env from sqlite to mysql and added the credentials
That’ll do it too.
😊
Glad you got it working.
Thank you so much again.
No worries.
Hi, i have installed https://filamentphp.com/plugins/filament-spatie-media-library
Filament
Spatie Media Library by Filament - Filament
Filament support for Spatie's Laravel Media Library package.
Everything work perfectlly but i am not sure how to show in frontend the image

Debugging:


Frontend

Did you link the storage directory with
php artisan storage:link
Yes

What does the console in the browser show?

The path probreabbly is not the good one.
Something is off with your disk. If the storage link was correct out of the box the url would be /storage/image/file.jpg.
im just hardcoding to check

In your frontend view you probably need to use the Storage facade for the src attribute.
how, i have no idea 🥺
src=“{{ Storage::disk(..)->url(…) }}”
I use laravel breeze with vue and inertia
Read through the laravel docs on how the storage works.
Im not sure this will work
all right
Storage and URLs in filament aren’t relative to filament they all fall back to Laravel’s filesystem
File Storage - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
I was reading that
I would recommend, taking some time to work through Laravel itself, instead of trying to learn Laravel through filament. But not judging, just think it will benefit you more in the long run. Filament depends on Laravel, not the other way around. But I love your hustle.
Thank you, i think i've found the problem for my images


I have an idea
wait
Thank you, i've learned and understand the MVC, relationships between models etc, its my first time doing images
now i am learning them :))
All good. Just trying to help.
Yes, thank you.
I don’t always have the answers but if I can help you find the answers then I’m happy. I’d rather you discover and understand it than to give you copy and paste code.
I love that, i appriciate
so, when i create a product and upload images the images saves like that

i'm not sure if is ok
something seems off
The images would save to a relative path to the disk,
and if i go to this path

The disk could be local or s3 etc
i see the image
The whole point is that the url path in the database is independent
That’s where the storage facade disk comes into play.
It allows for physically storing the file in multiple environments, without changing the path in the database.
i understand now
FIX IT
yes

Love you for not copy pasting me.
and letting me understood how it works
Glad you want to understand it vs a copy paste solution.
yeah, and i'm trying not to use AI as hard as i can
Time and place for everything. But I respect you for it.
Thank you. 😊
if i give the link to my github repo to throw an eye on the project to see if i am on a good path, will you?
Sure. Just PM it. But also keep in mind that I don’t have all the answers, and good to me isn’t alway good to the client or company.
But I’m happy to help when and where I can.
I do have a day job, so not always readily available. 😅
no problem
i've sended you the pm
But I’m ok with a mentor type role.
Assuming you trust me to be such.
today i've learned a lot, not gonna lie, i was focusing on deploying the project on a host, creating a subdomain connecting it, uploading the project to the host
all those stuff are so amaizing
to actually see how it works everything
I hear yea, but domains also get into more IT type situations, but just focus on one thing at a time.
i can't, everythink is so easy
i dont see a challange to take one thing at a tiem
It’s easy until it isn’t. Just saying. 😂
i'll wait your feedback on the project, im exited about that
But understanding all the underlying concepts will make everything else easier.
yes i agree
But it’s a lot to learn them all up front.
Nothing wrong with one thing at a time.
yea, i'm a little bit random, i knew that i dont need to buy a host and a domain right now but just wanted to do that to learn
and i leaved the project for a few hours, reading on the internet what i need and
Just do it.
I’m the king of random and breaking it. You’re good.
haha
how old are you?
Too old
I’m still ok with FTP if that tells you. 😂
🤣
And my first IDE was notepad.
No way
🤣
There was 0 syntax highlighting when I started.
I’m really not technically that old but in tech terms I am.
omg
i'm just a kid in front of you :))
Tech is tech. Age is only the possibility of experience.
But I’ve been doing this for 20+ years and I still know that I don’t know everything.
I have 22 yo..
I’m 45 😂
god damn.
I'm not sure why but on the getGalleryImagesAttribute method if i change from main to imagesi get the array of the images





But i get this:

again

the main image works, the gallery of the images not
Did you run
php artisan storage:link
Yes
Hmm, forbidden is a weird error for that
works, is showing the image

here, 403 forbbiden

Sorry, probably not the best person to ask when using the spatie package. I tend to not use it.
what is spatie package? 🤣
this?
Yep
oh
There’s nothing wrong with it, I just tend to do my media management differently. So, don’t really use the package.
ohh, all right, i will figure it out
@Rico It would be good if you open new threads for new issues so other people can help without having to dig through 145 messages
Sure, sorry.