TypedCMS is currently in Early Access. To start using TypedCMS now, please register for our Early Access Program.

This release drops support for Laravel 8 which reached EOL back in January!

Release Notes:

  • Support for Laravel 8 dropped.
  • PHPStan and Testbench updated.
  • New Scaffold command adds support for quickly scaffolding a blueprint's Model, Repository and Controllers.
  • Models, repositories and resolvers have been moved to the new Starter Kit for PHP (GitHub).

What's all this Scaffolding Business

Scaffolding a blueprint is a simple as running the following command:

php artisan typedcms:scaffold post --collection=latest-posts

Which produces the following files:

- app
  - Http
    - Controllers
      - Posts
        - PostController.php
        - LatestPostsController.php
  - Models
    - Post.php
  - Repositories
    - LatestPostsRepository.php

Pretty easy 'eh? You can have a look at the stubs for their contents.

Future Plans

Wouldn't it be awesome to also generate the blueprint and collection in TypedCMS, assuming they don't already exist that is?

Well, why not; with TypedCMS Management API you can achieve anything you might otherwise use the GUI for. 

The upcoming patterns feature means we can generate blueprints with collections and fields conforming to common usage scenarios. Once available, we'll definitely revisit scaffolding with the aim to integrate these patterns.

Watch this space!


Share this post

Laravel Starter Kit Guide

Starter Kit

TypedCMS' use of JSON:API specification compliant APIs make it really easy to integrate into any new or existing Laravel project.

The TypedCMS Starter Kit for Laravel is the perfect kick start to your implementation, whether for an existing project or brand new one. Our stater kits are tailored solutions for each platform, unlike the simple API wrappers offered by other vendors.

Our Laravel kit provides Eloquent like models, repositories, query caching and a simple mechanism for adding custom webhook controllers and handlers.