afatmustafa
afatmustafa
Explore posts from servers
FFilament
Created by afatmustafa on 7/23/2024 in #❓┊help
URL Query Parameters on Filament Resource
What refreshes the page is that the user adds the data from the phone and the phone rings while entering, etc. I think I will do it with session, I just wondered if there was a helper or package for this.
8 replies
FFilament
Created by afatmustafa on 7/23/2024 in #❓┊help
URL Query Parameters on Filament Resource
Or is there an easy way to use Laravel's old() function?
8 replies
FFilament
Created by afatmustafa on 7/23/2024 in #❓┊help
URL Query Parameters on Filament Resource
Hmm, I can remove the wizard is there any possibility to do this in a normal resource form? Without Session.
8 replies
FFilament
Created by afatmustafa on 10/11/2023 in #❓┊help
Use Spatie Translations with Morph Relation
The only difference I see is that there is a Morph relationship here, otherwise everything seems normal.
5 replies
FFilament
Created by afatmustafa on 9/27/2023 in #❓┊help
Translatable Select Data
No description
12 replies
FFilament
Created by afatmustafa on 9/27/2023 in #❓┊help
Translatable Select Data
Of course
Select::make('product_category_id')
->label('Ürün Kategorisi')
->relationship(name: 'productCategory', titleAttribute: 'title')
->searchable()
->preload()`
Select::make('product_category_id')
->label('Ürün Kategorisi')
->relationship(name: 'productCategory', titleAttribute: 'title')
->searchable()
->preload()`
12 replies
FFilament
Created by afatmustafa on 9/27/2023 in #❓┊help
Translatable Select Data
It's just ProductResource
12 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
I already did 😆
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Okay, it's working now, thanks.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
No description
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Hi, now that I am available, you have already published it. I'll check it right away.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Thanks, it's 00:15 here too. Good night.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
You're great
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Thanks a lot for your quick response and solution.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
The first thing I did was to check the parameters of the relationship function.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Yes, exactly.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Yes, that was actually the first solution I was looking for when I started using the package.
33 replies
FFilament
Created by afatmustafa on 9/24/2023 in #❓┊help
Using the options function in SelecTree.
Actually my relationship is already belongsTo, the reason I use options is that you use null as the parent_id value in the query. I use -1.
33 replies
TCTwill CMS
Created by afatmustafa on 7/28/2023 in #👊support
Disabling automaticNavigation from Capsules
I solved the problem by overriding the registerCapsule() function in TwillPackageServiceProvider which extends in SomeCapsuleServiceProvider.
class SomeCapsuleServiceProvider extends TwillPackageServiceProvider
{
protected function registerCapsule(string $name): void
{
$namespace = $this->getCapsuleNamespace();

$namespace .= '\\Twill\\Capsules\\' . $name;

$dir = $this->getPackageDirectory() . DIRECTORY_SEPARATOR .
'src' . DIRECTORY_SEPARATOR .
'Twill' . DIRECTORY_SEPARATOR .
'Capsules' . DIRECTORY_SEPARATOR . $name;

\A17\Twill\Facades\TwillCapsules::registerPackageCapsule($name, $namespace, $dir, automaticNavigation: false);
}
}`
class SomeCapsuleServiceProvider extends TwillPackageServiceProvider
{
protected function registerCapsule(string $name): void
{
$namespace = $this->getCapsuleNamespace();

$namespace .= '\\Twill\\Capsules\\' . $name;

$dir = $this->getPackageDirectory() . DIRECTORY_SEPARATOR .
'src' . DIRECTORY_SEPARATOR .
'Twill' . DIRECTORY_SEPARATOR .
'Capsules' . DIRECTORY_SEPARATOR . $name;

\A17\Twill\Facades\TwillCapsules::registerPackageCapsule($name, $namespace, $dir, automaticNavigation: false);
}
}`
4 replies
TCTwill CMS
Created by afatmustafa on 7/28/2023 in #👊support
Disabling automaticNavigation from Capsules
Or being able to change the title would work too.
4 replies