Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laranuxt

> 前端框架
Open source

Laravel and Nuxt.js boilerplate

693 stars0 likes1 views
WebsiteGitHub

About

Laravel and Nuxt.js boilerplate

Laravel + Nuxt.js Boilerplate

Now supporting Nuxt v3

Are you using Laravel with vapor? want your Nuxt setup on lambda as well? TRY FUME!

Examples on using Dark Mode, authentication, and listing data

What is included

  • NUXT v3 front end, a progressive Vue.js framework - For Nuxt v2 visit this branch

    • nuxt UI a collection of components built by the NuxtJS team, powered by TailwindCSS
    • Authentication library to assist with user sessions and logging in/out
    • Example Authentication Middleware
  • Laravel - for our API - v11.0.0

    • Model Typer - Generates Typescript interfaces from Laravel Models
    • MetAPI - API helpers and utilities
    • humble - Passwordless sessioning with detailed device and location
    • debugbar - awesome debugbar for our API
    • ide-helper - Helper files to enable help with IDE autocompletion

Installation

  • clone from GitHub
  • run pnpm i and composer install to install all of your deps
  • copy .env.example to .env and configure it to your likings
  • TL;DR
bash
git clone [email protected]:fumeapp/laranuxt.git; cd laranuxt; pnpm i; composer install; cp .env.example .env;
  • Feel free to delete excess media in /resources/

Local Environment

  • run pnpm run dev in one terminal for our nuxt dev setup
  • run pnpm run api (alias for ./artisan serve) in another terminal for our laravel API

Api and Authentication

  • Api and auth can be accessed via the provided Api library
typescript
const api = useApi()
console.log(api.$user.name);

Authentication

  • Take a look at HeaderLoginModal.vue to see how we pass the credentials to our library
typescript
  const redirect = await api.login(result)
  if (redirect) await router.push({path: redirect})
  • Once logged on, you have the ref api.loggedIn and the object api.$user
xml
  

API

The API class provides helper functions to easily retrieve, update, and remove data from your Laravel endpoints. If you use and update modeltyper regularly you will always have completely typed results

  • To get a listing/index of data, use api.index
typescript
const users = api.index('/user', { page: 1 })
  • To get an individual by id, use api.get
typescript
const users = api.get('/user/1')
  • To update with an id, use api.put
typescript
const result = api.put('/user/1', user)
  • To store a new record, use api.store
typescript
const result = api.store('/user', { name: 'Bob', email: '[email protected]' })
  • To delete with an id, use api.delete
typescript
const result = api.delete('/user/1')

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPlaravelmdimetapinuxt

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架