Code Monkey home page Code Monkey logo

laravel-interview-prac's Introduction

Laravel Interview Practical

The website in this repository has many bugs and hasn't been written very well. The parts below are designed to test how you address these problems and add new features. We are not worried about page layout or styling.

Instructions

  • Please clone this repository, and commit your changes for each part.
  • Please either create a Pull-Request with your work, or send over a zipped copy (including the .git directory).

Part 1

  • Improve the routing used in the site.
  • Add validation to the new product process and make sure the product's name is unique.

Part 2

  • Fix any security issues you notice in the ProductController.
  • Fix any security issues or bugs, and make improvements to the blade template (don't worry about layout and styling).

Part 3

Currently, the "description" field in the form doesn't do anything.

  • Please update the products table to include a "description" field, and populate it from this form.

Part 4

Currently, the "tags" field in the form doesn't do anything. We would like to create tags for new products:

  • Create a new Tag model, and a new pivot table to link the Products to the Tags (many-to-many).
  • Take the tags string when the form is submitted and split it by commas.
  • Create a tag for each save it - but only if it's unique.
  • Link the product to each one (whether the tags were new or existed from before).

laravel-interview-prac's People

Contributors

santonil2004 avatar

Watchers

James Cloos avatar  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.