LaravelTest
19 строк · 687.0 Байт
1@extends('layouts.main')
2
3@section('content')
4<div class="container">
5<div class="row">
6<form action="{{ route('categories.update', $category->id)}}" method="POST">
7@csrf
8@method('PUT')
9<div class="form-group">
10<label for="name">Наименование</label>
11<input type="text" class="form-control" id="name" name="title" value="{{$category->title}}" placeholder="Укажите наименование">
12</div>
13
14<button type="submit" class="btn btn-primary">Изменить</button>
15
16</form>
17</div>
18</div>
19@endsection