GithubHelp home page GithubHelp logo

laravel-exam's Introduction

Laravel Exam

Laravel version 10.10 codebase containing a brand new template that adheres to the current repo.


Getting started

Installation

Please check the official laravel installation guide for server requirements before you start. Official Documentation

General Overview

  1. Clone the repository
  2. Switch to the repo folder
  3. Install all the dependencies using composer
  4. Copy the example env file and make the required configuration changes in the .env file
  5. Generate a new application key
  6. Run the database migrations
  7. Start the local development server

Exam Instructions and requirements

  1. Create a new branch with the candidate's name (Your name). After the branch is done, the candidate should do the following:
  2. Configure a local database and run the default laravel migrations that are already created in laravel. Postgress, MySQL or sqlserver can be used.
  3. Create a new model called Product, that must include the product’s migration to the database. This migration depends entirely on the candidate's vision to build the table attributes.
  4. Create the ProductsController.
  5. Build a relationship between products and users. A product should have an unique user. That means that a product belongs to an user and a user has one product. This must be done using laravel models to achieve it.
  6. Create a function in the ProductsController to create a new user in the database. After the user is created, created a product and link that product to the user using the model previously created. This can be completed on the same function.
  7. Print the results creating and using a route that points to the ProductsController to show all users that has products related or linked.
  8. Push the changes to the candidate’s branch

laravel-exam's People

Contributors

jhoanborges avatar

Watchers

 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.