Bruno Pereira
Bruno Pereira
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
it worked for me with filament built in multi tenancy, if isnt working for you you can revert it.
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
hmm then I don't know
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
now you need to test it
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
looks right
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
it's missing the APP_DOMAIN
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
in the session domain the "." needs to be there, it's not a typo
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
app_url includes the protocol http or https
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
both
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
Thats what I had to do to make filament with sub domain tenancy work.
20 replies
FFilament
Created by Alnuaimi on 1/9/2025 in #❓┊help
I am currently getting a CORS message in my console on my subdomains
I had the same problem a couple months ago and It solved by putting this in the env file: SESSION_DOMAIN='.cyber.com' APP_DOMAIN='cyber.com' and then run:
php artisan config:cache

php artisan cache:clear
php artisan config:cache

php artisan cache:clear
20 replies
FFilament
Created by Mokatchi on 1/8/2025 in #❓┊help
How to make stat widget vertical
you have to create a custom theme and add that to the css file. https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
12 replies
FFilament
Created by grardb on 1/4/2025 in #❓┊help
Is it possible to send POST data with `MenuItem::postAction()`?
thats one way to handle it
7 replies
FFilament
Created by grardb on 1/4/2025 in #❓┊help
Is it possible to send POST data with `MenuItem::postAction()`?
Route::post('locale/{locale}', SetUserLocale::class)->name('locale.update');
Route::post('locale/{locale}', SetUserLocale::class)->name('locale.update');
and then on the controller method have
(Request $request, $locale) {

}
(Request $request, $locale) {

}
and then
route('locale.update',['locale', $yourlocale])
route('locale.update',['locale', $yourlocale])
7 replies
FFilament
Created by grardb on 1/4/2025 in #❓┊help
Is it possible to send POST data with `MenuItem::postAction()`?
how do you have your route defined?
7 replies
FFilament
Created by grardb on 1/4/2025 in #❓┊help
Is it possible to send POST data with `MenuItem::postAction()`?
route('locale.update',['locale', $yourlocale])
7 replies
FFilament
Created by Matthew on 1/3/2025 in #❓┊help
Filters not returning data in query when using ->multiple()
Oh I see, in this you're not preloading the data, but initially you were, maybe that was the problem because the builder wasnt getting any data.
26 replies
FFilament
Created by Matthew on 1/3/2025 in #❓┊help
Filters not returning data in query when using ->multiple()
damn it. Best of luck and share the solution if you find it 🙂
26 replies
FFilament
Created by Matthew on 1/3/2025 in #❓┊help
Filters not returning data in query when using ->multiple()
->default($userModel::where('id',auth()->id())->first()->pluck('name', 'id')) ? or in a closure
26 replies
FFilament
Created by Matthew on 1/3/2025 in #❓┊help
Filters not returning data in query when using ->multiple()
just went to the docs how to query json using Query Builder, don't know if it works :/
26 replies
FFilament
Created by Matthew on 1/3/2025 in #❓┊help
Filters not returning data in query when using ->multiple()
->query(fn (Builder $query, $data): Builder => $query->whereJsonContains('collaborators_id',$data)) ?
26 replies