GithubHelp home page GithubHelp logo

laramin's Introduction

Laramin - Small Laravel Admin

Laramin Screenshot


After creating your new Laravel application you can include the Laramin package with the following command:

composer require simoja/laramin

Next make sure to create a new database and add your database credentials to your .env file:

DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

Laravel 5.5 and up

You don't have to do anything else, this package uses the Package Auto-Discovery feature, and should be available as soon as you install it via Composer.

Laravel 5.4 or 5.3

Add the Laramin service provider to the config/app.php file in the providers array:

'providers' => [
    // Laravel Framework Service Providers...
    //...

    // Package Service Providers
    Simoja\Laramin\LaraminServiceProvider::class,

    // ...

    // Application Service Providers
    // ...
],

Lastly, we can install laramin with simply run It Will Add Some Dummy Data

php artisan Laramin:install

Seed

Then you need to seed the permissions roles dummy users Dont forget to launch First

composer dump-autoload

by adding this lines on `database/seeds/DatabaseSeeder.php

$this->call(LaraminDataSeeder::class);
$this->call(LaratrustSeeder::class);

and launch

php artisan db:seed

You will Have Three Config Files Where you can update the Data As You Wish :

config/laramin.php

config/laratrust.php

config/laratrust_seeder.php

And we're all good to go!

To connected There is some dummy data added you can check on Database Now Launch your website with prefix name by default /admin and enter this dummy credentials and all works fine

email: [email protected]
password: password

How It Works

When you create a database it creates a migration file and model File also you will dont need to anything on the server side.

If you Created the Database you have to go to Roles and and assign the permissions of the new Database then refresh the page(it will change later) then you can see your new Model on Menu

Inspired By :

Laratrust For The User Permissions
Voyager The Idea of making a simple Admin Panel

Demo

Comming Soon

Contributing

You are more than welcome to contribute to this repo with anything you think is useful. fixes are more than welcome.

laramin's People

Contributors

elwafa avatar simoebenhida avatar

Watchers

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