Download the PHP package markgersaliaph/laravel-crud-generate without Composer
On this page you can find all versions of the php package markgersaliaph/laravel-crud-generate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markgersaliaph/laravel-crud-generate
More information about markgersaliaph/laravel-crud-generate
Files in markgersaliaph/laravel-crud-generate
Package laravel-crud-generate
Short Description My First Ever Package Project
License MIT
Informations about the package laravel-crud-generate
Laravel Breeze React CRUD Generator Package
Introduction
This Laravel package simplifies the process of creating CRUD (Create, Read, Update, Delete) operations specifically for the Laravel Breeze React starter.
Requirements
Before installing, make sure to install Laravel Breeze with React:
Follow the instructions to set up Laravel Breeze with React.
Installation
To install this package, use Composer:
Getting Started
Publish Configuration and React Components
To use the Laravel CRUD Generate package in your Laravel project, you'll need to publish the configuration file and React components. Follow these steps:
-
Publish Configuration File:
Run the following Artisan command to publish the configuration file:
config/laravel-crud-generate.php php artisan crud:generate YourModel
php artisan crud:generate Product
app/Models/Product.php app/Http/Controllers/ProductController.php database/migrations/create_products_table.php resources/js/Pages/Form.jsx resources/js/Pages/List.jsx
Route::resource('products', App\Http\Controllers\ProductsController::class);
## Generating Components with Built-In Components
If you prefer to use built-in components, follow these steps:
1. Open the configuration file located at `config/laravel-crud-generate.php`.
2. Set the `'plain_components'` option to `false`:
This configuration change will enable the use of built-in components such as `Table.jsx` and `Pagination.jsx` in your Laravel project.
Now, when generating components with Laravel CRUD Generate, the components will be included based on the updated configuration.
## Authors
- [Mark Anthony Gersalia](mailto:[email protected]) - Creator and Lead Developer
- [Mardy Dela Cruz](mailto:[email protected]) - Contributor
- [Jp Alcantara](mailto:[email protected]) - Contributor
- [Nelson Estuesta](mailto:[email protected]) - Contributor