Skip to content

Instantly share code, notes, and snippets.

@elinardo10
elinardo10 / addimagem.blade.php
Last active September 30, 2019 12:40
Uploado de multiplo de imagens com FormRequest
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row mt-5">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-header">Cadastrar Novo imagem em {{$projeto->nome}}</div>
<div class="card-body">
<template>
<v-flex xs12>
<v-card class="elevation-2 pa-3" flat>
<v-card-text >
<v-flex xs12 >
<UserAvatar :user="user" />
</v-flex>
<v-container grid-list-xl fluid>
<v-form @submit.prevent="update()" enctype="multipart/form-data" v-model="valid">
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Support\Facades\Storage;
use App\Notifications\ResetPassword as ResetPasswordNotification;
use Carbon\Carbon;
use App\Models\Specialty;
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use App\Models\Specialty;
use Illuminate\Support\Facades\Hash;
use App\Http\Requests\UserformRequest;
<?php
namespace App\Acme\Services;
use App\Acme\Models\Hotel;
use App\Acme\Resources\HotelResource;
use App\Acme\Traits\ApiResponseTrait;
class HotelService
{
use ApiResponseTrait;
<template>
<v-card>
<v-card-title>
<v-subheader>
<span class="headline">Imagens do Quarto</span>
</v-subheader>
<v-spacer />
<v-btn
<?php
namespace App\Acme\Models;
use Illuminate\Database\Eloquent\Model;
class Quotation extends Model
{
protected $fillable = ['data', 'user_id'];
protected $casts = [
<template>
<v-container fluid grid-list-lg ma-0 pa-0>
<v-layout>
<v-flex xs12 sm4>
<v-autocomplete
v-model="localState"
name="state"
:items="states"
label="Estado"
item-value="id"
<template>
<v-navigation-drawer
id="appDrawer"
v-model="drawer"
:clipped="$vuetify.breakpoint.lgAndUp"
fixed
app
>
<v-list dense expand>
<template v-for="(item, i) in menus">
<template>
<transition name="fade">
<div id="pageTable">
<v-container grid-list-xl fluid>
<v-layout row wrap>
<v-flex sm12>
<h3>Lista de usuários</h3>
</v-flex>
<v-flex lg12>
<v-card>