Implementing Laravel Framework for E-Commerce: Case Study at Indonesian Farmer Shop Center

This paper aims to implement e-commerce using the laravel framework. The implementation of e-commerce is applied to the Indonesian Farmer Shop Center (TTIC) in the city of Padang, especially in the sales section precisely sales and payment transactions. This e-commerce can make it easier for consumers to purchase products in TTIC. For making e-commerce using the laravel framework. For e-commerce creation use the laravel framework. Its data storage uses a MySQL database.


Introduction
West Sumatra is an area where most of the people live by farming, thus, the local government attempts to make this region as an area that has strong food security through food self-sufficiency.The government establishes the Toko Tani Indonesia Center to serve the sale of household needs, such as rice, cooking oil, and vegetables for the city of Padang and its surroundings.TTIC is under the Food Service and was inaugurated in July 2019 by the governor of West Sumatra and it is expected to be a pilot project for the Food Service throughout Indonesia.The purpose of the existence of TTIC in Padang is to assist the people to get cheap and easy necessities such as rice, vegetables, sugar, oil and so on.In addition, the purpose of the existence of TTIC in Padang is to maintain the stability of prices for basic necessities in the society.
Since it was inaugurated in July 2019, many people of Padang City did not know detail about the existence of TTIC, this is because the promotion and transaction processes carried out by TTIC Padang only use Facebook and Instagram media for promotional media.For the transaction process, TTIC also uses Facebook and Instagram to display products and announce prices for these products.If the society wants to buy, the next transaction process will use WhatsApp which is managed by an employee at TTIC Padang city.Definitely, it will make it difficult for people to transact, especially if there is a product update and product price.This update can make people to be confused whether the price of the product has been updated or not due to the price list is only displayed in the photo gallery on the media.Employees who are in charge of conductiong transactions with the society, it will also experience difficulties in confirming the latest prices or updating the prices of products sold by TTIC in the city of Padang.
With the advances of information technology that have entered all areas of life, it is necessary to create an e-commerce to facilitate the society in making purchases of basic necessities at TTIC Padang.The use of e-commerce as a means of selling transactions of basic necessities in the society is a necessity to facilitate the society in making transactions and to facilitate the TTIC of Padang in the transaction process.

AR T IC LE IN F O
A BS T RA C T Timesaving: With e-commerce there is no driving in circles while looking and digging in hopes of finding what you need.Stores online offer their full line as well as use warehouses instead of store fronts-products are easy to locate and can be delivered to your door in just days.
Options, options, and options: Without driving from store to store the consumer can easily compare and contrast products.See who offers the best pricing and have more options to choose from.While a physical store has limited space, the same store on the internet will have full stock.Easy to compare: Side by side comparisons are readily available and easy to do.When products are placed online, they come with all the specifics, and they want you to compare them with others, know they have the best options and come back for more Easy to find reviews: Because the competition is high, companies' online want you to look at other consumer reviews.Good and bad reviews are on every site, not only can you see if the product is liked, you can also see the reasons behind the thumbs up or down.
Coupons and deals: With every online business wanting you, more and more coupons and deals can't be avoided, which are totally great for customers.With major sites that act as department store, you may find items up to 80% off.Take advantage of the competition and find the best price available.
Meanwhile, in terms of the e-commerce business, it has advantages including increasing customer base, increasing sales, expanding business reach, recurring payments made easy, and instant transactions.

Laravel Framework
Laravel framework is a web development framework (MVC) that designed to improve the quality of software by reducing the cost of initial development and ongoing maintenance costs, and to improve the experience of working with your application by providing clear expressive syntax and a core set of functionality that will save your hours of implementation time [5].
Model, View and Controller in PHP are the most widely used patterns in web application development.The model is responsible to manage the data; it stores and retrieves entities used by an application, usually from a database and contains the logic implemented by the application.The view (presentation) is responsible to display the data provided by the model in a specific format.The controller handles the model and view layers to work together.The controller receives a request from the client, invokes the model to perform the requested operations and sends the data to the View.The view formats the data to be presented to the user, in a web application as an html output.[5].The representation of this MVC is shown in Fig. 1.

Proposed Methodology
In this project prototype model was merged with system development life cycle methodology.System development life cycle which also best known as SDLC is a conceptual model used in project management that describes the stages that involved in an information system development project.Unlike waterfall model, the steps from SDLC can be turning back to its previous stage.For example when the project is in implementation phase, when there is any problem from previous stage during implementation stage, the developer can turn back to its previous stage in order to modified/ fix the previous stage.The model are shown in Figure 2.
The stage taken in designing an information system was analyzing the ongoing system.System analysis aimed to see, know and understand what problems of Toko Tani Indonesia Center (TTIC) faced in the business that is being carried out.This can be a reference in designing the information system to be worked on.The research method used was a research method based on the Software Development Life Cycle (SDLC).The SDLC method used was the waterfall method.The waterfall model is a classic model in software development and is also known as the linear sequential life cycle model [6].The basic tasks in this model are requirements analysis, architectural design, implementation and validation [7].The selection of this method is due to this web-based research will use stages is as follows: 1. Literature review, it is undertaken by looking for references and data needed for making information systems.Field studies are carried out at TTIC, and studied the concept of purchasing products to farmers, the system and product distribution flow, till to the process of purchasing products at the TTIC.
2. Needs analysis aims to assess and identify problems that occur, and performs grouping of existing data.At this stage, the manual system prototyping method is then carried out using only paper and pencil to start describing the system in general and the output of this stage is an input at the design stage.
3. Designing, starting from the information system architecture interface design and procedural design of application, designing the output and input of the application to be built.Furthermore, data is sorted into functional and non-functional requirements.The results of this data sorting are then made using UML design, database creation and system flowchart creation a. UML ( Unified Modelling Language) The method used in designing this system model used UML (Unified Modeling Language) which consists of Use Case Diagrams, Class Diagrams, Activity Diagrams, Sequence Diagrams.Use Case Diagram, shows the processes that actors can carry out in the designed system.The actors involved are admin and employees as managers and users as system users.Class Diagram, shown in Fig 2 The following is a scenario of the activity diagram on the information system that will be built, shown in Fig. 3.  4. Implementation, the design that has been completed, it will then be implemented with the specifications of the hardware and software requirements that have been previously specified.All system functionalists which have been determined previously, then, those are tested using dummy data beforehand whether it has been running according to what has been determined at the beginning and it was agreed when the needs analysis was made.All menus that are made, those are tested.After all system functionalists have run according to what has been determined then the actual data system is inputted into the system and carried out from the real system to the predetermined ecosystem, namely TTIC Padang.

Conclusion
Based on the description and discussion in the previous chapters, it can be concluded that: Designing and making e-commerce at TTIC Padang City used the PHP programming language with the Laravel framework in making program code and using MySQL to store data in the database.Designing and making e-commerce of TIC Padang City can assist TTIC Padang City in managing goods, purchasing goods transactions and selling goods transactions.In the system, there were 3 access rights, namely admin, employees, and users.Admin access rights was to access to all data management, employee access rights had limitations in data management.Meanwhile, users had access to view products, manage profiles, manage favorite items and order products.The TTIC System of Padang City displays inventory stock, goods purchase data, goods sales data, goods payment data, and goods delivery data.

Figure 6 .
Figure 6.Data Addition Page