area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.72k stars 568 forks source link

Laravel 11 support #2473

Closed ifox closed 3 months ago

ifox commented 7 months ago

Very excited to share that Twill 3 has been successfully tested with Laravel 11! Read about Laravel 11 on Laravel News.

We will need these PRs on our dependencies to be merged and released:

This PR can be tested using the following Composer configuration:

"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:area17/laravel-translatable.git"
    },
    {
        "type": "vcs",
        "url": "git@github.com:area17/laravel-nestedset.git"
    },
    {
        "type": "vcs",
        "url": "git@github.com:ifox/tags.git"
    },
    {
        "type": "vcs",
        "url": "git@github.com:StevePorter92/laravel-activitylog.git"
    }
],
"require": {
    "php": "^8.2",
    "area17/twill": "dev-laravel-11-support",
    "laravel/framework": "^11.0",
    "laravel/tinker": "^2.9"
},

The main change in Laravel 11 is the streamlined skeleton. When creating a fresh Laravel 11 application, your repository will contains 69 less files than it would on Laravel 10! Read more about this on Laravel News.

I'm personally very excited by the new config directory behavior, which matches the behavior of Twill's configuration file, where you only need to override what you need, and everything else just inherits from the provided defaults.

It looks so good!

app
├── Http
│   ├── Controllers
│   │   └── Twill
│   └── Requests
│       └── Twill
├── Models
├── Providers
│   └── AppServiceProvider.php
├── Repositories
└── View
    └── Components
        └── Twill

bootstrap
├── cache
├── app.php
└── providers.php

config
├── translatable.php
└── twill.php

routes
├── console.php
├── twill.php
└── web.php
driftingly commented 5 months ago
kfina-planxy commented 5 months ago

I have problems installing this for laravel 11:

my composer.json

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/area17/twill.git",
            "canonical": false
        },
        {
            "type": "vcs",
            "url": "git@github.com:area17/laravel-translatable.git",
            "canonical": false
        },
        {
            "type": "vcs",
            "url": "git@github.com:area17/laravel-nestedset.git",
            "canonical": false
        },
        {
            "type": "vcs",
            "url": "git@github.com:ifox/tags.git",
            "canonical": false
        },
        {
            "type": "vcs",
            "url": "git@github.com:StevePorter92/laravel-activitylog.git",
            "canonical": false
        }
    ],
    "require": {
        "php": "^8.2.0",
        "area17/twill": "dev-laravel-11-support",
        "barryvdh/laravel-dompdf": "^2.0",
        "guzzlehttp/guzzle": "^7.2",
        "inertiajs/inertia-laravel": "^1.0",
        "mongodb/laravel-mongodb": "^4.1.1",
        "laravel-notification-channels/microsoft-teams": "^1.1",
        "laravel/framework": "^11.0",
        "laravel/jetstream": "^5.0",
        "laravel/sanctum": "^4.0",
        "laravel/tinker": "^2.9",
        "orangehill/iseed": "^3.0",
        "spatie/laravel-googletagmanager": "^2.6",
        "spatie/laravel-permission": "^6.0",
        "tightenco/ziggy": "^1.0"
    },

And get the following error

Problem 1

Note: I had to add the canonical: false, because otherwise it didn't want to install because there was a "higher priority" package available.

driftingly commented 4 months ago

@ifox @kfina-planxy, it looks like the remaining packages have been updated 🥳 https://github.com/Astrotomic/laravel-translatable/releases/tag/v11.13.0