-
Let's say we install laravel, then we install Statamic into our existing laravel. Now, how would we go about setting up our laravel app to work with Statamic without having to setup a user and without having to use the control panel? The documentation appears to assume the control panel throughout and that your app is already fully configured for Statamic after installation, while briefly mentioning that the control panel "can be" optional. Am I forced to look through the source code of the control panel? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
That depends on what you mean by "work with Statamic". You can definately work without the CP (like a headless CMS), which usually means populating the needed files in Example: You can create a Collection and it's Blueprint manually and then use the |
Beta Was this translation helpful? Give feedback.
-
Nevermind, I got it all working now. |
Beta Was this translation helpful? Give feedback.
-
Take the .blade.php out of the route definition in the tank config.
… On May 4, 2022, at 8:55 PM, truefusion ***@***.***> wrote:
That's what I thought, but it doesn't seem to happen so smoothly.
Let's say I have the following collection:
/content/collections/blog.yaml
template: blog.blade.php
route: '/blog/{slug}'
And the following entry:
/content/collections/blog/test.md
---
id: ca22c1ef-0e8b-46fa-abc4-afddec9bc8a9
title: Test
---
test
And the template at /resources/views/blog.blade.php.
Why would navigating to /blog/test exit out with the error?
View [blog.blade.php] not found.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
Nevermind, I got it all working now.