2017 © Pedro Peláez
 

library ng-admin

Admin panel with angularjs 1.5

image

emniis/ng-admin

Admin panel with angularjs 1.5

  • Sunday, February 4, 2018
  • by aurellemeless
  • Repository
  • 5 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

ng-admin

Laravel admin panel based on angular Js that include a CRUD generator., (*1)

This is compatible with : - Angular Js 1.8 - Laravel 5.4 +, (*2)

Installation

Add Ng Admin to your laravel project via composer:, (*3)

    composer require emniis/ng-admin

The next required step is to add the service provider to config/app.php :, (*4)

    Emniis\NgAdmin\NgAdminServiceProvider::class,

Publish

The next required step is to publish views and assets in your application with :, (*5)

    php artisan vendor:publish --provider="Emniis\NgAdmin\NgAdminServiceProvider"

Install npm dependencies

The last step is to install ng-admin npm dependencies in laravel public directory (laravel-app-directory/public/), (*6)

    npm install

Congratulations, you have successfully installed NG Admin !, (*7)

generate a crud for an entity

Genarate a CRUD for an entity (table) using nga:crud, (*8)

    php artisan nga:crud <entity> "<the list of table columns coma separated>"

Eg: Generate a CRUD for table articles, (*9)

    php artisan nga:crud article "name,content,is_published"

Generated files :, (*10)

an Admin controller : /app/Http/Controllers/Admin/ArticleController.php, (*11)

a view : /resources/views/ng-admin/articles.php, (*12)

a model : /app/Models/Article.php, (*13)

a migration : /database/migrations/...create_articles_table.php, (*14)

Some routes will be added, (*15)

Laravel web route in /routes/web.php, (*16)

<?php
    ...
      Route::resource('articles', 'Admin\ArticleController');
      /** crudgen routes dont remove this comment **/
    ...

Angular route in /public/ng-admin/boot.js, (*17)

    ...
                  .when('/articles', {
                      title:"Smarts",
                      templateUrl: APP_VIEWS_BASE+'articles',
                      controller: 'ArticleController',
                      resolve: {
                          lazy: ['$ocLazyLoad', function($ocLazyLoad) {
                              return $ocLazyLoad.load({
                                  name: 'admin',
                                  files: [
                                      BASE+'ng-admin/article-controller.js'
                                  ]
                              });
                          }]
                      }
                  })
      /** crudgen dont remove **/
    ...

Angular service in /public/ng-admin/services.js, (*18)

    ... 
        .service("ArticleService", ["$resource", function($resource) {
                return $resource(API+"Smarts/:id" ,{id: '@id'}, {
                      query: {method: 'get', isArray: false, cancellable: true},
                        update: { method:'PUT' }
                    });
        }])
      /** crudgen dont remove **/
    ...

The Versions

04/02 2018

1.0.0.x-dev

1.0.0.9999999-dev

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis

04/02 2018

v1.1.1

1.1.1.0

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis

21/01 2018

v1.1.0

1.1.0.0

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis

21/01 2018

dev-master

9999999-dev

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis

21/12 2017

v1.0.1

1.0.1.0

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis

21/12 2017

v1.0

1.0.0.0

Admin panel with angularjs 1.5

  Sources   Download

MIT

The Requires

 

by emniis