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


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


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.


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


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 [""]:
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

March 15, 2019 at 8:58pm
wow! nice , glad to hear the update to Laravel Mix 4 improved things. also 1.2.1 ships with the actual compiled assets so you could even bypass the build step and have your app running in just a couple of seconds I think!
does Twill support Postgres?
and Laravel 5.8 now, will update that!

March 20, 2019 at 7:48pm
Just used it, works great! Thanks
Show more messages