This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="q-pa-md full-width"> | |
<q-table :rows="props.rows" :columns="props.columns" row-key="id" @row-click="onClickRow"> | |
<template v-slot:body-cell-action="props"> | |
<q-td :props="props"> | |
<div> | |
<q-btn v-for="(actionButton, index) in actionButtons" :key="index" :icon="actionButton.icon" | |
:color="actionButton.color" @click.stop="onClickButton(props.value, actionButton.name)" dense flat | |
size="sm" padding="xs" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="q-pa-md"> | |
<q-table title="Treats" :rows="rows" :columns="columns" row-key="id" @row-click="onRowClick"> | |
<template v-slot:body-cell-action="props"> | |
<q-td :props="props"> | |
<div> | |
<q-btn v-for="(actionButton, index) in actionButtons" :key="index" :icon="actionButton.icon" | |
:color="actionButton.color" @click.stop="btnclick(props.value, actionButton.name)" dense flat size="sm" | |
padding="xs" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<form | |
action="" | |
method="POST" | |
@submit.prevent="onSubmit" | |
> | |
<!-- Input Fields--> | |
<div> | |
<!-- Email --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateUserTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Validator; | |
class UserController extends Controller | |
{ | |
//create new user view |