saaksin/laravel-administrator

데이터베이스 기반 라라벨 관리자 페이지

v5.8.4 2022-03-07 06:36 UTC

README

기존 Frozonnode 의 Laravel-Administrator 가 더 이상 업데이트 되지않아, 이를 바탕으로하여 패키지를 개발 및 업그레이드하고 있습니다. Administrator is an administrative interface builder for Laravel. With Administrator you can visually manage your Eloquent models and their relations, and also create stand-alone settings pages for storing site data and performing site tasks.

Build Status

68747470733a2f2f7261772e6769746875622e636f6d2f46726f7a656e4e6f64652f4c61726176656c2d41646d696e6973747261746f722f6d61737465722f6578616d706c65732f696d616765732f6f766572766965772e6a7067

Composer

To install Administrator as a Composer package to be used with Laravel 5, simply run:

composer require "saaksin/laravel-administrator: v5.8.*"

Once it's installed, you can register the service provider in config/app.php in the providers array:

'providers' => [
	...
	SaAkSin\Administrator\AdministratorServiceProvider::class
]

Then publish Administrator's assets with php artisan vendor:publish. This will add the file config/administrator.php. This config file is the primary way you interact with Administrator. This command will also publish all of the assets, views, and translation files. 설정 파일은 config 디렉토리 하위가 아닌, 프로젝트 루트 디렉토리에서 administrator, administrator/settings 에 위치합니다.

설정파일

설정파일명과 동일한 함수명으로 시작합니다. 가령, 설정 파일이 users.php 이라면, 반드시 users 함수를 통하여 설정(배열)을 반환합니다.(세션 등과 연계하여 조건에 따른 배열 결과를 반환할 수 있음)

function users()
{
    return array(
        'title' => '사용자 관리',
        'single' => '사용자',
        'model' => App\User::class,
        .....

    );
}

HTTPS

app/Providers/AppServiceProvider 에서 라우트의 경로를 https 가 되도록 지정합니다.

public function boot(UrlGenerator $url)
{
    $url->forceScheme('https');
}

asset url 에 https 주소를 사용하도록 .env 에 ASSET_URL 을 지정합니다.

ASSET_URL=https://도메인주소

FULL TEXT 검색

filter 에서 MySQL 의 full text 검색을 지원합니다.(대용량 검색)

'filters' => array(
    'no' => array(
        'title' => 'Number',
        'type' => 'fulltext_mysql'
    ),
),

TEXT 빠른 검색

filter 에서 시작 단어 검색 및 포커스 아웃 이벤트 시 검색을 시작합니다.

'filters' => array(
    'no' => array(
        'title' => 'Name',
        'type' => 'text_quick'
    ),
),

페이지 리로드

액션을 성공적으로 실행한 후, 현재 페이지를 리로드하는 기능을 제공합니다.

'action' => array(
    'reload' => true
),

VIEW 모델 지원 (실험중)

모델 설정에서 view 모델 여부를 설정할 수 있습니다.(아직은 실험적인 기능이며, 조회시 약간의 성능 개선이 있습니다. MySQL InnoDB)

'view' => true

Laravel 4

더 이상 지원하지 않습니다.

Laravel 3

더 이상 지원하지 않습니다.

Documentation

The complete docs for Administrator can be found at http://administrator.frozennode.com. You can also find the docs in the /src/docs directory.

Copyright and License

Administrator was written by Jan Hartigan of Frozen Node for the Laravel framework. Administrator is released under the MIT License. See the LICENSE file for details.

Recent Changelog

5.8.0

  • 라라벨 5.8.0 지원

5.1.0

  • 모델 파일내 세션 사용가능