Install with Packagist:
composer require marveiga/hotel_search_package
If the package not load automatically, then run the command:
composer dump-autoload
You can call the main method inside your controller. The method is:
Search::getNearbyHotels( $latitude, $longitude, $orderby )
This package creates two routes inside your project:
/search
/response
You can publish the views of this package for free customization with the command:
php artisan vendor:publish
And then select the respective number of this package
One practical example can be seen on the main branch of the package repository in Github.
- PHP
- Laravel
- Laravel Mix
- Composer
- Packagist
- Bootstrap
Pattern match for input field - fixed
Missing characters on JSON response - can be "monkeypatched"
Despite the strugle to publish this package, I'm greatful to learn more about this fantastic framework and hope grow with my skills with the help of good oppotunity. Thank you !