Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.84 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.84 KB

CRUDBOOSTER DEVELOPMENT

Do not use this master repository for production

Installation

Make sure you have installed newest laravel

composer require crocodicstudio/crudbooster=dev-master

Then don't forget to run the crudbooster installation command :

php artisan crudbooster:install

Quick Start

Whatever you want to use laravel artisan serve or xampp . I assume you can go to the default crudbooster path /developer/login

Little different? yep. For the first time, you need to make your some modules, menus, and users for your new backend.

Developer Area :
default path : /developer
default user : developer
default pass : developer

WARNING PLEASE DON'T FORGET TO CHANGE THE DEFAULT DEVELOPER CREDENTIAL AT /config/crudbooster.php

  1. Create your modules
  2. Create your roles
  3. Add new User

Now you can log out, and try the admin panel by visiting /admin/login

You can always change the admin login at /config/crudbooster.php

Basic Code Knowledge

In this new CRUDBooster, we use single scaffolding for index table and form. For example :
function cbInit() {
    $this->setTable("books");
    $this->setPageTitle("Book Data");
    
    $this->addText("Title");
}

As you can see we add column title it will show at index table, detail, add and edit form.

Types

These bellow are some types that you can use to make form input :

Text

Show the input text

$this->addText("FooBar");

addText parameters available :

Name Description
$label The input label
$name The input name
$field_to_save The field name if not same with the name