Giter VIP home page Giter VIP logo

valiant's Introduction

Valiant Laravel 6 Admin Panel Package

Valiant is a Laravel 6 admin panel package which promotes rapid development with high customization capabilities. It includes a model scaffolding command, expressive field & action declaration, Laravel auth integration, user roles, activity logs, AJAX form & modal support, automatic user timezones, and more.

Installation

Create a new Laravel app via Composer:

laravel new myapp

Configure your .env file with your app name, URL, database, & mail server.

Require Valiant via Composer:

composer require kdion4891/valiant

Publish install files using the --force:

php artisan vendor:publish --tag=install --force

Run the migrations:

php artisan migrate

Create an Admin user:

php artisan tinker
$user = new User
$user->name = 'Admin'
$user->email = '[email protected]'
$user->password = 'admin123' // user passwords are auto-encrypted
$user->role = 'Admin'
$user->save()

Visit your app URL and login.

Quickstart

Make scaffolding for a new model:

php artisan valiant:make MyModel

Update the new model fields():

class MyModel extends Model
{
    use ValiantModel;

    public function fields()
    {
        return [
            Field::make('ID')
                ->table()->tableSearchSort()->tableDefaultOrder('desc')
                ->detail(),

            Field::make('Name')
                ->table()->tableSearchSort()
                ->detail()
                ->input()->inputCreateEdit()
                ->rulesCreateEdit(['name' => 'required']),

            Field::make('Created At')->detail(),
            Field::make('Updated At')->detail(),
        ];
    }

Update the new migration columns:

class CreateMyModelsTable extends Migration
{
    public function up()
    {
        Schema::create('my_models', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->timestamps();
        });
    }

Run the migration:

php artisan migrate

Login to your app and click the My Models link in the sidebar.

valiant's People

Watchers

James Cloos 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.