A colon cannot be used in an unquoted mapping value
Closed this issue · 1 comments
MosetiReagan commented
- Laravel Version: 10.2.4
- PHP Version: 8.01
- Blueprint Version: 2.6
- Platform: Windows
Issue:
A colon cannot be used in an unquoted mapping value at line 32 (near " error: "/generate-certificate"").
draft.yaml:
routes:
- url: /generate-certificate
- controller: CertificateController@index
- methods:
- GET
- POST
models:
Certificate:
first_name:
type: string
length: 100
last_name:
type: string
length: 100
template:
type: string
length: 100
controllers:
- name: CertificateController
resource: true
requests: true
methods:
- name: index
action: fetch
view: certificates.index
- name: generate
action: create
redirect:
success: "/success"
error: "/generate-certificate"
views:
- name: certificates.index
path: resources/views/certificates/index.blade.php
sections:
- name: content
content: "Placeholder text here without HTML"
- name: success
path: resources/views/success.blade.php
sections:
- name: content
content: "Placeholder text here without HTML"
requests:
- StoreCertificateRequest
- first_name
- last_name
- template
migrations: true
factories: true
tests: true
jasonmccreary commented
The syntax you have for redirect:
is incorrect. It only accepts a string/reference, not an array. If you want such a syntax, feel free to open a PR.