المشاكل

المشاكل التي تم العثور عليها

Found 20 issues

First time here? 👋

Welcome to TomatoPHP.

Find a PR is an open-source site that is built to help developers find projects so that they can submit their very first pull request.

If you're a contributor looking to find a project to contribute to, feel free to browse through the list below.

If you're a maintainer looking to list your project on Find a PR, you can read how to do this in the documentation.

bug

When building the URLs there are tenancy checks like the following

if(filament()->getTenant()){
  return redirect()->to(url(filament()->getCurrentPanel()->getId() .'/'. filament()->getTenant()->id . '/media?folder_id='.$arguments['record']['id']));
}

filament()->getCurrentPanel()->getId()

However, these calls break when the tenancy model has a route key other than id, for example, a slug key.

Navigating folders begins with the correct URL app/example/folders but then clicking a folder attempts to redirect to app/7/media?folder_id=3 which results in a 404

off the top of my head, the solution is probably to check filament()->getTenant()->getRouteKey()

I wouldn't mind submitting a PR to solve this but I'd imagine its in more areas.

View more
1 comment 👍 1
ainesophaur

ainesophaur

4th Aug 2024 @ 02:17

bug
View more
1 comment
khanakia

khanakia

6th Sep 2024 @ 16:44

enhancement

I'd would like to know how to customize the invoice form, for example i'd like to use my products model on items repeater, thanks for the answer

View more
1 comment
jesus9314

jesus9314

5th Sep 2024 @ 03:09

enhancement

Hi, any settings or configuration i could set to use panel other than AdminPanelProvider?

I guess the issue is, it is being fixed and limited to AdminPanelProvider only.

View more
sairiz

sairiz

3rd Sep 2024 @ 20:05

bug

Hello,

when you try to run an command thats has a "question/choice", the script aborted and throws an exception.

Like this in your command handle

$this->choice(
    'Choose import type',
    ['CH', 'AT', 'DE'],
    0,
    null,
    true
);

Undefined constant "STDIN"

View more
1 comment
DGINXREAL

DGINXREAL

16th Jul 2024 @ 16:51

bug

why this error?

i am for admin use Users table for subs use Restraunt table.

inside model use HasPlanSubscriptions; +

        ->tenantBillingProvider(new FilamentSubscriptionsProvider())
            ->requiresTenantSubscription()

in appservice provider

```

FilamentSubscriptions::register( \TomatoPHP\FilamentSubscriptions\Services\Contracts\Subscriber::make(\App\Models\Restraunt::class) ->name('Restraunt') ->model(\App\Models\Restraunt::class) );

View more
3 comments
bahramzade

bahramzade

25th Sep 2024 @ 20:08

enhancement

The 'local' => true only prevents the user from seeing it in the navigation bar (I checked the source code). However, the page is still accessible through the URL. Is it possible to add an optional function to address this issue?

View more
1 comment
rolland97

rolland97

18th Jul 2024 @ 07:21

bug help wanted

in my case my notes doesnt have any edit or delete buttons. image

View more
9 comments
Milad-Sarli

Milad-Sarli

26th Jul 2024 @ 10:51

enhancement

I ran into a problem when trying to extend the user profiles with additional custom fields and I published the user resources using php artisan filament-users:publish I could not save the user profile due to the error 'filament Property [password] does not exist on this collection instance'.

It was working fine when I set "publish_resource" to false.

I compared the /src/UserResource.php with the /stub/UserResource.php and noticed several differences. After migrating these differences to the published files , saving a user works fine again.

It seems that the stubs are using an older version and are not compatible with the actual main package version.

View more
1 comment
StarrrLiteNL

StarrrLiteNL

18th Sep 2024 @ 12:54

enhancement

At the moment there is no integration with Filament Shield.

When running php artisan shield:generate --all no policy for Filament Artisan is made.

View more
1 comment
NSBP-dev

NSBP-dev

26th Jul 2024 @ 16:29

bug

stacktrace:

ErrorException:
foreach() argument must be of type array|object, null given

  at C:\laragon\www\x-file\vendor\spatie\laravel-ignition\src\ContextProviders\LaravelLivewireRequestContextProvider.php:47
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'foreach() argument must be of type array|object, null given', 'C:\\laragon\\www\\x-file\\vendor\\spatie\\laravel-ignition\\src\\ContextProviders\\LaravelLivewireRequestContextProvider.php', 47)
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:255)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(2, 'foreach() argument must be of type array|object, null given', 'C:\\laragon\\www\\x-file\\vendor\\spatie\\laravel-ignition\\src\\ContextProviders\\LaravelLivewireRequestContextProvider.php', 47)
     (C:\laragon\www\x-file\vendor\spatie\laravel-ignition\src\ContextProviders\LaravelLivewireRequestContextProvider.php:47)
  at Spatie\LaravelIgnition\ContextProviders\LaravelLivewireRequestContextProvider->getLivewireInformation()
     (C:\laragon\www\x-file\vendor\spatie\laravel-ignition\src\ContextProviders\LaravelLivewireRequestContextProvider.php:36)
  at Spatie\LaravelIgnition\ContextProviders\LaravelLivewireRequestContextProvider->toArray()
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\Report.php:300)
  at Spatie\FlareClient\Report->allContext()
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\FlareMiddleware\RemoveRequestIp.php:11)
  at Spatie\FlareClient\FlareMiddleware\RemoveRequestIp->handle(object(Report), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Report))
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\FlareMiddleware\AddEnvironmentInformation.php:16)
  at Spatie\FlareClient\FlareMiddleware\AddEnvironmentInformation->handle(object(Report), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Report))
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\FlareMiddleware\AddGlows.php:26)
  at Spatie\FlareClient\FlareMiddleware\AddGlows->handle(object(Report), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Report))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\Flare.php:473)
  at Spatie\FlareClient\Flare->applyMiddlewareToReport(object(Report))
     (C:\laragon\www\x-file\vendor\spatie\flare-client-php\src\Flare.php:443)
  at Spatie\FlareClient\Flare->createReport(object(ViewException))
     (C:\laragon\www\x-file\vendor\spatie\ignition\src\Ignition.php:380)
  at Spatie\Ignition\Ignition->createReport(object(ViewException))
     (C:\laragon\www\x-file\vendor\spatie\ignition\src\Ignition.php:309)
  at Spatie\Ignition\Ignition->renderException(object(ViewException))
     (C:\laragon\www\x-file\vendor\spatie\laravel-ignition\src\Renderers\ErrorPageRenderer.php:39)
  at Spatie\LaravelIgnition\Renderers\ErrorPageRenderer->render(object(ViewException))
     (C:\laragon\www\x-file\vendor\spatie\laravel-ignition\src\Renderers\IgnitionExceptionRenderer.php:20)
  at Spatie\LaravelIgnition\Renderers\IgnitionExceptionRenderer->render(object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:694)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithCustomRenderer(object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:679)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:663)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:642)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:556)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:473)
  at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51)
  at Illuminate\Routing\Pipeline->handleException(object(Request), object(ViewException))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php:50)
  at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:78)
  at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49)
  at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:121)
  at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:64)
  at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37)
  at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67)
  at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Router.php:805)
  at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Router.php:784)
  at Illuminate\Routing\Router->runRoute(object(Request), object(Route))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Router.php:748)
  at Illuminate\Routing\Router->dispatchToRoute(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Routing\Router.php:737)
  at Illuminate\Routing\Router->dispatch(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:200)
  at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:144)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\livewire\livewire\src\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware.php:19)
  at Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\barryvdh\laravel-debugbar\src\Middleware\InjectDebugbar.php:66)
  at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull.php:27)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TrimStrings.php:36)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance.php:99)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Http\Middleware\HandleCors.php:49)
  at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Http\Middleware\TrustProxies.php:39)
  at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (C:\laragon\www\x-file\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (C:\laragon\www\x-file\public\index.php:51)
View more
1 comment
rolland97

rolland97

19th Jul 2024 @ 04:25

bug

php artisan migrate INFO Running migrations.

2021_04_14_141211_update_locations_tables ...................................... 1s DONE 2021_04_14_141222_create_locations_table ................................. 172.50ms DONE 2021_04_14_182305_fill_all_vars ........................................... 68.16ms FAIL

PDOException

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:24 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕ 23▕ $areas = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/areas.sql')); ➜ 24▕ DB::connection()->getPdo()->exec($areas); 25▕ 26▕ $currencies = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/currencies.sql')); 27▕ DB::connection()->getPdo()->exec($currencies); 28▕

  +27 vendor frames 

28 artisan:13 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

I tried to run php artisan migrate and get this error: mau@Maus-MBP filament % php artisan migrate

INFO Running migrations.

2021_04_14_141211_update_locations_tables ...................................... 1s DONE 2021_04_14_141222_create_locations_table ................................. 172.50ms DONE 2021_04_14_182305_fill_all_vars ........................................... 68.16ms FAIL

PDOException

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:24 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕ 23▕ $areas = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/areas.sql')); ➜ 24▕ DB::connection()->getPdo()->exec($areas); mau@Maus-MBP filament % php artisan migrate

INFO Running migrations.

2021_04_14_182305_fill_all_vars ............................................ 5.75ms FAIL

PDOException

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'

at vendor/tomatophp/filament-locations/database/migrations/2021_04_14_182305_fill_all_vars.php:18 14▕ */ 15▕ public function up() 16▕ { 17▕ $countires = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/countries.sql')); ➜ 18▕ DB::connection()->getPdo()->exec($countires); 19▕ 20▕ $citites = \Illuminate\Support\Facades\File::get(base_path('vendor/tomatophp/filament-locations/database/data/cities.sql')); 21▕ DB::connection()->getPdo()->exec($citites); 22▕

  +27 vendor frames 

28 artisan:13 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

Please help to solve this problem

View more
mauphung

mauphung

31st Aug 2024 @ 22:56

enhancement

Hi @3x1io is good to have Breadcrumbs or navigation to back to parent folders from sub folders.

View more
mstrihi

mstrihi

1st Aug 2024 @ 18:45

help wanted

Does this support the user register and auto creating a panel?

View more
5 comments
slamcoderpt

slamcoderpt

2nd Sep 2024 @ 23:57

help wanted
View more
5 comments
ophaant

ophaant

30th Sep 2024 @ 02:03

enhancement

Hi @3x1io how we can secure our folders / files to show only for auth users only.

thanks

View more
3 comments
mstrihi

mstrihi

25th Jul 2024 @ 13:19

help wanted

Does your package support private disks, like S3, and how can we set it to private?

View more
2 comments
mebron

mebron

25th Sep 2024 @ 07:07

help wanted

Screenshot 2024-09-28 at 02 59 21

View more
3 comments
bahramzade

bahramzade

27th Sep 2024 @ 22:59

bug

The permission is not working for me. I have the shield plugin does it have something to do with me having a Settings custom page because it is not working for the PWA Setting Page

View more
2 comments
Gjentii

Gjentii

23rd Sep 2024 @ 13:43

enhancement

Having a settings table might not be that unusual, maybe you could rename the table in something more specific, something like pwa_settings.

View more
1 comment
fabiov

fabiov

18th Sep 2024 @ 20:21