PHP Classes

File: resources/views/livewire/post-create.blade.php

Recommend this page to a friend!
  Classes of Busari Ridwan   Laravel Livewire CRUD   resources/views/livewire/post-create.blade.php   Download  
File: resources/views/livewire/post-create.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Livewire CRUD
CRUD application implemented with Laravel Livewire
Author: By
Last change:
Date: 2 years ago
Size: 1,002 bytes
 

Contents

Class file image Download
<div class="m4-4">
    <form wire:submit.prevent="addPost">
        <div class="form-group">
            <label for="title">
                Title
            </label>
            <input type="text" name="title" class="form-control @error('title') is-invalid @enderror" placeholder="Title" wire:model="title">

            @error('title')
                <span class="invalid-feedback">
                    <strong>{{$message}}</strong>
                </span>
            @enderror
        </div>

        <div class="form-group">
            <label for="title">
                Body
            </label>
            <textarea name="body" class="form-control @error('body') is-invalid @enderror" wire:model="body">Body</textarea>
            @error('body')
            <span class="invalid-feedback">
                    <strong>{{$message}}</strong>
                </span>
            @enderror
        </div>

        <button type="submit" class="btn btn-primary">Post</button>

    </form>
</div>