Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon Can I use Twill with Laravel Sail or Homestead


Can I use Twill with Laravel Sail or Homestead


Yes, you can use Twill with both Laravel Sail and Laravel Homestead.

Using Twill with Laravel Sail

Twill is compatible with Laravel Sail, which is Laravel's official Docker development environment. The Twill documentation provides specific guidance on using Twill with Sail:

1. Install Twill: Follow the standard Twill installation steps, as outlined in the Twill documentation. This includes running `composer require area17/twill:"^3.0"` and `php artisan twill:install`.

2. Configure Sail: Ensure your `docker-compose.yml` file is set up correctly for your Twill application. This includes adding any necessary services like MySQL or PostgreSQL.

3. Run Sail Commands: You can use the standard Sail commands to manage your Twill application, such as `sail up`, `sail artisan migrate`, and `sail npm run dev`.

4. Access the Twill Admin: By default, the Twill admin console is available at the `/admin` path of your application. If you're using Sail, you can access the admin console at `https://localhost/admin`.

Using Twill with Laravel Homestead

Twill is also compatible with Laravel Homestead, which is a pre-packaged Vagrant box that provides a development environment for Laravel.

1. Install Twill: Follow the standard Twill installation steps, as outlined in the Twill documentation.

2. Configure Homestead: Ensure your Homestead configuration is set up correctly for your Twill application. This includes adding any necessary services like MySQL or PostgreSQL.

3. Run Homestead Commands: You can use the standard Homestead commands to manage your Twill application, such as `vagrant up`, `vagrant ssh`, and `php artisan migrate`.

4. Access the Twill Admin: By default, the Twill admin console is available at the `/admin` path of your application. If you're using Homestead, you can access the admin console at `https://your-homestead-domain/admin`.

In both cases, Twill will integrate seamlessly with your Laravel development environment, allowing you to take advantage of Twill's features and functionality within your Sail or Homestead-based projects.

Citations:
[1] https://packagist.org/packages/laravel/sail
[2] https://twillcms.com/docs/getting-started/index.html
[3] https://twillcms.com/docs/2.x/getting-started/
[4] https://laravel.com/docs/11.x/sail
[5] https://twillcms.com/docs/getting-started/installation.html