VIIKKK
VIIKKK
Explore posts from servers
FFilament
Created by VIIKKK on 10/18/2023 in #❓┊help
translatable compatible?
I indeed made a typo! Thanks for the help!
8 replies
FFilament
Created by VIIKKK on 10/18/2023 in #❓┊help
translatable compatible?
Yes i did. I went through the documentation
8 replies
FFilament
Created by VIIKKK on 10/18/2023 in #❓┊help
translatable compatible?
Yes I did. And everything seems to be working. Except i get [object object] in the input fields. I just can't select a locale
8 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/27/2023 in #questions
Question about hooks.
Thanks a lot!
9 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/27/2023 in #questions
Question about hooks.
Oh ok i see
9 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/1/2023 in #questions
Question about next auth.
yes
15 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/1/2023 in #questions
Question about next auth.
I think i might be confused on how to interact with the session from there. Should it just work when I return an user? Or what is the next step? If you are willing I would love to share some more details in private in about an hour
15 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/1/2023 in #questions
Question about next auth.
Hmm. Still stuck on it. But thanks for the info!
15 replies
TTCTheo's Typesafe Cult
Created by VIIKKK on 6/1/2023 in #questions
Question about next auth.
CredentialsProvider({
name: 'Credentials',
credentials: {
username: { label: "email", type: "text", placeholder: "jsmith" },
password: { label: "password", type: "text", }
},
async authorize(credentials, req) {
const res = await fetch("test/login", {
method: 'POST',
body: JSON.stringify(credentials),
headers: { "Content-Type": "application/json" }
});

const response = await res.json();

if (res.ok && response.token) {
// If the API call was successful and the token exists
const user = {
id: response.token, // Provide a unique identifier for the user // Extract relevant user data from the API response
email: credentials.username, // Use the provided email as the user's email
password: credentials.password // Add any other relevant user data from the API response
};
const check = await CompanyEmployeeRouter.Authorize(user);

console.log(check);

}
CredentialsProvider({
name: 'Credentials',
credentials: {
username: { label: "email", type: "text", placeholder: "jsmith" },
password: { label: "password", type: "text", }
},
async authorize(credentials, req) {
const res = await fetch("test/login", {
method: 'POST',
body: JSON.stringify(credentials),
headers: { "Content-Type": "application/json" }
});

const response = await res.json();

if (res.ok && response.token) {
// If the API call was successful and the token exists
const user = {
id: response.token, // Provide a unique identifier for the user // Extract relevant user data from the API response
email: credentials.username, // Use the provided email as the user's email
password: credentials.password // Add any other relevant user data from the API response
};
const check = await CompanyEmployeeRouter.Authorize(user);

console.log(check);

}
` I guess this won't work (pseudocode) ?
15 replies
FFilament
Created by Crylar on 5/7/2023 in #❓┊help
Is it possible to have some sort of tabs / buttons above the table?
Allright, that was perfect. I overlooked it in the docs. thank you!
22 replies
FFilament
Created by Crylar on 5/7/2023 in #❓┊help
Is it possible to have some sort of tabs / buttons above the table?
It's outside the admin panel, I'm just using the table builder. And the search is implemted by just making some columns searchable.
22 replies
FFilament
Created by Crylar on 5/7/2023 in #❓┊help
Is it possible to have some sort of tabs / buttons above the table?
Can i find this in the docs?
22 replies
FFilament
Created by Crylar on 5/7/2023 in #❓┊help
Is it possible to have some sort of tabs / buttons above the table?
If I have a searchbar, should i also incorporate that in a custom view if I want some buttons next to it? Or could i achieve this using actions?
22 replies
FFilament
Created by VIIKKK on 5/2/2023 in #❓┊help
Issue with translation.
I can also perfectly save a record and it stores in json in my db. But i get the error whenever I try to change the language
5 replies
FFilament
Created by VIIKKK on 5/2/2023 in #❓┊help
Issue with translation.
If so, yes i did
5 replies
FFilament
Created by VIIKKK on 5/2/2023 in #❓┊help
Issue with translation.
Do you mean the create, edit and list page?
5 replies
FFilament
Created by VIIKKK on 3/16/2023 in #❓┊help
Very quick question about relationships.
i'll check the documentation to find out where to add the conditional logic
17 replies
FFilament
Created by VIIKKK on 3/16/2023 in #❓┊help
Very quick question about relationships.
oh yeah that works.
17 replies
FFilament
Created by VIIKKK on 3/16/2023 in #❓┊help
Very quick question about relationships.
yes
17 replies
FFilament
Created by VIIKKK on 3/16/2023 in #❓┊help
Very quick question about relationships.
So might have to check how it's installed. Already cleared cache and compiled views
17 replies