Giter Club home page Giter Club logo

php-laravel's Introduction

php-laravel-Todo

Product TODO APP In this app, you will be able to -

Create your own Todo (By inputting a name of your Todo, description) Show a list of Todos you’ve created Edit a Todo — change a value (Either name or description or both) Delete a Todo — Remove a Todo from the database SETUP DATABASE Most applications require a database. We will use this to store records of our Todos.

Open localhost/phpmyadmin/. Login using root as username and an empty password (Leave it blank) — “ ” Once opened, click on New, input the database name as todos_app and click Create Open your project and navigate to .env file. Set - DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=todos_app DB_USERNAME=root DB_PASSWORD=

MODEL -> VIEW -> CONTROLLER (MVC) Model-View-Controller (MVC) is an architectural pattern used by Laravel that separates an application into three main logical components: the model, the view, and the controller.

On each html that we are going to be writing that requires these set of codes, we will be extending this app.blade.php.

DISPLAY ALL TODOS VIEW

This will be our first view when you visit the website’s homepage. It basically shows a list of al ltodos you’ve created.

Head over to resources/views Delete the welcome.blade.php. We don't need that anymore Right click on views -> Create a new PHP file, name it index.blade.php

php-laravel's People

Contributors

taman-k avatar

Watchers

 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.