Skip to content

Instantly share code, notes, and snippets.

@BastinRobin
Last active March 19, 2018 05:08
Show Gist options
  • Select an option

  • Save BastinRobin/68f78f9c4a10ed2a04535c0d1f88da5f to your computer and use it in GitHub Desktop.

Select an option

Save BastinRobin/68f78f9c4a10ed2a04535c0d1f88da5f to your computer and use it in GitHub Desktop.
AIMS Fullstack Edition-4

Laravel Fullstack App Development:

Create a laravel application using composer and build the following requirments. You app should contain minimum three pages as follows. All UI components should be written using twitter bootstrap or any other similar frameworks of your choice, but not pure html.

Routes with html return:

  • / - Return a html page which is the homepage
  • /about - Return a html page which is about us page for the given url
  • /contact - Return a html page which is a contact us page for the given url and the page should have a form containing name, email, message, submit button.
  • Basic Authentication should be setup using php artisan make:auth command
  • /home List down all contacts entries which are submitted via contact page

Routes with data return (API):

  • /api/users - Return all rows inside the users table as JSON arrays.
  • /api/users/{id} - Return a single row from users table matching the given {id}.
  • /api/users/email/{email_id} - Return a single user matching the given email_id.
  • /api/users/delete/{id} - Return a boolean (true) after deleting given row matching {id} from users table.
  • /api/contacts - Return all rows inside the contacts tables as JSON arrays.
  • /api/contacts/{id} - Return a single row matching the given {id} from contacts table.
  • /api/contacts/delete/{id} - Return a True once deleted the given row matching {id} from contacts table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment