menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Twill

Rapidly create a custom admin console that content publishers will love. Twill is an open source CMS toolkit for Laravel, crafted by AREA 17.

Channels
Team

Create a Twill app in one line

March 15, 2019 at 8:48pm

Create a Twill app in one line

March 15, 2019 at 8:48pm (Edited 3 years ago)
I made a composer package create-twill-app to help people create a fresh twill app in one line.
I found this small tool was super useful during the past few months, whenever I needed to create a new twill app either for testing purpose or as a real world product.
The only problem at that time was it cost too much time on compiling assets, however, thanks to the Twill 1.2.1 release which get Laravel Mix 4 updated, the installation time now has been decreased significantly by almost 200%.
Thus now maybe a good time to share it with all other developers who love Twill.

Requirements

  • PHP >= 7.1.3
  • An empty MySQL database
  • Composer

Usage

First, download the create-twill-app package using Composer:
composer global require yanhaoli/create-twill-app
Then, use the installer to create a fresh twill application:
create-twill-app new blog
It will ask you to enter the database infomation during the installation:
Enter your database host ["127.0.0.1"]: 127.0.0.1
Enter your database username ["homestead"]: homestead
Enter your database password ["secret"]: secret
Enter your database name ["homestead"]: homestead
Once you see the message Laravel development server started:, that means the installation has been completed.
Now, access Twill's beautiful login console by typing http://localhost:8000/admin in your browser, enjoy!
Screen Shot 2019-03-15 at 4.11.45 PM.png
Show previous messages

March 31, 2020 at 4:52pm
Not yet, but I could update it to support 2.0 this week.

April 2, 2020 at 11:31am
create-twill-app 1.0.8 has been released, added support for Twill 2.0 and Laravel 7

April 9, 2020 at 1:22pm

December 29, 2020 at 9:53pm
(yanhaoli) i have error for use this command for now In PackageManifest.php line 131:
Undefined index: name