Creo que termine con el admin del post
This commit is contained in:
20
resources/views/admin/posts/edit.blade.php
Normal file
20
resources/views/admin/posts/edit.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('title')
|
||||
<h1>Edit Post</h1>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form action="{{ route('admin.post.update', ['post' => $post->id]) }}" method="post">
|
||||
@csrf
|
||||
<div>
|
||||
<label for="title">Titulo</label>
|
||||
<input type="text" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="md">Contenido</label>
|
||||
<textarea id="md" name="md">{{ old('md', $post->md) }}</textarea>
|
||||
</div>
|
||||
<input type="submit" class="button" value="Actualizar"/>
|
||||
</form>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user