Quick Start Guide
This quick start guide will help you get up and running with InspireCMS in minutes.
Installation
- Create a new Laravel application:
composer create-project laravel/laravel my-inspirecms-project
cd my-inspirecms-project
- Install InspireCMS via Composer:
composer require solution-forest/inspirecms-core
- Run the InspireCMS installer:
php artisan inspirecms:install
- Access your admin panel at
/cmsand complete the setup wizard.
Creating Your First Content
- Log in to the admin panel at
/cms - Navigate to "Content" > "Document Types"
- Click "Create" to add a new document type (e.g., "Blog Post")
- Add custom fields to your document type
- Navigate to "Content" > "Pages"
- Click "Create" to add new content using your document type
Setting Up Your Frontend
-
Create a blade template in
resources/views/components/inspirecms/your-theme/page.blade.php -
Use the
@propertydirective to access your content fields:
<html>
<head>
<title>{{ $content->getTitle() }}</title>
</head>
<body>
<h1>@property('hero', 'title')</h1>
<div class="content">
@property('content', 'body')
</div>
</body>
</html>
- Navigate to "Settings" > "Templates" to assign your template to content
Next Steps
Now that you have InspireCMS up and running, explore the following resources: