thedevdojo/voyager

Laravel 11 Support

larson-carter opened this issue ยท 12 comments

Laravel version

11

PHP version

8.2

Voyager version

1.7

Database

PostgresQL

Description

There is not laravel 10 or really laravel 11 support. It would be ideal if we could modernize and develop the application to be inclusive of this new framework.

Steps to reproduce

Attempt to install

Expected behavior

Install and work as it does on older versions

Screenshots

No response

Additional context

No response

@larson-carter Laravel 10 support is available. It's in the non-default branch of version 1.7.(https://github.com/thedevdojo/voyager/tree/1.7) (https://github.com/thedevdojo/voyager/releases/tag/v1.7)

But Laravel 11 support would be really great.

We need laravel 11 ๐Ÿ‘

@schruptor Yes, laravel 10 works great on that 1.7 branch (I think that it is stable enough for it to be on the default branch, just needs to be merged). However, there is no Laravel 11 support.

Maybe if I get time in a few weekends I will come back and make 11 support unless someone beats me to it.

I think it will take a while (if it will ever be done...), because the loss of Doctrine DBAL seems like a gigantic undertaking for Voyager to overcome ๐Ÿ˜”

@cotiga I completely agree. 11 was a big jump over 10, heck really 9.

I do think that there are a different items that make this upgrade quite a challenge.

I just do not know of any alternatives that do the same functionality and are as modern/flexible.

We have to create adaptable version for all

I don't think there is a big jump from laravel 10 to 11, just some folders have been deleted, a simpler skeleton and now the project is started via bootstrap, that's all.

@duran004 Laravel 10 to 11 is quite a massive jump under the hood. It is not just folders being deleted or hidden.

Internal kernel functionality has been significantly modified.

Has anyone reviewed/tested this commit for a support of Laravel 11 a4e3eef

Hi,
Laravel 10 bug fixes are over since 7th August 2024, PHP 8.2 Security fixes until February 2025.
Someone started something here: #5801

Has anyone reviewed/tested this commit for a support of Laravel 11 a4e3eef

That 1.8 branch is still a work in progress. It is still not fully compatible with Laravel 11 though as the TCG\Voyager\Database\Types; still uses the deprecated Doctrine DBAL.

A lot of the BREAD functionality really depends on that Doctrine DBAL package which is no longer compatible with Laravel 11.

image

Quick update on the above, the 1.8 branch now works with Laravel 11.

This release includes some bug fixes and package updates to make it compatible with Laravel 11 with one exception:

Warning

As of Laravel 11 the Doctrine DBAL package has been removed from Laravel. This currently breaks the Voyager Database Manager. We are working on a fix for this, but in the meantime, you can just use the Laravel Database migrations to manage your database instead. The Voyager database manager might get deprecated in the next release.

image