GithubHelp home page GithubHelp logo

artemzi / sleepingowladmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laravelrus/sleepingowladmin

0.0 2.0 0.0 10.86 MB

๐Ÿฆ‰ Administrative interface builder for Laravel (Laravel admin)

Home Page: http://sleepingowladmin.ru/

License: MIT License

PHP 85.18% JavaScript 8.01% CSS 2.27% HTML 4.55%

sleepingowladmin's Introduction

bg

Laravel >=5.2 Admin Module

Build Status Scrutinizer Code Quality StyleCI Join the chat at https://gitter.im/LaravelRUS/SleepingOwlAdmin Latest Stable Version Total Downloads License

Note: This is the development version. If you are looking for the stable version check out master branch.

SleepingOwl Admin is an administrative interface builder for Laravel.

Changelog: look at changes first

Official site: http://sleepingowladmin.ru

Requirements

  • php >= 5.6
  • Laravel >= 5.2
  • Capable hands

Documentation

Docs repo

Demo project

You can download the demo project at https://github.com/SleepingOwlAdmin/demo


Installation

  1. Require this package in your composer.json and run composer update:
"require": {
  ...
  "laravelrus/sleepingowl": "4.*@dev"
},

Or composer require laravelrus/sleepingowl:4.*@dev

  1. After composer update, insert service provider SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class, before Application Service Providers... to the config/app.php

Example

    ...
    /*
     * SleepingOwl Service Provider
     */
      SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class,

    /*
     * Application Service Providers...
     */
    App\Providers\AppServiceProvider::class,
    ...
  1. Run this command in the terminal (if you want to know more about what exactly this command does, see install command documentation):
$ php artisan sleepingowl:install

Installation

Authentication

By default, admin module uses Laravel authentication.

If you want to use auth, you can run artisan command php artisan make:auth (https://laravel.com/docs/5.3/authentication) and append middleware auth to config/sleeping_owl.php

...
'middleware' => ['web', 'auth']
...

Supporting of old authentication

If you want to migrate from an older version you can use old auth.

Steps:

  1. Add new user provider in config/auth.php
'providers' => [
  'users' => [
    'driver' => 'eloquent',
    'model' => App\User::class,
  ],
  'administrators' => [
    'driver' => 'eloquent',
    'model' => SleepingOwl\Admin\Auth\Administrator::class,
  ],
],
  1. Add new guards or change existing in config/auth.php
'guards' => [
  'web' => [
    'driver' => 'session',
    'provider' => 'administrators', // change existing provider
  ],
  
  // or add new
  
  'admin' => [
    'driver' => 'session',
    'provider' => 'administrators',
  ],
],
  1. Setting up middleware

By default auth middleware use default guard, selected in config/auth.php

'defaults' => [
  'guard' => 'web', <- default
  ...
],

You can change default guard to admin or change middleware in config/sleeping_owl.php to

'middleware' => ['web', 'auth:admin'],

Used npm packages:

"devDependencies": {
   "jquery": "^2.1.4",
   "underscore": "1.8.3",
   "bootstrap": "^3.3.7",
   "eonasdan-bootstrap-datetimepicker": "^4.15.35",
   "font-awesome": "^4.6.3",
   "moment": "^2.14.1",
   "nestable": "^0.2.0",
   "noty": "^2.3.8",
   "sortablejs": "1.4.2",
   "select2": "^4.0.3",
   "metismenu": "^2.5.2",
   "datatables.net": "^1.10.12",
   "admin-lte": "^2.3.5",
   "x-editable": "^1.5.1",
   "dropzone": "4.3.0",
   "i18next": "^3.4.1",
   "vue": "^1.0.26",
   "vue-resource": "^0.9.3",
   "sweetalert2": "^4.1.0",
   "magnific-popup": "^1.1.0"
}

Copyright and License

Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

sleepingowladmin's People

Contributors

butschster avatar sleeping-owl avatar butochnikov avatar asvae avatar xcaptain avatar alexdanielyan avatar mediaceh avatar chancezeus avatar moisespsena avatar unquaiz avatar eugenem avatar malezha avatar scif avatar alexrosenfeld avatar serafimarts avatar kristobaljunta avatar mvsvolkov avatar everestmx avatar pedrofaria avatar b4rtaz avatar mammutalex avatar vaiil avatar rubemlrm avatar zlodes avatar big-shark avatar ellrion avatar makashov avatar systerr avatar grebenschikov avatar osindex avatar

Watchers

James Cloos avatar Artem Zinoviev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.