Fast Prototyping with Lighthouse Laravel

  • Let's say if you want to create a record, just define a schema and action in the same line as this and it will create a model no need to create separate routes, controllers, requests for this.
type Mutation {
createPost(title: String!): Post @create
type Query {
posts: [Post!]! @paginate
  • Most of the time we spend time documenting the Apis. With Lighthouse they provide default Playground for testing your API along with the documentation of yours schemas.
  • If you feel like you need a custom way around for your requirements. Extending is easy all you need to do is create a Resolver i.e (mutation or query) it acts as a controller like we used to do.





Software Development Enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Computing Royalties at Deezer

Building Confidence

Product Development using Agile methodology — Zomato

Devops in Mobile App Development — a QA perspective

Why low-code is the perfect learning tool for software developers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ujwal dhakal

ujwal dhakal

Software Development Enthusiast

More from Medium

implementing custom auth guard in laravel

How to implement pagination in Laravel 9 + Inertia.js + Vue 3 stack

How To Display Flash Messages With Laravel 9 + Jetstream + Vue Inertia.JS

What is Laravel? What are the Main Features?