There has been an error adding users_c3por2d2007og.

There has been an error adding userdata_c3por2d2007og.

Norwegian Kings

Norwegian Kings

Array to Database Mapping

This is a Rapid Application Development tool designed to speed up the work flow by taking out the need to run commands from the command line when creating and updating the creation of database components. It works by mapping a multidementional array the same as a traditional ORM maps an Object. But instead of running commands from a command line interface you run a function on page refresh that intuitively creates and updates database tables and rows. This allows you to not have to leave your editor while developing. DIFFERENT SERVERS USE DIFFERENT CONFIGURATIONS. EXAMPLE MY SERVER ONLY ALLOWS ONE TIMESTAMP. YOU MIGHT NEED TO LOOK OVER YOUR SETTING PRIOR TO USE.

Custom Code Configuration

Follow the Installation instructions at Trigves Arm for Custom Php. Build the tablesArray in the same style as the array at the top of the class but add your own names and fields. The first two fields are the table name, the unique auto increment id. They have to be in the array. The created_at and the updated_at are optional but some servers only allow one. The rest are also optional. They can be changed to VARCHAR TEXT INT etc.. For the moment this class is a stand alone project and has not been configured to work with other database management systems.

Laravel Configuration

Follow the Installation instructions at Trigves Arm for Laravel. Build the tablesArray in the same style as the array at the top of the class but add your own names and fields. The first two fields are the table name, the unique auto increment id. They have to be in the array. The created_at and the updated_at are optional but some servers only allow one. The rest are also optional. They can be changed to VARCHAR TEXT INT etc.. For the moment this class is a stand alone project and has not been configured to work with Voyager or Artisan commands. I will be working on this for the future updates.

Laravel via Composer Configuration

PLEASE USE ON A NEW INSTALL OF LARAVEL FIRST TILL YOU UNDERSTAND HOW IT WORKS. Go into the root of your Laravel installation and run composer require trigves/arm from the command line. Add Trigves\Arm\ArmServiceProvider:class, to the providers array in config/app.php, fill in you database credentials in .env and run php artisan vendor:publish from your root. It will create an arm.php in the config folder where you can manage the tablesArray from. You will have to build your application from the array from there on out. It does not work with make:auth or Voyager. Out of the box it will automatically create the users table by default but you can erase it by erasing it from the tablesArray. I left it in there as and example because you have to follow the naming conventions. It builds it the moment you publish. Build the tablesArray in the same style but add your own names and fields. The first two fields are the table name, the unique auto increment id. They have to be in the array. The created_at and the updated_at are optional but some servers only allow one. The rest are also optional. They can be changed to VARCHAR TEXT INT etc.. There is some overhead in page load time when in development. When you go to production comment out the Service in the providers array in config/app.php and the load time will go back to normal. I will be working on an auth system for the next version.

Have Fun!

Thats it. Your in business. I will keep building on it and in the next few days have a composer package. My plans with it are to make it work with or without Voyager in Laravel(Awesome Admin with Blog for Laravel Developers), Symfony, and Code-Igniter. I'll also be looking into creating plugins for WordPress and Magento Development.

Code is King


Created by Global Web Methods