statamic

Can I install a Laravel project in a subdirectory of my server?

[亡魂溺海] 提交于 2019-12-25 08:59:59
问题 I have a website that was built with just good vanilla PHP, no frameworks, etc. I am now needed to add a blog to this website and I am wanting to use Laravel / Statamtic to do so. My question is this: Can I install a Laravel project in a subdirectory of my server? For example, www.mywebsite.com/blog/. Ideally, everything in the blog directory would operate with my Laravel code. Everything outside of the blog directory would just continue to work as is. Is this possible? And if it is possible,

How can I associate file uploads with a form submission that has not yet been created?

不想你离开。 提交于 2019-12-24 09:58:39
问题 I'm building a traditional server-rendered HTML application (using Statamic on top of PHP) that lets users create ideas. They visit a Create Idea form, fill out some questions, and click submit. Once they do so, the form sends a POST request to the server, which then saves the data, generating an ID (and slug) for the idea. I'd now like to let users upload files as part of their idea. The old-fashioned way to do this, of course, would just be to add file inputs to the form, and then have