RT2023
RT2023
Explore posts from servers
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
No description
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
sorry, my bad. this is a pdf of the code
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
if you see once I change the tenant from Bamba Acworth to Cielo Acworth the results are the same
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
No description
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
No description
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
what I get on my admin panel is :
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
the blade code is if($this->totalCredit != 0) { $this->result = $this->totalDebit / $this->totalCredit; } else { $this->result = "Cannot divide by zero."; }
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
if($this->totalCredit != 0) { $this->result = $this->totalDebit / $this->totalCredit; } else { $this->result = "Cannot divide by zero."; }
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
the component code is
14 replies
FFilament
Created by RT2023 on 9/17/2023 in #❓┊help
Multi-Tenant Page Approach
sure.
14 replies
FFilament
Created by RT2023 on 9/9/2023 in #❓┊help
Render data from two resources in the same form
thanks
6 replies
FFilament
Created by RT2023 on 9/8/2023 in #❓┊help
sum two fields
Thanks Hugh, this is very helpful
5 replies
FFilament
Created by RT2023 on 8/7/2023 in #❓┊help
Clone record with relationship table
Thanks for the info. Will try this solution and follow up
4 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
An update, I was finally able to make it work with the original trait. The issue was the exclamation mark in the code.
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
I also tried to add a when statement to the protected function getTableQuery() but it seems its not allowed with that function. Hence the table in the dashboard
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
thanks all for your input
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
not the most elegant solution but for my use does the job.
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
this way i was able to filter the users per restaurant. I created a table in the dashboard to see all the users for all restaurants when an admin was logged in.
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
however all I got was a white screen. What I did was to add this code to the user resource / listuser page protected function getTableQuery():Builder{ $restaurantId = auth()->user()->restaurant_id; return User:: where('restaurant_id', '=', $restaurantId); }
29 replies
FFilament
Created by RT2023 on 7/26/2023 in #❓┊help
Trait for user Model
Hugh, I did try the global scope and didn't work either. My code in the scope was $restaurantId = auth()->user()->restaurant_id; $builder->where('restaurant_id','=',$restaurantId);
29 replies