Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Crud Laravel Package

knowfox/crud

Knowfox CRUD for Laravel 5 cuts boilerplate for simple admin panels. Define fields in your Eloquent models and it dynamically generates list, create, and update views for your entities, speeding up basic CRUD interfaces.

View on GitHub
Deep Wiki
Context7

A CRUD generator for Laravel

Frequently asked questions about Crud
Does knowfox/crud work with Laravel 10 or only Laravel 5?
The package is explicitly built for Laravel 5 and has no official support for newer versions like Laravel 10. If you're using Laravel 9/10, you may need to fork or modify the package to ensure compatibility, as it relies on Laravel 5’s core features and conventions.
How do I configure custom validation rules for CRUD forms?
You can define validation rules directly in your Eloquent model’s `$rules` property or use Laravel’s built-in validation methods. The package respects Eloquent’s validation logic, so any rules you set in the model will automatically apply to the generated create/update forms.
Can I override the default Blade templates for list/create/update views?
Yes, you can publish the package’s views using `php artisan vendor:publish --tag=crud-views` and then customize the Blade templates in your local `resources/views/vendor/crud` directory. This allows you to modify the layout, styling, or behavior of the generated views.
Will this package work with non-Eloquent models or custom repositories?
No, knowfox/crud is tightly coupled to Eloquent models and assumes standard Eloquent conventions. If you’re using custom repositories or non-Eloquent data sources (e.g., APIs, GraphQL), this package won’t work out of the box and may require significant customization or a different solution.
How does pagination work for large datasets in the list view?
The package automatically applies Laravel’s default pagination to the list view, using the `paginate()` method on the Eloquent query. You can customize the pagination settings (e.g., items per page) by overriding the query in your model or by modifying the published Blade templates.
Is there built-in support for file uploads or rich text editors?
No, the package doesn’t include built-in support for file uploads or rich text editors. You’ll need to manually integrate these features using Laravel’s file upload helpers or packages like Laravel Collective’s HTML or Spatie’s Media Library, then reference them in your model declarations.
Can I add bulk actions (e.g., delete, export) to the list view?
The package doesn’t natively support bulk actions, but you can extend its functionality by publishing the views and adding custom JavaScript or Blade logic. For example, you could include checkboxes for selection and a bulk action button, then handle the logic in a custom controller method.
How do I handle multi-tenancy or role-based access control (RBAC) with this package?
knowfox/crud doesn’t include built-in RBAC or multi-tenancy features. You’ll need to implement these using Laravel’s built-in middleware (e.g., `auth`, `can`) or packages like Spatie’s Laravel-Permission. Apply these checks in your model declarations or by overriding the generated views.
What happens if I need to add custom business logic to the CRUD workflow?
For simple logic, you can use Eloquent model observers or accessors/mutators. For more complex workflows, you may need to override the package’s generated controllers or views. The package is designed to reduce boilerplate, so custom logic should be abstracted into services or observers rather than mixed into the CRUD declarations.
Are there any known performance issues with large-scale admin panels?
The package dynamically generates views on each request, which could impact performance if not optimized. For large datasets, ensure your Eloquent queries are efficient (e.g., using `select()` to limit columns) and consider caching the generated views if they rarely change. Test under load to identify bottlenecks.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai