adan/contact

this is the first package

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

Type:contact-form

v1.1.0 2024-07-25 15:00 UTC

This package is auto-updated.

Last update: 2025-03-25 16:26:41 UTC


README

create a folder name adan then run command "composer init" and setup all the configration related to the package then create a service provider "FormServiceProvider.php" then create a folder src, this is main folder then create a route file "web.php" in a src/route folder then create a controller file "FormController.php" in a src/Http/Controllers folder then create a model file "Form.php" in a src/Models folder then create a view file "form.blade.php" in a src/views folder then create any othor file in the same way

add this script inside main composer.json "autoload-dev": { "psr-4": { "Adan\Contact\": "adan/src/" } }, run composer dump-autoload then register service provide "FormServiceProvider.php" in config/app.php

Adan Package This package provides functionality for handling forms in a Laravel application.

Installation Clone the repository:

bash Copy code git clone https://github.com/your/repository.git Navigate to the project directory:

bash Copy code cd adan Initialize Composer:

bash Copy code composer init Follow the prompts to set up your composer.json file.

Add autoload-dev configuration to composer.json:

json Copy code "autoload-dev": { "psr-4": { "Adan\Contact\": "src/" } } Save the file.

Dump autoload files:

bash Copy code composer dump-autoload Register FormServiceProvider: Edit config/app.php and add the following line to the providers array:

php Copy code Adan\Contact\FormServiceProvider::class, Usage Service Provider Create the FormServiceProvider:

bash Copy code touch FormServiceProvider.php Add the necessary service provider code.

Main Folder and Structure Create the src folder as the main folder.

Routes Create the route file web.php:

bash Copy code mkdir -p src/routes touch src/routes/web.php Define your routes in web.php.

Controllers Create the FormController:

bash Copy code mkdir -p src/Http/Controllers touch src/Http/Controllers/FormController.php Add your controller logic in FormController.php.

Models Create the Form model:

bash Copy code mkdir -p src/Models touch src/Models/Form.php Define your model in Form.php.

Views Create the view file form.blade.php:

bash Copy code mkdir -p src/views touch src/views/form.blade.php Design your form in form.blade.php.

Additional Files You can create any other necessary files using a similar structure.

Contributing Feel free to fork this repository, make changes, and submit pull requests. Contributions are welcome!

License This package is open-sourced software licensed under the MIT license.

This README.md file provides clear steps for installation, usage instructions, and guidance for contributions, all while maintaining a clean and attractive format suitable for GitHub repositories. Adjust paths and details as per your actual project structure and requirements.