Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
CRUD-USER
Browse files Browse the repository at this point in the history
  • Loading branch information
Lara121801 committed Nov 24, 2022
1 parent 832d9b2 commit 88126c3
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
83 changes: 83 additions & 0 deletions app/Http/Controllers/UsuarioController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?php

namespace App\Http\Controllers;

use App\Models\Usuario;
use Illuminate\Http\Request;
class UsuarioController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param \App\Models\Usuario $usuario
* @return \Illuminate\Http\Response
*/
public function show(Usuario $usuario)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param \App\Models\Usuario $usuario
* @return \Illuminate\Http\Response
*/
public function edit(Usuario $usuario)
{
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Models\Usuario $usuario
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Usuario $usuario)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param \App\Models\Usuario $usuario
* @return \Illuminate\Http\Response
*/
public function destroy(Usuario $usuario)
{
//
}
}
34 changes: 34 additions & 0 deletions resources/views/admin/user/create.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<x-layouts.app>

<div class="col-md-9">
<div class="card">
<div class="card-header">Registro de Usuario</div>
<div class="card-body">
<form action="{{ url('Usuario') }}" method="post">
{!! csrf_field() !!}
<label>Usuario</label></br>
<input type="text" name="id" id="id" class="form-control"></br>

<label>Nombre</label></br>
<input type="text" name="name" id="name" class="form-control"></br>

<label>Nombre Usuario</label></br>
<input type="text" name="username" id="username" class="form-control"></br>

<label>Estado</label></br>
<input type="text" name="estado" id="estado" class="form-control"></br>

<label>Email</label></br>
<input type="text" name="email" id="email" class="form-control"></br>

<label>Password</label></br>
<input type="text" name="password" id="password" class="form-control"></br>

<input type="submit" value="Save" class="btn btn-success"></br>
</form>

</div>
</div>
</div>

</x-layouts.app>
Empty file.

0 comments on commit 88126c3

Please sign in to comment.