Built Backend Administrator for real Internet / Intranet web application Easier , Faster , Proffessional

Create Simple CRUD ( Laravel 4.1 ) using LCRUD

No comments


Before you create module , you have to create table for module you will created . this app doest have feature to create table database , so you need phpmyadmin or other mysql tools for creating table



Lets create new table using following table :
CREATE TABLE `customers` (
  `CustomerID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(100) DEFAULT NULL,
  `Contact` varchar(100) DEFAULT NULL,
  `Address` text,
  `Phone1` char(20) DEFAULT NULL,
  `Phone2` char(20) DEFAULT NULL,
  `Fax` char(20) DEFAULT NULL,
  `Email` varchar(100) DEFAULT NULL,
  `Website` varchar(255) DEFAULT NULL,
  `foto` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`CustomerID`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 

Go To : Tools > Module & Builder > Create Module


Fill all forms with following item :
  1. Module Name / Title : Customers
  2. Class Controller : customers.
  3. Table Master : customers.
  4. Module Note : View All Customer Data
  5. Select you SQL statement: Check Auto SQL
  6. Click Button " Create Module

If you not getting any error , its should be redirecting you to module manager page



No comments :

Post a Comment