keskonmange/resources/views/menus/create.blade.php

22 lines
506 B
PHP
Raw Normal View History

@extends('layouts.app')
@section('title', 'Ajouter un menu')
@section('content')
<h1>Ajouter un menu</h1>
<form method="POST" action="{{ route('menus.store') }}">
@csrf
<label for="title">Titre du menu</label><br />
<input id="title" name="title" type="text" class="@error('title') is-invalid @enderror"><br />
@error('title')
<div class="alert alert-danger">{{ $message }}</div>
@enderror
<input type="submit" value="Nouveau menu">
</form>
@endsection