Git Product home page Git Product logo

akhilh2o / neodash Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.18 MB

Neodash is a admin panel package made for laravel on top of Laravel Breeze. It is a very simple setup for a quick start, with a separate admin panel having user, roles & permissions, posts, pages, faqs and testimonials management.

Home Page: https://packagist.org/packages/akhilesh/neodash

PHP 22.87% CSS 2.37% JavaScript 34.23% Blade 40.53%
admin admin-dashboard admin-panel admin-ui administration adminlte bootstrap laravel laravel-admin laravel-admin-panel

neodash's Introduction

Introduction to Neodash

Neodash is a admin panel package made for laravel on top of Laravel Breeze. It is a very simple setup for a quick start, with a separate admin panel having user, roles & permissions, posts, pages, faqs and testimonials management. This package uses Bootstrap 4.x.

Installation

Update your .env file, provide database name, user and password. Execute command given below to install neodash admin panel

composer require akhilesh/neodash

Run following command to quick installation

php artisan neodash:install fresh

By default default scaffold will be generated with default options, instead you can change your setting in configuration file site.php and run php artisan neodash:install once again. This will ask some questions like, if you want to migrate the fresh table or not, or you want to seed the tables or not.

After installation you will get routes in admin.php file in routes folder, models and controller with their related trait and views. To override the properties / functionalities, define your own respective function in controller. This package comes with a route middleware GatesMiddleware::class, admin routes will be wrapped within this middleware.

Configurations

Add ASSET_URL to .env file, which will point to pubic directory. public/assets: In this folder you will get all the static images, css, js and other files.

A storage() helper will be provided to get the url of publically stored images. If you want to change this url, you can set a property in .env file STORAGE_URL.

You can disable install command from config/site.php by setting command key to false. This will protect you by running the command file accidentally and replacing your existing files.

Other packages being used

Alertt: Alertt package has been integrated for any operation alert message, for any customization in this, please refer to takshak/alertt.

Imager: Takshak/Imager is integrated to generate seeds and resize and modify images at the time of upload images in different sections in the panel. This is also user to get default placeholder images and user avatars. For more information about this package, please refer to takshak/imager

This package comes with some default users, roles, and permission, which are inserted using seeders. There seeders for all the modules. You will get a default admin user with email: [email protected] and password: password


Extra functionalities

  • ReferrerMiddleware middleware: This middleware can be used to redirect from specific route to some other route. Both routes (form, to) should be passed in the route, eg.

      route(
          'some.route', 
          [
              'refer' => [
                  // specify the route from where the application will be redirected
                  'refer_from'    => route('redirect.source'), 
    
                  // specify the destination route where to be redirected back
                  'refer_to'      => route('redirect.destination'),
    
                  // optional (checking the request method along with 'refer_from')
                  'method'        => 'GET' 
              ]
          ]
      );
    

For Example:

    route('some.route',  [ 
        'refer' => [ 
            'refer_from' => route('redirect.source'), 
            'refer_to' => route('redirect.destination'), 
            'method' => 'GET' 
        ] 
    ]);

Queries Management

You can directly submit query forms from frontend to admin panel by posting forms on route('queries.store'). It will be stored on the database and an email will also be send to the mail defined in env file MAIL_PRIMARY.

Possible input names are given below. All inputs are optional can will be defined in form if required:

  • name: (string) You can store user's name.
  • email: (string) You can store user's email.
  • mobile: (string) Store user's mobile / phone.
  • subject: (string) Subject of form or mail.
  • title: (string) Can be used for title of the form.
  • content: (text) Store message of content of form.
  • others: (array) Other keys can also be specified via name="others[input_name]".
  • files: (array) You can put files specified via name="files[resume]". Url of the file will be saved to database and included in mail.
  • redirect: (string) Will be input type hidden and hold the url on which it will be redirected after submission.

neodash's People

Contributors

akhilcodeflies avatar

Stargazers

 avatar

Watchers

 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.