Skip to content

Commit

Permalink
chore: remove unneeded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Jul 14, 2024
1 parent 3d91063 commit 7b1e47b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
}
],
"require": {
"php": "^8.2",
"spatie/laravel-package-tools": "^1.16",
"php": "^8.2||^8.1",
"illuminate/contracts": "^10.0||^11.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"nunomaduro/collision": "^8.1.1||^7.10.0",
"orchestra/testbench": "^9.0.0||^8.22.0",
"pestphp/pest": "^2.34",
Expand Down
21 changes: 8 additions & 13 deletions src/ModelRequiredFieldsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,17 @@

namespace WatheqAlshowaiter\ModelRequiredFields;

use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Illuminate\Support\ServiceProvider;

class ModelRequiredFieldsServiceProvider extends PackageServiceProvider
class ModelRequiredFieldsServiceProvider extends ServiceProvider
{
public function configurePackage(Package $package): void
public function register()
{
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');

/*
* This class is a Package Service Provider
*
* More info: https://github.com/spatie/laravel-package-tools
*/
//
}

$package
->name('model-required-fields');
public function boot()
{
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
}
}
2 changes: 2 additions & 0 deletions todos.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
- [x] write automated tests for the code
- [x] write documentation for the code
- [x] add the package to packagist
- [x] remove `spatie/laravel-package-tools`
- [x] remove `larastan`
- [ ] test code for sql server
- [ ] try previous versions of laravel until laravel 6
- [ ] try previous versions of php until php 7.4
Expand Down

0 comments on commit 7b1e47b

Please sign in to comment.