twill icon indicating copy to clipboard operation
twill copied to clipboard

Laravel 11 support

Open ifox opened this issue 1 year ago • 0 comments

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:

  • https://github.com/Astrotomic/laravel-translatable/pull/387
  • https://github.com/lazychaser/laravel-nestedset/pull/594
  • https://github.com/cartalyst/tags/pull/47
  • https://github.com/spatie/laravel-activitylog/pull/1276
  • https://github.com/spatie/laravel-analytics/pull/514

This PR can be tested using the following Composer configuration:

"repositories": [
    {
        "type": "vcs",
        "url": "[email protected]:area17/laravel-translatable.git"
    },
    {
        "type": "vcs",
        "url": "[email protected]:area17/laravel-nestedset.git"
    },
    {
        "type": "vcs",
        "url": "[email protected]:ifox/tags.git"
    },
    {
        "type": "vcs",
        "url": "[email protected]: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

ifox avatar Feb 13 '24 01:02 ifox