Virgil
Virgil
Explore posts from servers
TLCTuto's Laravel Corner
Created by MilenKo on 9/13/2024 in #💡filament
Action column Label
Have you also asked this question in the Filament Discord?
4 replies
FFilament
Created by Virgil on 9/23/2023 in #❓┊help
Google Distance Matrix API
I need to calculate the distance to a border.. For instance... I drive from Amsterdam to Paris.. Then I want to know how many kilometers to the Belgium border and then how many kilometers from the Belgium border to the France border and finaly the kilometers to the destination.
8 replies
FFilament
Created by Virgil on 9/23/2023 in #❓┊help
Google Distance Matrix API
Nope, still working on a solution... I'm even looking into the TomTom API, but still no solution found.
8 replies
TLCTuto's Laravel Corner
Created by Obala on 10/3/2023 in #🚀laravel
my routes protected by auth middleware don't redirect to login page
Do you have defined, which route (in the UserController) Laravel has to follow when you're not logged in?
15 replies
TLCTuto's Laravel Corner
Created by Obala on 10/3/2023 in #🚀laravel
my routes protected by auth middleware don't redirect to login page
Hello Obala, Can you show us your web.php file? I think the problem is with the routing.
15 replies
FFilament
Created by wotan6891 on 10/3/2023 in #❓┊help
I installed filament and I can't log in.
Is the user record in the user table of Mysql or something like that?
59 replies
TLCTuto's Laravel Corner
Created by Virgil on 9/23/2023 in #💡filament
Google Distance Matrix API
I want to make a API call to retrieve data with the input of users... We got Location A and Location B, we need to know the total distance., the distance between borders and total traveling time. Maybe in a later stadium it would be nice to combine the route with repeater fields.. But thats a whole lot.
5 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
I think thats the best solution.
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
Maybe you can try to fork the plugin and edit the options in the package. I haven't any experience with that. Maybe you contact the owner of the plugin.
15 replies
TLCTuto's Laravel Corner
Created by samnaghavi on 8/21/2023 in #💡filament
TinyMce in filamentphp as a customField
15 replies
TLCTuto's Laravel Corner
Created by Virgil on 8/20/2023 in #💡filament
Problem with relationmanager
I've solved today also 😁 . But forgot to mention here.. It's like
public function form(Form $form: Form
{
return $form
->schema([
Forms\Components\Select::make('customercontacts_id')
->label('Contactname')
->columnSpan(2)
->relationship(
name: 'customercontacts',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('customer_id', $this->ownerRecord->id ),
)
->preload()
->optionsLimit(5)
->searchable(),
]);
}
public function form(Form $form: Form
{
return $form
->schema([
Forms\Components\Select::make('customercontacts_id')
->label('Contactname')
->columnSpan(2)
->relationship(
name: 'customercontacts',
titleAttribute: 'name',
modifyQueryUsing: fn (Builder $query) => $query->where('customer_id', $this->ownerRecord->id ),
)
->preload()
->optionsLimit(5)
->searchable(),
]);
}
6 replies
FFilament
Created by Virgil on 8/20/2023 in #❓┊help
Relations between two relation managers
Thanks, I will give it a try..
7 replies
FFilament
Created by Virgil on 8/20/2023 in #❓┊help
Relations between two relation managers
But how do I pass a ID from the main table to the query in a relation manager?
7 replies