🥷 Hi! My name is Bezhan
I am a full-stack developer, mainly working with Laravel, TALL stack & VueJs. I work for Roshan as an Application Developer, building innovative Applications for Mobile and Web in Telecom Industry!
A Simple & Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel
License: MIT License
I am trying to restrict access to Exception
page to certain roles only using filament-shield
i.e. admin
but all the users are able to see and access it. is there any specific steps I need to follow apply generated policy to restrict access ?
our requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires bezhansalleh/filament-exceptions ^1.0 -> satisfiable by bezhansalleh/filament-exceptions[1.0.0].
- bezhansalleh/filament-exceptions 1.0.0 requires bezhansalleh/filament-addons ^1.0 -> found bezhansalleh/filament-addons[dev-feature/chip-column, dev-main, v0.0.0, ..., 0.0.4] but it does not match the constraint.
When exceptions are viewed, all relevant information are displayed except the message
Hey, can you add customization for isScopedToTenant in your exception resource. I need to give isScopedToTenant false.
I have the next issue https://flareapp.io/share/dPb918Nm
I can't provide after what this was happened, because I missed the moment when it began to throw exception.
After disabling the blade-icons
components in favor of @svg blade directive, I'm encountering an error indicating missing components when using this package.
Hi! I've noticed a problem with SPA mode. Line numbers and syntax highlighing aren't visible when viewing an exception. Refreshing the browser while on the exceptions page fixes the issue. I'm guessing the problem is that the assets aren't being loaded when using wire:navigate
to navigate to the exceptions page.
In Laravel 11 ExceptionHandler removed
What i do?
<?php
namespace App\Exceptions;
use BezhanSalleh\FilamentExceptions\FilamentExceptions;
class Handler extends ExceptionHandler
{
...
public function register()
{
$this->reportable(function (Throwable $e) {
if ($this->shouldReport($e)) {
FilamentExceptions::report($e);
}
});
...
}
I got error trim(): Argument #1 ($string) must be of type string, Filament\Support\Enums\IconPosition given
when i published filament component with command php artisan vendor:publish filament-views
.
I got this error without changes any code on filament-views component. is this possible from this package or filament it self, cause the error is coming at file resources/views/vendor/filament/components/tabs/item.blade.php in e at line 56
?
When array exists in the elements of $values
, the page errors out with ErrorException(code: 0): Array to string conversion
.
Hey,
Can you allow for custom model?
I'm using multiple database tenancy so need to modify the model to use the central connection :)
Thanks
Hi,
This plugin is missing Filament V3 installation info:
4. Register the plugin for the Filament Panel
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
\BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin::make()
]);
}
Steps to reproduce the bug:
Use named bindings in a database query, for example:
DB::select('select * from users where id = :id', bindings: ['id' => 1])
In my case, I have a stored procedure in another Oracle OCI connection that is called in the same manner, using named bindings.
When there is a query error, the package saves the bindings, but within resources/components/query-preview.blade.php, there is a section of code that retrieves the key and adds 1:
...
@foreach ($query['bindings'] as $key => $value)
<div class="flex px-4 py-2">
<div class="py-2 font-mono text-gray-500 basis-1/12 dark:text-gray-400">
{{ $key + 1 }}
</div>
<div
class="px-4 py-2 font-medium text-gray-500 rounded-lg basis-11/12 dark:text-gray-200 bg-gray-950/5 dark:bg-white/5">
{{ $value }}
</div>
</div>
@endforeach
...
Since the key is a string due to the named bindings, this results in an "Unsupported operand types: string + int" error.
The component should handle named bindings correctly without throwing an error.
The application throws an "Unsupported operand types: string + int" error when named bindings are used and the key is a string.
"bezhansalleh/filament-exceptions": "^2.1"
PHP: 8.2.1
Laravel: 10.48.14
Operating System: WSL with Ubuntu 20.04
To fix this issue, I suggest adding a validation to check if the key is an integer before performing the addition. Here is the proposed change:
File: resources/components/query-preview.blade.php
...
@foreach ($query['bindings'] as $key => $value)
<div class="flex px-4 py-2">
<div class="py-2 font-mono text-gray-500 basis-1/12 dark:text-gray-400">
{{ is_int($key) ? ($key + 1) : $key }}
</div>
<div
class="px-4 py-2 font-medium text-gray-500 rounded-lg basis-11/12 dark:text-gray-200 bg-gray-950/5 dark:bg-white/5">
{{ $value }}
</div>
</div>
@endforeach
...
This modification ensures that if the key is an integer, it will be incremented by 1. If it is a string, it will be displayed as-is, preventing the "Unsupported operand types: string + int" error.
Feel free to adapt this to better fit the style and requirements of your bug report and pull request.
/** Show or hide in navigation/sidebare */
'navigation_enabled' => true,
/** Sort order, if shown. No effect, if navigation_enabled it set to false. */
'navigation_sort' => 10,
Still on top.
Also how do i add this to a navigation group?
I've requested PR for localization en
Hey in your latest update there is no error record insert to database. Exception table is always 0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.