Giter VIP home page Giter VIP logo

laratrust-ingest's Introduction

READ THIS FIRST

It is highly recommended for all contributors to update this file whenever there's a major update in source code. Use this tool for easy editing or visit this page for comprehensive guide on markdown syntax.

Introduction

This package provides an easy way to seed roles and permissions from a csv file to database tables created by Laratrust Package.

CAUTION

Following tables will be truncated on execution of this command:

  • permission_user
  • permission_role
  • permissions
  • role_user
  • roles

Signature

roles-and-permissions:update {csvFilePath}

CSV Format

Columns

First 3 columns will have title as follow:

  • permission_name
  • permission_display_name
  • permission_description

Next columns shall have the role name and display_name separated by semicolon ; as follow: super-admin;Super Admin

Rows

Each row will have name of permissions, its display name and description respectively in first three cells. Following cells will have either y or n depending on the assignment of that permission to corresponding role.

Sample

Here's a Sample CSV File.

To-dos

Following are the approved items:

  • Item-1

Wishlist

Add the suggestions in this wishlist. Only approved wishlist items can be moved to To-dos list:

  • Item-1

laratrust-ingest's People

Contributors

nafeeshasan avatar rizwan-sarfraz avatar zeshanfarooqi 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.