imthebestgamer12k / collective-adapter
A compatibility solution for migrating old Laravel collective to new Laravel version
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/imthebestgamer12k/collective-adapter
Requires
- php: ^7.2 || ^8.1
README
# =============LARAVEL COLLECTIVE ADAPTER==================
## A compatibility solution for migrating old Laravel collective to new Laravel version
BRIEF DECRIPTION OF THE PROJECT:
This project was mainly created for Laravel artisans who are looking for solutions/alternative on re-using Laravel Collective Form in Laravel blades.
## Installation
STEPS TO INSTALL THIS PRJECT:
- Open terminal in your project directory. (or use Git Bash)
- Run composer require imthebestgamer12k/collective-adapter
- Run composer dump-autoload
- Check the newly installed collective-adapter package in your vendor folder
## Usage
HOW TO USE THE PACKAGE:
-
To use this package, go to your App/Providers directory. Edit the AppServiceProvider
-
Under your namespace add "use Niel\CollectiveAdapter\Services\FormService;"
-
Open config/app.php and then register the Form Facade with an alias named "Form"
'Form' => Niel\CollectiveAdapter\Facades\Form::class, -
Bind FormService to the global 'form' facade helper and put this code inside the register() function:
$this->app->bind('form', function ($app) { return new FormService(); });
## Technologies Used
- Git
- Composer
- Php 7.2.* (For Laravel v 7+
- PHP 8.1.* (For Laravel v 9+ & above)
## AUTHOR/CREATED BY:
Lien Yabis(Niel Sibay)