Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Location Bundle Laravel Package

chaplean/location-bundle

View on GitHub
Deep Wiki
Context7

Getting Started With ChapleanLocationBundle

Prerequisites

This version of the bundle requires Symfony 2.8+.

Installation

1. Composer

composer require chaplean/location-bundle

2. AppKernel.php

Add

new Chaplean\Bundle\LocationBundle\ChapleanLocationBundle(),

3. Inject locations

Run

bin/console location:load:cities

or Add command in migration

public function postUp(Schema $schema)
{
    /** @var Kernel $kernel */
    $kernel = $this->container->get('kernel');
    $application = new Application($kernel);
    $application->setAutoExit(false);
    

    $exitCode = $application->run(
        new ArrayInput(
            [
                'command'    => 'location:load:cities'
            ]
        )
    );
    
    $this->abortIf($exitCode !== 0, 'see Exception above ^');
}

4. Resources

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware