Skip to content

1.0.1 release

Compare
Choose a tag to compare
@patiencemanzen patiencemanzen released this 11 Aug 13:31
· 25 commits to main since this release

1.0.1- dev release

We all like automated stuff like

php artisan make:cake BananaCake 

that what I was doing for you so you don't have always to create files for filter traditional. 🧨

Just one command 🎉
Let us use our current example of the AirPlane Model and create a new filter:

php artisan make:filter AirPlaneFilter

so it will create the filter file for u, Just in ```bash App\Services\Filters ``

  namespace App\Services\Filters;

  use Patienceman\Filtan\QueryFilter;

  class AirPlaneFilter extends QueryFilter {
      /**
       * public function query($query) {
       *     $this->builder->where('name', 'LIKE', '%' .  . '%')
       * }
       */
  }

🔥 🔥 What best move we make: in the world?

So you may want even to specify the custom path for your filter, Just relax and add it in front of your filter name.
Let's take again our current example.

php artisan make:filter Model/AirPlaneFilter

👋 👋 That is just what magic can make, awesome right?

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT