Samir
GenericEmail not found
You can create as many mailables classes based on. how many different emails and its templates you need. Mine is one such which gets triggered when a buyer sends and inquiry email to a seller. When admin approves then email is sent to seller.
13 replies
GenericEmail not found
This is just an example. You have to create a mailable class and replace the GenericEmail class with yours. You must go through Laravel mail documentation first and use mailable command to generate your class, write email body code and view. check this: https://laravel.com/docs/10.x/mail
13 replies
Deployment Error
I feel it is purely a server configuration issue. Are you on a shared or managed VPS host with limited control? It feels like it is a PHP versioning issue. Many times host providers especially shared hosts allow you to change the php version for domains and sub-domains using their Cpanel which changes the php version but your dependent packages and other settings still default to their base default php version. Do also check your database configuration. Like DB HOST.
66 replies
Filament Custom Page always shows admin panel navigation
Bingo. I got it working. Debugging shows that whenever a Filament Custom Page gets called from anywhere as a URL, the URL parameters passed by the caller are not used for automatically Initialise using the mount('ID or entire Instance as parameter') method in the Filament Custom Page class.
URL parameters are present in a Filament Custom Page as a Super Global Variable which can be assessed
Using $_GET[‘one_of the_url_parameters’] // You can pass ID as a parameter.
Do not create route in web.php for Filament Custom Pages if used for logged-in users. Initialise using mount() like below:
Sharing my entire code in the attachment. This is applicable anywhere wherever one wants to call the Custom Filament Page from a URL
22 replies
Tailwind css are not working in custom page .
No. Your understanding is not correct. Filament comes bundled with Tailwind. It is just that in filament don't have all of Tailwind classes which are being used for the theme. In Tailwind you can define your presets which include only those classes which you want to use. Filament has created its own preset of selected classes. Unfortunately, there is no documentation on the website about tailwind preset classes used in Filament. So, you have to dig into the code. This is why Filament recommends creating your own theme for each panel. In each theme, you can either extend the existing theme (which is recommended) or you can entirely have your own theme with your set of classes.
22 replies
Tailwind css are not working in custom page .
Filament custom pages belong to a specific panel. From my understing, it will render the theme specific to the panel. If you have custom styles, you need to extend the theme. You need to extend tauwing.config.js in your resources/css/filament/<panel_folder>/. All your extra colors must extend. Then build again.
22 replies
Filament Custom Page always shows admin panel navigation
I got this code running in a modal containing Livewire component code. No changes. Just implemented the Livewire component instead of the filament custom page. This component is triggered through Modal action. The custom page is receiving an empty mount. I don't know why. In fact, I am unable to implement any Filament custom pages which need a mount parameter.
22 replies
Filament Custom Page always shows admin panel navigation
This error null occurs only when I try to change the slug and assign as slug = {$id}. When slug is commented out, I am repeatedly getting folowing error when link uses product ID as parameter: Illuminate\Contracts\Container\BindingResolutionException
Unable to resolve dependency [Parameter #0 [ <required> $product_id ]] in class App\Filament\Buyer\Pages\ListProductSellers . As mentioned when I change parameter from product_id to product and change my mount accordingly. Then error is gone but my page has not table result data.
22 replies
Filament Custom Page always shows admin panel navigation
I am clueless why Product::find($produt_id) returing null. I changed my mount a bit. Instead of passing $product_id, I am now passing $product. In the link route now looks like below: . All my error is gone but I dont have any table data. It says no sellers where as I can clearly see I have a list. I have following url showling in broser. http://localhost/buyer/list-product-sellers?product=381 . You can see it is clearly having product ID 381. In my original issue using route in web.php I have everything right but with admin panel sidebar.
22 replies