Basic routes and BeerListController methods
This commit is contained in:
20
resources/views/list/create.blade.php
Normal file
20
resources/views/list/create.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
Add list
|
||||
<form method="POST" action="{{ route('list.store') }}">
|
||||
@csrf
|
||||
<label for="title">
|
||||
List Name
|
||||
</label>
|
||||
<input class="bg-gray-300 border-black border-1" type="text" name="title">
|
||||
@if ($errors->has('title'))
|
||||
<span class="text-red-600" role="alert">
|
||||
<strong>{{ $errors->first('title') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
<button type="submit">
|
||||
Add List
|
||||
</button>
|
||||
</form>
|
||||
@endsection
|
||||
6
resources/views/list/show.blade.php
Normal file
6
resources/views/list/show.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
{{ $list->title }}
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user