Skip to content

Commit

Permalink
Merge pull request #81 from MohmmedAshraf/l11-compatibility
Browse files Browse the repository at this point in the history
Add Support for Laravel 11
  • Loading branch information
MohmmedAshraf authored Mar 22, 2024
2 parents 7c715d6 + eed0d77 commit 76b73ce
Show file tree
Hide file tree
Showing 9 changed files with 5,225 additions and 214 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
laravel: [10.*]
php: [8.3, 8.2]
laravel: [11.*]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="https://github.com/MohmmedAshraf/laravel-translations/actions?query=workflow%3Arun-tests"><img src="https://github.com/MohmmedAshraf/laravel-translations/workflows/run-tests/badge.svg" alt="Tests"></a>
<a href="https://packagist.org/packages/outhebox/laravel-translations"><img src="https://img.shields.io/packagist/dt/outhebox/laravel-translations" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/outhebox/laravel-translations"><img src="https://img.shields.io/packagist/php-v/outhebox/laravel-translations.svg" alt="PHP from Packagist"></a>
<a href="https://packagist.org/packages/outhebox/laravel-translations"><img src="https://img.shields.io/badge/Laravel-10.x-brightgreen.svg" alt="Laravel Version"></a>
<a href="https://packagist.org/packages/outhebox/laravel-translations"><img src="https://img.shields.io/badge/Laravel-11.x-brightgreen.svg" alt="Laravel Version"></a>
</p>

### Introduction
Expand All @@ -33,9 +33,7 @@ To buy me a coffee, click the button below:
<a href="https://www.buymeacoffee.com/outhebox" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

### Requirements

- PHP `8.1` or higher
- Laravel `v10.x` or higher
> **Requires [PHP 8.2+](https://php.net/releases/) and [Laravel 11.x](https://laravel.com/docs/11.x/installation)**
### Features
- Easily view, create, and delete translations with an intuitive interface.
Expand Down
22 changes: 10 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,20 @@
}
],
"require": {
"php": "^8.1|^8.2|^8.3",
"based/momentum-lock": "^0.2.0",
"based/momentum-modal": "^0.2.0",
"brick/varexporter": "^0.3.7|^0.4.0",
"illuminate/contracts": "^10.0",
"inertiajs/inertia-laravel": "^0.6.11",
"php": "^8.2|^8.3",
"based/momentum-modal": "^0.3.0",
"brick/varexporter": "^0.4.0",
"illuminate/contracts": "^11.0",
"inertiajs/inertia-laravel": "^1.0",
"spatie/laravel-package-tools": "^1.0",
"spatie/laravel-query-builder": "^5.7",
"stichoza/google-translate-php": "^5.1",
"tightenco/ziggy": "^1.8",
"ext-zip" : "*"
"tightenco/ziggy": "^2.0",
"ext-zip": "*"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.0",
"orchestra/testbench": "^8.0",
"nunomaduro/collision": "^8.0",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.18",
"pestphp/pest-plugin-faker": "^2.0",
"pestphp/pest-plugin-laravel": "^2.2",
Expand Down Expand Up @@ -85,4 +83,4 @@
},
"minimum-stability": "stable",
"prefer-stable": true
}
}
Loading

0 comments on commit 76b73ce

Please sign in to comment.