tarifss
tarifss
Explore posts from servers
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
automatically solved by latest released
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
->actions([ Tables\Actions\ActionGroup::make([ Tables\Actions\EditAction::make('category_update')->visible(auth()->user()->can('category_update')), Tables\Actions\DeleteAction::make('category_delete')->visible(auth()->user()->can('category_delete')) ->before(function (Action $action,Category $record) { if ($record->products()->exists() || $record->childrens()->exists()){ Notification::make() ->title("Can't delete") ->body('' . $record->name . ' Category Added to a Product or has children') ->danger() ->send(); $action->halt(); } }), ]), ])
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
not working if after removed
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
->actions([ Tables\Actions\ActionGroup::make([ Tables\Actions\EditAction::make('category_update')->visible(auth()->user()->can('category_update')), Tables\Actions\DeleteAction::make('category_delete')->visible(auth()->user()->can('category_delete')) ->before(function (Action $action,Category $record) { if ($record->products()->exists() || $record->childrens()->exists()){ Notification::make() ->title("Can't delete") ->body('' . $record->name . ' Category Added to a Product or has children') ->danger() ->send(); $action->halt(); } }) ->after(function (Action $action,Category $record) { $record->delete(); Notification::make() ->title('Delete') ->body('' . $record->name . ' Category Deleted') ->danger() ->send(); }), ]), ])
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
got this error again for this code Filament\Resources\Pages\ListRecords::Filament\Resources\Pages{closure}(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, called in /var/www/html/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
its working without action group..but i need action group...previously its working but today new update is not working
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
when remove ActionGroup then its working...
17 replies
FFilament
Created by tarifss on 3/18/2024 in #❓┊help
Delete action is not working
->actions([ Tables\Actions\ActionGroup::make([ Tables\Actions\EditAction::make()->visible(auth()->user()->can('category_update')), Tables\Actions\DeleteAction::make()->visible(auth()->user()->can('category_delete')) ->action(function (Category $record) { if ($record->products()->exists() || $record->childrens()->exists()) { Notification::make() ->title('Can't delete') ->body('' . $record->name . ' Category Added to a Product or has children') ->danger() ->send(); return; } else { $record->delete(); Notification::make() ->title('Delete') ->body('' . $record->name . ' Category Deleted') ->danger() ->send(); } }), ]), ])
17 replies
FFilament
Created by tarifss on 2/5/2024 in #❓┊help
Auth login is not working
resources css and js file also
15 replies
FFilament
Created by tarifss on 2/5/2024 in #❓┊help
Auth login is not working
@limewater i did first laravel 9 to 10 then filament v3 upgrading step by step and i also some code copy from demo filamnet github for ex: tailwind config, package json, post css...then npm install and build
15 replies
FFilament
Created by tarifss on 2/5/2024 in #❓┊help
Auth login is not working
i got this same issue, i solved again start step by step upgrading procedure
15 replies
FFilament
Created by tarifss on 2/15/2024 in #❓┊help
Text area use in table column
thanks
4 replies
FFilament
Created by tarifss on 2/5/2024 in #❓┊help
Auth login is not working
oh, but i did v3 upgrading procedure again step by step and solved.
15 replies
FFilament
Created by tarifss on 2/6/2024 in #❓┊help
Route not defined while v3 upgrade
edited
6 replies
FFilament
Created by tarifss on 2/5/2024 in #❓┊help
v3 upgrade issue
tnx, it is solved.
3 replies
FFilament
Created by tarifss on 2/4/2024 in #❓┊help
upgrade v2 to v3
after composer update completed then getting this error PHP Fatal error: Type of App\Filament\Resources\Product\ProductResource\Pages\CreateProduct::$attributes must be Livewire\Features\SupportAttributes\AttributeCollection (as in class Livewire\Component) in /var/www/html/app/Filament/Resources/Product/ProductResource/Pages/CreateProduct.php on line 22 Symfony\Component\ErrorHandler\Error\FatalError Type of App\Filament\Resources\Product\ProductResource\Pages\CreateProduct::$attributes must be Livewire\Features\SupportAttributes\AttributeCollection (as in class Livewire\Component)
5 replies