This website collects cookies to deliver better user experience
Laravel Mapbox, easily integrate Mapbox inside your Laravel app
Laravel Mapbox, easily integrate Mapbox inside your Laravel app
I have just released Laravel Mapbox, a Laravel package that allows you to add Mapbox to your views easily, with highly flexibility.
It requires Laravel 8 and PHP 8.0 and up.
Before installing the package, create a Mapbox account to get your token.
Installation
To install the package, all you have to do is run this command
composer require koossaayy/laravel-mapbox
After the installation, add this key to the .env file
MAPBOX_TOKEN={your mapbox token here}
And lastly publish the config file using this command :
php artisan vendor:publish --tag="mapbox-config"
Also don't forget to add CSS and JS files of Mapbox