ahadu/crud

This package/library speeds up the making of basic CRUD's with all the related files just by providing it with the table or the migration column names and their data types.

1.1 2024-12-05 12:27 UTC

This package is auto-updated.

Last update: 2025-06-05 16:50:20 UTC


README

Installation Instructions for Ahadu CRUD Package

Step 1: Add the Package

Use Composer to add the Ahadu CRUD package to your Laravel project:

composer require ahadu/crud

Step 2: Register the Service Provider

After installing the package, you need to register the service provider in your Laravel application. Open the config/app.php file and add the following line to the providers array:

'providers' => [
  // Other Service Providers

ahadu\crud\CrudServiceProvider::class, ],

Step 3: Publish Configuration (if applicable)

If your package has configuration options, you can publish them using the following command:

php artisan vendor:publish --provider="ahadu\crud\CrudServiceProvider"

Step 4: Usage

If you use the command (make sure you have a /pages directory inside your views)

php artisan make:crud ModelNameHere --columns=" datatype:name,datatype:name "

If you use it in a controller

 CRUD::make($modelName,$columnsWithTheirDataType) 

Conclusion

After completing these steps, the Ahadu CRUD package will be ready to use in your Laravel application. If you have any questions or need further assistance, please contact me with ahadu4321@gmail.com.