A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/acidjazz/laranuxt below:

fumeapp/laranuxt: 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

git clone git@github.com:fumeapp/laranuxt.git; cd laranuxt; pnpm i; composer install; cp .env.example .env;
const api = useApi()
console.log(api.$user.name);
  const redirect = await api.login(result)
  if (redirect) await router.push({path: redirect})
  <img class="w-8 h-8 rounded-full bg-blue-400" :src="api.$user.avatar" alt="User Avatar">

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

const users = api.index<models.UserResults>('/user', { page: 1 })
const users = api.get<models.User>('/user/1')
const result = api.put<api.MetapiResponse>('/user/1', user)
const result = api.store<api.MetApiResponse>('/user', { name: 'Bob', email: 'bob@mail.com' })
const result = api.delete<api.MetApiResponse>('/user/1')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4