Giter Site home page Giter Site logo

filamentphp.com's People

Contributors

199ocero avatar 3x1io avatar alexandersix avatar archilex avatar askerakbar avatar atmonshi avatar awcodes avatar aymanalhattami avatar bezhansalleh avatar cklei-carly avatar codewithdennis avatar danharrin avatar devraeph avatar filipfonal avatar hassanzahirnia avatar heloufir avatar invaders-xx avatar laravel-shift avatar lukas-frey avatar marjose123 avatar modrictin avatar mokhosh avatar noxoua avatar pboivin avatar pxlrbt avatar ralphjsmit avatar rupadana avatar saade avatar shanerbaner82 avatar zepfietje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

filamentphp.com's Issues

Add Query string support

It'd be great if filtering by search, version, free/paid, categories, etc. could set query string parameters so it'd be easy to reload the page and keep your place.

Sidebar Subnav Links are Broken

For instance on this page, if you click the Table widgets link under the "Dashboard" section the link is:

https://filamentphp.com/docs/2.x/admin/dashboard#table-widgets

When clicking this link, you are not taken to the sub-heading for Table Widgets. This is because the anchor name for that section does not match and is:

https://filamentphp.com/docs/2.x/admin/dashboard#content-table-widgets

I'm not sure how you would prefer to fix this. Either the links need to be changed to prepend "content-" before the section name OR the "content-" that is included in the anchor name needs to be removed.

Images Not Displaying

Hello guys great job, it seems the images in the websites aren't loaded even on the readme
I am new to open source and would love to help out with this if you could let me know how to help
thanks and great job (new filament user)

Auto-Update plugin documentation

It would be great if the plugin documentation auto-update based on the documentation url provided.

I updated several times my plugin documentation with new features, but the documentation on filamentphp.com stay the same (the first version).

Applying filters does not reset page number

Applying filters should reset the page back to page 1.

Take this example:

No filters are applied and there are 10 pages of plugins.
User goes to page 5 then clicks Developer tools.

The users screen says no plugins found and it isn't clear on screen that they just need to go back to page one.

Feature: Remember Filament Version

Sometimes I go to the docs via google and I land on the wrong filament version. And because I'm dumb sometimes I don't realise it that I'm actually reading an old version of the docs.
I think it would be fantastic if the docs would remember the last version I selected via cookie.
Or are there downsides tho that I am not seeing?

How to validate domain logic and catch model errors?

I'm trying to validate beyond field rules.

More like domain logic.

Let's say "this action isn't allowed because your subscription isn't active and some other reasons"

I've seen this file:
vendor/filament/filament/src/Resources/Pages/EditRecord.php +78

    public function save(bool $shouldRedirect = true): void
    {
        $this->authorizeAccess();

        $this->callHook('beforeValidate');

        $data = $this->form->getState();

        $this->callHook('afterValidate');

        $data = $this->mutateFormDataBeforeSave($data);

        $this->callHook('beforeSave');

        $this->handleRecordUpdate($this->getRecord(), $data);

        $this->callHook('afterSave');

        $shouldRedirect = $shouldRedirect && ($redirectUrl = $this->getRedirectUrl());

        if (filled($this->getSavedNotificationMessage())) {
            Notification::make()
                ->title($this->getSavedNotificationMessage())
                ->success()
                ->send();
        }

        if ($shouldRedirect) {
            $this->redirect($redirectUrl);
        }
    }

calls this one:
vendor/filament/forms/src/Concerns/InteractsWithForms.php +153

    public function validate($rules = null, $messages = [], $attributes = [])
    {
        try {
            return parent::validate($rules, $messages, $attributes);
        } catch (ValidationException $exception) {
            $this->onValidationError($exception);

            $this->dispatchBrowserEvent('expand-concealing-component');

            throw $exception;
        }
    }

this works:

class EditMyModel extends EditRecord
{
...
    public function save(bool $shouldRedirect = true): void
    {
        $record = $this->form->getState();

        // validate more things
        if (!check_something($record['contrato_id'])) {
                Notification::make()->title('Error: this is invalid because reasons')->danger()->send();
                return;
        }
        parent::save($shouldRedirect);
    }
}

but I'm not sure if there's a built-in way of doing this.

Also: what if save() fails? there's no try/catch clause

version in title tag

Would be nice to have the Filament version in the title of the docs. First link is to 2.x docs and last is to 3.x, but there's no way to tell without hovering/clicking

Screenshot 2024-01-06 at 21 41 52

Installing locally without `spatie/laravel-comments`?

I'm trying to install your website on my local machine, to submit some pull requests.
But I don't have a licence for Spaties Laravel Comments package.

When Composer is installing, I get the following prompt and it just hangs there:

- Downloading spatie/laravel-comments (1.1.3)
- Downloading spatie/laravel-comments-livewire (1.2.5)
Authentication required (satis.spatie.be)
Username:
Password:

How can I install this repo locally?

What happened to Tricks?

It seems like tricks have moved to community along with other articles. But apart from that, why are there so few trick articles now? It was good stuff, hahaha. The filter for versions 1, 2 and 3 are not working either. Is the website update still in progress?

can we have first-party plugins in side bar

I have a suggestion about the document page. it's good to have first-party plugins in the sidebar under the products documentation link.

we have them listed on main github repo readme but have it in documentation site gonna help alot

Simple One to Many Tenancy

I believe the docs here are incorrect:
https://filamentphp.com/docs/3.x/panels/tenancy#simple-one-to-many-tenancy

auth()->check() is not available in the booted function, but is available in the scope.

This code example should be:

use Illuminate\Database\Eloquent\Builder;
 
class Post extends Model
{
    protected static function booted(): void
    {
            static::addGlobalScope('team', function (Builder $query) {
                if (auth()->check()) {
                        $query->where('team_id', auth()->user()->team_id);
                        // or with a `team` relationship defined:
                        $query->whereBelongsTo(auth()->user()->team);
                }
            });
    }
}

Pagination at Plugins page shows wrong page numbers on mobile screen size

When going through the pages with plugins (https://filamentphp.com/plugins), with the filters as shown in the screenshot below, the pagination shows wrong page numbers when you go from page 2 (second last) to page 3 (last).

I've checked it with the following browsers:

On mobile Android phone:

  • Brave version 1.56.20, Chromium 15.0.5790.171
  • Chrome version 115.0.5790.166

Desktop (only happens on the smaller breakpoints):

  • Chrome version 115.0.5790.170 (Official Build) (x86_64)
  • Brave version 1.56.20 Chromium: 115.0.5790.171 (Official Build) (x86_64)

filamentphp com plugins pagination bug

Documentation suggestion

Maybe this info would be helpful in the "Plugin development" section of the documentation

Setup Filament in local repository

If you want to contribute to Filament you might want to to test it in a real Laravel project.

  • Fork the filament repository
  • Create your own branch, example patch-2.x
  • Create a Laravel app
  • Clone the filament repository into the root of your Laravel app
  • Checkout your patch-2.x branch
|-Laravel app
   |-app/
   |-filament/

In composer.json

"repositories": [
    {
        "type": "path",
        "url": "filament/packages/*",
        "options": {
            "symlink": true
        }
    }
],
"require": {
    "filament/filament": "patch-2.x as 2.x-dev",
    "filament/forms": "patch-2.x as 2.x-dev",
    "filament/tables": "patch-2.x as 2.x-dev",
}
composer update

Star count does not reflect github star count

Description:
Currently, the star count displayed in the Plugin Store does not take into account the stars obtained by plugins from their corresponding GitHub repositories. As a result, the star count in the Plugin Store does not show the total amount of stars.

Example:

Translation manager plugin:
Screenshot 2023-09-05 at 09 26 27
Screenshot 2023-09-05 at 09 26 37

Database Schedule:
Screenshot 2023-09-05 at 09 28 28
Screenshot 2023-09-05 at 09 28 35

Plugins I've come across with this issue:
https://filamentphp.com/plugins/saade-laravel-log
https://filamentphp.com/plugins/kenepa-translation-manager
https://filamentphp.com/plugins/solution-forest-tree
https://filamentphp.com/plugins/husam-database-schedule

sry

never mind

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.