All Projects → Hanson → Speedy

Hanson / Speedy

🚄A Laravel Admin Package to create a website quickly

Projects that are alternatives of or similar to Speedy

Voyager Zh
㊙️voyager 的中文汉化版 基于laravel 的管理后台 权限控制,菜单,数据库手脚架,长期更新
Stars: ✭ 84 (-42.47%)
Mutual labels:  laravel, laravel-admin, admin
Contentify
Contentify is an esports CMS based on the PHP framework Laravel
Stars: ✭ 189 (+29.45%)
Mutual labels:  laravel, laravel-admin, admin
Yicms
基于laravel5.5 开发的Yicms系统的基础架构
Stars: ✭ 93 (-36.3%)
Mutual labels:  laravel, laravel-admin, admin
Coreui Free Laravel Admin Template
CoreUI Free Laravel Bootstrap Admin Template
Stars: ✭ 353 (+141.78%)
Mutual labels:  laravel, laravel-admin, admin
Platform
A @laravel based RAD platform for back-office applications, admin/user panels, and dashboards.
Stars: ✭ 2,623 (+1696.58%)
Mutual labels:  laravel, laravel-admin, admin
Sleepingowladmin
🦉 Administrative interface builder for Laravel (Laravel admin)
Stars: ✭ 671 (+359.59%)
Mutual labels:  laravel, laravel-admin, admin
Config
Config manager for laravel-admin
Stars: ✭ 83 (-43.15%)
Mutual labels:  laravel, laravel-admin
Project
⭐️ Antares Project Application Skeleton. This is the very first place you should start. It allows you to create a brand new awesome project in easy few steps.
Stars: ✭ 84 (-42.47%)
Mutual labels:  laravel, laravel-admin
Leacmf Laravel
leacmf是一款基于laravel5.7+layui的极速后台和api开发框架。
Stars: ✭ 98 (-32.88%)
Mutual labels:  laravel, admin
Crudbooster
Laravel CRUD Generator, Make an Advanced Web Application Quickly
Stars: ✭ 1,580 (+982.19%)
Mutual labels:  laravel, laravel-admin
Larrock Core
Core components for LarrockCMS
Stars: ✭ 46 (-68.49%)
Mutual labels:  laravel, laravel-admin
Log Viewer
Log viewer for laravel
Stars: ✭ 108 (-26.03%)
Mutual labels:  laravel, laravel-admin
Laravel Api Boilerplate
A Boilerplate Project For Laravel API's (NOT MAINTAINED)
Stars: ✭ 113 (-22.6%)
Mutual labels:  laravel, laravel-admin
Demo
This is demo application for SleepingOwl Admin.
Stars: ✭ 81 (-44.52%)
Mutual labels:  laravel, admin
Laravel admin api
基于laravel5.5开发的基础后台管理脚手架, RBAC权限控制; 接口基于dingo/api和tymon/jwt, 可在此基础上完成你的laravel项目
Stars: ✭ 59 (-59.59%)
Mutual labels:  laravel, admin
Kongqi laravel admin
快速laravel后台管理系统,集成了,图片上传,多图上传,批量Excel导入,批量插入,修改,添加,搜索,权限管理RBAC,验证码,插件一个综合完善后台,助你开发快人一步。
Stars: ✭ 109 (-25.34%)
Mutual labels:  laravel, admin
Voyager
Voyager - The Missing Laravel Admin
Stars: ✭ 10,801 (+7297.95%)
Mutual labels:  laravel, laravel-admin
Laravel Filemanager
Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
Stars: ✭ 1,688 (+1056.16%)
Mutual labels:  laravel, admin
Aimeos
Integrated online shop based on Laravel 8 and the Aimeos e-commerce framework
Stars: ✭ 2,354 (+1512.33%)
Mutual labels:  laravel, laravel-admin
Ladmin
EasyLms is a development management system with Laravel
Stars: ✭ 141 (-3.42%)
Mutual labels:  laravel, laravel-admin

Speedy

Introduce

Speedy is a Laravel admin package build with bootstrap and vue, it contains a sidebar menu , a authentication and a authorization control

中文文档

Install

In your laravel application, execute the following command:

composer require hanson/speedy

add service provider to the app.php:

    'providers' => [
        // Laravel Framework Service Providers...
        //...
    
        // Package Service Providers
        Hanson\Speedy\SpeedyServiceProvider::class,
        // ...
    
        // Application Service Providers
        // ...
    ]

publish resource:

php artisan vendor:publish --provider="Hanson\Speedy\SpeedyServiceProvider"

after that, you might want to change some config about speedy:

// config/speedy.php
return [
    'class' => [
        'namespace' => 'App\\Models\\',
        'model' => [
            'role' => 'Role',
            'user' => 'User',
            'permission' => 'Permission',
            'permission_role' => 'PermissionRole',
        ]
    ],

    'table' => [
        'role' => 'role',
        'permission' => 'permission',
        'user' => 'users',
        'permission_role' => 'permission_role',
    ],
    // ...
]

By default, models will be storage to App/Models, and user table is user, or you can modify the config wherever you want

    'class' => [
        'namespace' => 'App\\Models\\',
        // 'namespace' => 'App\\', set model namespace as 'App\\'
        // ...
    ],
    'table' => [
        'user' => 'users', 
        // 'user' => 'user',set user table name to users
    ]

if you are using user as your table name, remember to modify the user's migration

install speedy:

php artisan speedy:install

create a new admin user

php artisan speedy:admin [email protected] --create

or assign admin to an existing user

php artisan speedy:admin [email protected]

make auth by default

php artisan make:auth

and modify the $redirectTo = '/home' to $redirectTo = /admin in LoginController

Start up a built-in development server, with php artisan serve, visit http://localhost:8000/admin.

Menu And Permission

Speedy sidebar Menus is a very convenient component, you just need to modify the speedy config and run a command to recreate the menu.

Speedy Permission is simple, it can't deal with complicated situation. Each single menu have a permission to control it. Which mean whoever can see this menu can access everything in it.

    # speedy.php
    'menus' => [
        'user' => [
            'display' => 'User',
            'url' => '/admin/user'
        ],
        'role' => [
            'display' => 'Role',
            'url' => '/admin/role'
        ],
        'about' => [
            'display' => 'About HanSon',
            'sub' => [
                'github' => [
                    'display' => 'HanSon\'s Github',
                    'url' => 'https://github.com/hanson',
                    'target' => '_blank'
                ],
                'blog' => [
                    'display' => 'HanSon\'s Blog',
                    'url' => 'http://hanc.cc'
                ]
            ]
        ],
    ]

After modify the menu, run php artisan speedy:menu to recreate the menu and permission.

Role

Every user has one role. Speedy user admin as a default role and own every permission, even though you modify the menu and run the recreate menu command.

Middleware

Speedy provider a middleware name speedy.auth in Hanson\Speedy\Http\Middleware\SpeedyAdminMiddleware, every admin route must add it to keep application save.

Hanson\Speedy\Http\Controllers\BaseController will add middleware automatic.

protected $permissionName;

public function __construct()
{
    $this->middleware('speedy.auth:' . $this->permissionName);
}

You can make your admin controller extends Hanson\Speedy\Http\Controllers\BaseController and set $permissionName as the menu key.

Validate

Speedy has separate the validate rule in config/validator, in the controller, you can use method $validator = $this->mustValidate('{model}.{method}'); to validate the data. The error will display as you define by resources/lang/en/attributre.

View

The blade file will be publish in resources/views/vendor/speedy, and you might want to change the resource link in resources/views/vendor/speedy/layouts/app.blade.php

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].