2017 © Pedro Peláez
 

library locations

Add countries, provinces, cities and suburbs to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

image

bpocallaghan/locations

Add countries, provinces, cities and suburbs to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  • Wednesday, November 15, 2017
  • by bpocallaghan
  • Repository
  • 3 Watchers
  • 4 Stars
  • 1,078 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

Locations

Add countries, provinces, cities and suburbs to your laravel admin project. This will allow you to add cities, countries, each with a google map location., (*1)

Installation

Update your project's composer.json file., (*2)

composer require bpocallaghan/locations

Usage

Register the routes in the routes/vendor.php file. - Admin, (*3)

Route::group(['prefix' => 'general/locations', 'namespace' => 'Locations\Controllers\Admin'], function () {
    Route::resource('suburbs', 'SuburbsController');
    Route::resource('cities', 'CitiesController');
    Route::resource('provinces', 'ProvincesController');
    Route::resource('countries', 'CountriesController');
});

Commands

php artisan locations:publish

This will copy the database/seeds and database/migrations to your application. Remember to add $this->call(LocationTableSeeder::class); in the DatabaseSeeder.php, (*4)

php artisan locations:publish --files=all

This will copy the models, views and controllers to their respective directories. Please note when you execute the above command. You need to update your routes. - Admin, (*5)

Route::group(['prefix' => 'locations', 'namespace' => 'Locations'], function () {
    Route::resource('suburbs', 'SuburbsController');
    Route::resource('cities', 'CitiesController');
    Route::resource('provinces', 'ProvincesController');
    Route::resource('countries', 'CountriesController');
});

Demo

Package is being used at Laravel Admin Starter project., (*6)

TODO

  • add the navigation seeder information (to create the navigation/urls)

The Versions

15/11 2017

dev-master

9999999-dev

Add countries, provinces, cities and suburbs to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel cms admin countries cities provinces locations suburbs

02/11 2017

0.0.1

0.0.1.0

Add countries, provinces, cities and suburbs to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel cms admin countries cities provinces locations suburbs