Coder Social home page Coder Social logo

laravel-admin's Introduction

Laravel Admin

Laravel Admin is a package that provides a ready-to-use admin model with authentication for Laravel applications. This allows to seperate the admin model from the user model and imporve code quality. It also provides a simple plain Blade/Tailwind Admin Dashboard

Installation

To install Laravel Admin , run the following command in your terminal:

composer require platinum/laravel-admin

Usage

To use Laravel Admin

php artisan admin:install

This will create an Admin model, controller, routes, migration, and other setups you need to authenticat your admin.

You can provide the -m or --migrate option to run migrations or use the following command to migrate the database:

php artisan migrate

the create an admin using the following command:

php artisan admin:create

# It takes optional options: name, email and password

or you can write a factory/seed.

Login as an admin using {url}/admin/login

Customizations

To customize the appearance of the administration panel, you can modify the views and assets that were published during the installation process. These files are located in the public/vendor/laravel-admin directory.

Admin role

The Admin model is fully available for you in the models dir, you can add more columns to the migration to implement roles. I suggest using the Spatie laravel-permission or other alternatives if you require more complexcity with the role management.

Contributions

Contributions are welcome via Pull Requests on Github.

  • Please document any change you made as neccesary in the README.md.
  • Pleas make only one pull request per feature/fix.
  • Please check the Upcoming improvements section for ideas on what you can help with.

Issues

This is my first laravel package, so, you may find it not perfect. Please report any issue you encounter in using the package through the issues tab Github Issues

Upcoming improvements:

  • Password resets
  • Manage Admins (CRUD)
  • More UI Options:
    • React,
    • Bootstrap
    • Vue
  • Password Confirmation
  • Admin Profile
  • More Dashboard Option
  • Use subdomain instead of '/admin' routes

Security

Laravel Admin includes security features to help protect your application. These features include authentication, authorization, and password hashing. However, it is still important to follow best practices for securing your application, such as using strong passwords and keeping your application up-to-date with the latest security patches.

Credits

Laravel Admin was created by Emmanuel Adesina and is licensed under the MIT license.

laravel-admin's People

Contributors

theplatinum 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.