YoussefMaged
YoussefMaged
FFilament
Created by YoussefMaged on 5/15/2024 in #❓┊help
Icons and styling not showing after upgrading from v2 to v3
No description
17 replies
FFilament
Created by YoussefMaged on 1/12/2024 in #❓┊help
Rate Limiting Login Attempts in Filament V2 using Filament-Breezy and Tenancyforlaravel
Hey there! I'm working on something with Filament V2 and using Filament-Breezy for the login stuff. Also, I've got tenancyforlaravel in the mix for handling different users. Here's where I'm kinda stuck: I need to put a limit on how many times someone can try logging in, you know, to keep things secure and stop those annoying brute-force attempts. I've been digging through the Filament docs but can't seem to figure out how to do this with Filament-Breezy and the whole tenancy setup. I want to make it so a user can only try logging in so many times in a set period, and this should work for all users, no matter the tenant. Got any ideas or know any resources that could help me out with this? Or just some tips on the best way to set this up would be awesome. Thanks a bunch for the help!
6 replies
FFilament
Created by YoussefMaged on 9/4/2023 in #❓┊help
Prevent Modal from closing on a specific event
I have an Observer Listener design pattern where on updating event for a Model I trigger a specific logic and I want this logic to halt/prevent the Resource's editing modal from closing if it fails, I tried throwing a new Halt exception but it still closes the modal, any ideas?
8 replies
FFilament
Created by YoussefMaged on 8/22/2023 in #❓┊help
Is there a way to have the same "GlobalSearch" in Form Builder?
Is there a way to have the same "GlobalSearch" input field functionality to search existing data in the database in a Form Builder, I know there are datalists but I want to search based on so many factors and autofill that datalists won't help me with
24 replies
FFilament
Created by YoussefMaged on 8/7/2023 in #❓┊help
Error while uploading the file
I try to upload files locally and it works fine, when I try to upload it on production I get this error response with an empty message:
16 replies
FFilament
Created by YoussefMaged on 8/7/2023 in #❓┊help
Target class [filament] does not exist.
6 replies
FFilament
Created by YoussefMaged on 7/14/2023 in #❓┊help
Tailwind is not working with some classes in my project
I have followed the installation steps here: https://tailwindcss.com/docs/guides/laravel And followed the steps over here too: https://filamentphp.com/docs/2.x/forms/installation#configuring-styles Here are some files that I'm using:
/* resources/css/app.css */

@import "../../vendor/filament/forms/dist/module.esm.css";

@tailwind base;
@tailwind components;
@tailwind utilities;
/* resources/css/app.css */

@import "../../vendor/filament/forms/dist/module.esm.css";

@tailwind base;
@tailwind components;
@tailwind utilities;
/* resources/css/filament.css */
@import "../../vendor/filament/filament/resources/css/app.css";
/* resources/css/filament.css */
@import "../../vendor/filament/filament/resources/css/app.css";
// postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
// postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
// tailwind.config.js
import colors from "tailwindcss/colors";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";

export default {
content: [
"./resources/**/*.blade.php",
"./vendor/filament/**/*.blade.php",
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue",
],
darkMode: "class",
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
...colors,
},
},
},
plugins: [forms, typography],
};
// tailwind.config.js
import colors from "tailwindcss/colors";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";

export default {
content: [
"./resources/**/*.blade.php",
"./vendor/filament/**/*.blade.php",
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue",
],
darkMode: "class",
theme: {
extend: {
colors: {
danger: colors.rose,
primary: colors.blue,
success: colors.green,
warning: colors.yellow,
...colors,
},
},
},
plugins: [forms, typography],
};
// vite.config.js
import { defineConfig } from "vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";

export default defineConfig({
plugins: [
laravel({
input: [
"resources/css/app.css",
"resources/js/app.js",
"resources/css/filament.css",
],
refresh: [
...refreshPaths,
"app/Http/Livewire/**",
"app/Tables/Columns/**",
"app/Forms/Components/**",
],
}),
],
});
// vite.config.js
import { defineConfig } from "vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";

export default defineConfig({
plugins: [
laravel({
input: [
"resources/css/app.css",
"resources/js/app.js",
"resources/css/filament.css",
],
refresh: [
...refreshPaths,
"app/Http/Livewire/**",
"app/Tables/Columns/**",
"app/Forms/Components/**",
],
}),
],
});
42 replies
FFilament
Created by YoussefMaged on 6/15/2023 in #❓┊help
Testing with stancl/tenancy
20 replies