Logo Logo Nue Package
Getting Started Introduction
Getting Started Gulp
Getting Started Customization
Getting Started Credits
Getting Started Changelog
Design & Graphics Bootstrap Icons
Design & Graphics Illustrations
Components Accordion
Components Alerts
Components Avatars
Components Badge
Components Breadcrumb
Components Buttons
Components Button group
Components Cards
Components Collapse
Components Column divider
Components Devices
Components Divider
Components Dropdowns
Components Icons
Components List Group
Components Lists
Components Legend Indicator
Components Modal
Components Offcanvas
Components Page Header
Components Pagination
Components Popovers
Components Progress
Components Profile
Components Shapes
Components Sliding Image
Components Spinners
Components Steps
Components Tab
Components Toasts
Components Tooltips
Components Typography
Navbars Navbar
Navbars Navs
Navbars Mega Menu
Navbars Navbar Vertical Aside
Navbars Scrollspy
Tables Tables
Tables Datatables
Tables Sticky Header
Basic forms Basic forms
Basic forms Checks and switches
Basic forms Input group
Utilities Backgrounds
Utilities Borders
Utilities Colors
Utilities Links
Utilities Position
Utilities Rotations
Utilities Shadows
Utilities Sizing
Utilities Spacing
Utilities Z-index
Utilities Opacity
Advanced forms Advanced select
Advanced forms Datepicker
Advanced forms Date Range Picker
Advanced forms Calendar (Fullcalendar)
Advanced forms File attachments
Advanced forms Drag’ n’ drop file uploads
Advanced forms WYSIWYG Editor
Advanced forms Quantity counter
Advanced forms Copy to Clipboard
Advanced forms Input mask
Advanced forms Step forms (Wizards)
Advanced forms Wizards
Advanced forms Add field
Advanced forms Toggle password
Advanced forms Count characters
Advanced forms Form Search
Advanced forms Toggle switch
Advanced forms Google reCAPTCHA
Others Chart.js
Others Counter
Others Circles.js (Pie Chart)
Others Fullscreen Lightbox
Others Leaflet
Others JSVectorMap
Others SortableJS
Others Sticky block
Others Go To

No Results

  • Preview Demo
Logo Nµe
  • Nue
  • UI (HTML)
  • Getting Started
  • Introduction
  • Installation
  • Configuration
  • Changelog
  • Development
  • Features
  • Content (Layout)
  • Users (Auth)
  • Menu Management
  • Notifications
  • Access Control
  • Permission
  • Pages
  • Routes
  • Middleware
  • Console Commands
  • Nue
  • Install
  • Auth
  • Uninstall
  • Create User
  • Change Password
  • Extend
  • Import
  • Extensions
  • Development
  • Backup
  • Lock-Screen
  • Env-Manager

Configuration

Penjelasan terkait file config/nue.php sebagai config file utama.

Untuk melakukan perubahan settingan bawaan, kamu bisa buka file yang package ini simpan di config/nue.php. Disini kamu bisa lakukan beberapa custom seperti:

  • Ganti nama aplikasi yang muncul di title di semua halaman.
  • Kustom branding, seperti favicon dan logo-logo (Light dan Dark).
  • Aktivasi dan matikan fitur bawaan, kayak registrasi, hapus akun, ganti email dan lainnya.
  • Dan beragam pengaturan lainnya. Penjelasan lengkap bisa dilihat di dalam file.

    
      <?php 

        use App\Providers\RouteServiceProvider;
        use Novay\Nue\Features;

        return [

            /*
            |--------------------------------------------------------------------------
            | Nama aplikasi
            |--------------------------------------------------------------------------
            |
            | Nilai dari properti ini akan menjadi nama utama aplikasi kamu, karena 
            | nama disini akan menjadi title di semua halaman.
            |
            */
            'name' => 'Nue UI',

            /*
            |--------------------------------------------------------------------------
            | Akses via `https`
            |--------------------------------------------------------------------------
            |
            | If your page is going to be accessed via https, set it to `true`.
            |
            */
            'https' => env('NUE_HTTPS', false),

            /*
            |--------------------------------------------------------------------------
            | Nue brand files
            |--------------------------------------------------------------------------
            |
            | This value is the default assets for Nue Admin.
            |
            */
            'brand' => [
                
                'favicon' => 'https://cdn.btekno.id/img/logo.svg', 

                'logo' => [

                    'default' => [

                        'light' => 'https://cdn.btekno.id/img/logo.svg', 

                        'dark' => 'https://cdn.btekno.id/img/logo-inverse.svg'

                    ],

                    'mini' => [

                        'light' => 'https://cdn.btekno.id/img/logo.svg', 

                        'dark' => 'https://cdn.btekno.id/img/logo-inverse.svg'

                    ],
                ], 

                'default_avatar' => 'https://cdn.btekno.id/templates/v2/img/160x160/img1.jpg'
            ], 

            /*
            |--------------------------------------------------------------------------
            | Nue Guard
            |--------------------------------------------------------------------------
            |
            | Here you may specify which authentication guard Nue will use while
            | authenticating users. This value should correspond with one of your
            | guards that is already present in your "auth" configuration file.
            |
            */

            'guard' => env('NUE_AUTH_GUARD', 'web'),

            /*
            |--------------------------------------------------------------------------
            | Nue Routes Middleware
            |--------------------------------------------------------------------------
            |
            | Here you may specify which middleware Nue will assign to the routes
            | that it registers with the application. If necessary, you may change
            | these middleware but typically this provided default is preferred.
            |
            */

            'middleware' => env('NUE_AUTH_MIDDLEWARE', ['web', 'nue']),

            /*
            |--------------------------------------------------------------------------
            | Home Path
            |--------------------------------------------------------------------------
            |
            | Here you may configure the path where users will get redirected during
            | authentication or password reset when the operations are successful
            | and the user is authenticated. You are free to change this value.
            |
            | Default use: RouteServiceProvider::HOME
            |
            */

            'home' => env('NUE_AUTH_HOME', RouteServiceProvider::HOME),

            /*
            |--------------------------------------------------------------------------
            | Username / Email
            |--------------------------------------------------------------------------
            |
            | This value defines which model attribute should be considered as your
            | application's "username" field. Typically, this might be the email
            | address of the users but you are free to change this value here.
            |
            | For your information, reset passwords and email verification feature 
            | only work only if you use email as default username field.
            |
            */

            'username' => env('NUE_AUTH_USERNAME', 'email'),

            /*
            |--------------------------------------------------------------------------
            | Features
            |--------------------------------------------------------------------------
            |
            | Some of the Nue features are optional. You may disable the features
            | by removing them from this array. You're free to only remove some of
            | these features or you can even remove all of these if you need to.
            |
            */

            'features' => [
                Features::registration(),
                Features::resetPasswords(),
                Features::emailVerification(),
                Features::updateProfile(),
                Features::updateEmail(),
                Features::updatePassword(),
                Features::profilePhoto(),
                Features::terminateAccount(),
            ],

            /*
            |--------------------------------------------------------------------------
            | Profile Photo Disk
            |--------------------------------------------------------------------------
            |
            | This configuration value determines the default disk that will be used
            | when storing profile photos for your application's users. Typically
            | this will be the "public" disk but you may adjust this if needed.
            |
            */

            'profile_photo_disk' => env('NUE_AUTH_PHOTO', 'public'),

            /*
            |--------------------------------------------------------------------------
            | Nue route settings
            |--------------------------------------------------------------------------
            |
            | The routing configuration of the nue page, including the path prefix,
            | the controller namespace, and the default middleware. If you want to
            | access through the root path, just set the prefix to empty string.
            |
            */
            'route' => [

                'prefix' => env('NUE_PREFIX', ''),

                'middleware' => ['web', 'nue', 'nue.lock'],
            ],

            /*
            |--------------------------------------------------------------------------
            | Nue database settings
            |--------------------------------------------------------------------------
            |
            | Here are database settings for Nue builtin model & tables.
            |
            */
            'database' => [

                // Database connection for following tables.
                'connection' => '',

                // User tables and model.
                'users_table' => 'users',
                'users_model' => App\Models\User::class,

                // Role table and model.
                'roles_table' => 'roles',
                'roles_model' => Novay\Nue\Models\Role::class,

                // Permission table and model.
                'permissions_table' => 'permissions',
                'permissions_model' => Novay\Nue\Models\Permission::class,

                // Menu table and model.
                'menu_table' => 'menu',
                'menu_model' => Novay\Nue\Models\Menu::class,

                // Pivot table for table above.
                'user_activities_table'  => 'user_activities',
                'user_permissions_table' => 'user_permissions',
                'role_users_table'       => 'role_users',
                'role_permissions_table' => 'role_permissions',
                'role_menu_table'        => 'role_menu',
            ],

            /*
            |--------------------------------------------------------------------------
            | User operation log setting
            |--------------------------------------------------------------------------
            |
            | By setting this option to open or close operation log in Nue.
            |
            */
            'user_activities' => [

                'enable' => true,

                /*
                 * Only logging allowed methods in the list
                 */
                'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'],

                /*
                 * Routes that will not log to database.
                 *
                 * All method to path like: nue/settings/log-activity
                 * or specific method to path like: get:nue/settings/log-activity.
                 */
                'except' => [
                    env('NUE_PREFIX', '').'/settings/log-activity',
                ],
            ],

            /*
            |--------------------------------------------------------------------------
            | Indicates whether to check route permission.
            |--------------------------------------------------------------------------
            */
            'check_route_permission' => true,

            /*
            |--------------------------------------------------------------------------
            | Indicates whether to check menu roles.
            |--------------------------------------------------------------------------
            */
            'check_menu_roles'       => true,

            /*
            |--------------------------------------------------------------------------
            | Menu bind to permission
            |--------------------------------------------------------------------------
            |
            | whether enable menu bind to a permission
            */
            'menu_bind_permission' => true,

            /*
            |--------------------------------------------------------------------------
            | Extension Directory
            |--------------------------------------------------------------------------
            |
            | When you use command `php artisan nue:extend` to generate extensions,
            | the extension files will be generated in this directory.
            */
            'extension_dir' => app_path('Nue/Extensions'),

            /*
            |--------------------------------------------------------------------------
            | Settings for extensions.
            |--------------------------------------------------------------------------
            |
            | You can find all available extensions here
            | https://github.com/nue-extensions.
            |
            */
            'extensions' => [

                // https://github.com/nue-extensions/env
                'env' => [
                    'enable' => true
                ], 
            ]
        ];