Download the PHP package manojkiran/filament-quick-view without Composer

On this page you can find all versions of the php package manojkiran/filament-quick-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-quick-view

Filament Quick View

Show a related record in a slide-over, straight from a table column or an infolist entry, without leaving the page.

The value looks like a link with an eye icon. A click opens a slide-over with a few titled groups of labelled values, and a button opens the record's own page.

Requirements

Installation

The service provider is auto-discovered.

Usage

QuickViewColumn extends Filament's TextColumn and QuickViewEntry extends TextEntry, so every method you already know still works. Point them at the resource of the related record:

What is shown in the column

The relationship comes from the column name, so Filament already reads the value for you:

Column name Shown Related record
server.hostname the server's hostname server relationship
server the server's record title ($recordTitleAttribute of the resource) server relationship

With the second form there is no need for getStateUsing():

If the name has no relationship in it, pass one: QuickViewColumn::make('hostname')->quickView(ServerResource::class, 'server'), or find the record yourself with ->quickViewRecord(fn ($record) => ...). Call ->state() after quickView() to show something else.

What opens in the slide-over

The click opens a slide-over (a normal Filament Action) with an "Open full page" button to the resource's view page. It is only available when the user may canView the related record.

By default the content is the infolist of the resource. ->quickView(ServerResource::class) renders ServerResource::infolist(), the same method Filament uses for the resource's View page, bound to the related record. There is nothing to define twice.

This needs the infolist to be defined on the resource (public static function infolist(Schema $schema): Schema). If your resource doesn't define one, or builds it inside its ViewRecord page, the slide-over is empty: pass ->infolist(...) as shown below.

Your own infolist

Pass a schema instead of using the resource's infolist. It is bound to the related record, so TextEntry::make('name') shows server.name:

The resource is optional when you give an infolist. Without it there is no "Open full page" button, and the link is hidden when the model has a policy that denies view. Add ->quickView(ServerResource::class) to get the button and the resource's canView check.

Customising the slide-over

Texts are translatable: php artisan vendor:publish --tag=filament-quick-view-translations.

Testing

In your own tests, QuickViewRegistry::forget(Server::class) removes a registration.

License

MIT


All versions of filament-quick-view with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.0
illuminate/support Version ^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package manojkiran/filament-quick-view contains the following files

Loading the files please wait ...