Version 2 of the TypeDCMS Starter Kit for Laravel has been released
This release drops support for Laravel 8 and introduces blueprint scaffolding.
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.phpPretty 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.