diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index d84e569..40be023 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,14 +1,14 @@ blank_issues_enabled: false contact_links: - name: Ask a question - url: https://github.com/bekwoh/laravel-action/discussions/new?category=q-a + url: https://github.com/cleaniquecoders/laravel-action/discussions/new?category=q-a about: Ask the community for help - name: Request a feature - url: https://github.com/bekwoh/laravel-action/discussions/new?category=ideas + url: https://github.com/cleaniquecoders/laravel-action/discussions/new?category=ideas about: Share ideas for new features - name: Report a security issue - url: https://github.com/bekwoh/laravel-action/security/policy + url: https://github.com/cleaniquecoders/laravel-action/security/policy about: Learn how to notify us for sensitive bugs - name: Report a bug - url: https://github.com/bekwoh/laravel-action/issues/new + url: https://github.com/cleaniquecoders/laravel-action/issues/new about: Report a reproducible bug diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 39ff7ee..417015b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,13 +12,13 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.1] - laravel: [9.*] + os: [ubuntu-latest] + php: [8.1, 8.2] + laravel: [10.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 9.* - testbench: 7.* + - laravel: 10.* + testbench: 8.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff5b84..ac25531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,20 +4,20 @@ All notable changes to `laravel-action` will be documented in this file. ## 1.1.3 - 2022-09-17 -**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.2...1.1.3 +**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.2...1.1.3 ## 1.1.2 - 2022-09-16 -**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.1...1.1.2 +**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.1...1.1.2 ## 1.1.1 - 2022-09-16 -**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.0...1.1.1 +**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.0...1.1.1 ## 1.1.0 - 2022-09-16 -**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.0.0...1.1.0 +**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.0.0...1.1.0 ## 1.0.0 - 2022-09-11 -**Full Changelog**: https://github.com/bekwoh/laravel-action/commits/1.0.0 +**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/commits/1.0.0 diff --git a/LICENSE.md b/LICENSE.md index 656c4c0..24f0fae 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) bekwoh +Copyright (c) cleaniquecoders Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index dce4293..95332b2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Simple Actionable for Laravel -[![Latest Version on Packagist](https://img.shields.io/packagist/v/bekwoh/laravel-action.svg?style=flat-square)](https://packagist.org/packages/bekwoh/laravel-action) -[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/bekwoh/laravel-action/run-tests?label=tests)](https://github.com/bekwoh/laravel-action/actions?query=workflow%3Arun-tests+branch%3Amain) -[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/bekwoh/laravel-action/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/bekwoh/laravel-action/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) -[![Total Downloads](https://img.shields.io/packagist/dt/bekwoh/laravel-action.svg?style=flat-square)](https://packagist.org/packages/bekwoh/laravel-action) +[![Latest Version on Packagist](https://img.shields.io/packagist/v/cleaniquecoders/laravel-action.svg?style=flat-square)](https://packagist.org/packages/cleaniquecoders/laravel-action) +[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/cleaniquecoders/laravel-action/run-tests?label=tests)](https://github.com/cleaniquecoders/laravel-action/actions?query=workflow%3Arun-tests+branch%3Amain) +[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/cleaniquecoders/laravel-action/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/cleaniquecoders/laravel-action/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) +[![Total Downloads](https://img.shields.io/packagist/dt/cleaniquecoders/laravel-action.svg?style=flat-square)](https://packagist.org/packages/cleaniquecoders/laravel-action) Simple Actionable for Laravel. @@ -12,7 +12,7 @@ Simple Actionable for Laravel. You can install the package via composer: ```bash -composer require bekwoh/laravel-action +composer require cleaniquecoders/laravel-action ``` You can publish the config file with: @@ -25,19 +25,19 @@ Optionally, you can publish the views using ## Usage -```bash +```bash php artisan make:action User\\CreateOrUpdateUser --model=User ``` This will create an action in `app\Actions\User`: -```php +```php 'Nasrul Hazim', 'email' => 'nasrul@work.com'])); diff --git a/composer.json b/composer.json index 644ae0c..b06d983 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { - "name": "bekwoh/laravel-action", + "name": "cleaniquecoders/laravel-action", "description": "Simple Actionable for Laravel", "keywords": [ - "bekwoh", + "cleaniquecoders", "laravel", "laravel-action" ], - "homepage": "https://github.com/bekwoh/laravel-action", + "homepage": "https://github.com/cleaniquecoders/laravel-action", "license": "MIT", "authors": [ { @@ -17,7 +17,7 @@ ], "require": { "php": "^8.1", - "bekwoh/laravel-contract": "^1.0", + "cleaniquecoders/laravel-contract": "^1.0", "illuminate/contracts": "^9.0|^10.0", "spatie/laravel-package-tools": "^1.14.0" }, @@ -35,13 +35,13 @@ }, "autoload": { "psr-4": { - "Bekwoh\\LaravelAction\\": "src", - "Bekwoh\\LaravelAction\\Database\\Factories\\": "database/factories" + "CleaniqueCoders\\LaravelAction\\": "src", + "CleaniqueCoders\\LaravelAction\\Database\\Factories\\": "database/factories" } }, "autoload-dev": { "psr-4": { - "Bekwoh\\LaravelAction\\Tests\\": "tests" + "CleaniqueCoders\\LaravelAction\\Tests\\": "tests" } }, "scripts": { @@ -60,10 +60,10 @@ "extra": { "laravel": { "providers": [ - "Bekwoh\\LaravelAction\\LaravelActionServiceProvider" + "CleaniqueCoders\\LaravelAction\\LaravelActionServiceProvider" ], "aliases": { - "LaravelAction": "Bekwoh\\LaravelAction\\Facades\\LaravelAction" + "LaravelAction": "CleaniqueCoders\\LaravelAction\\Facades\\LaravelAction" } } }, diff --git a/config/action.php b/config/action.php index c753539..e0c04bb 100644 --- a/config/action.php +++ b/config/action.php @@ -1,6 +1,6 @@ 'App\\Models\\', ]; diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9a7e884..70a1647 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,39 +1,23 @@ - - - - tests - - - - - ./src - - - - - - - - - - + + + + tests + + + + + + + + + + + + + + + ./src + + diff --git a/src/AbstractAction.php b/src/AbstractAction.php index c117349..e98f5a2 100644 --- a/src/AbstractAction.php +++ b/src/AbstractAction.php @@ -1,9 +1,9 @@ in(__DIR__); diff --git a/tests/TestCase.php b/tests/TestCase.php index fd99bd9..4f68cbb 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,8 +1,8 @@ 'Bekwoh\\LaravelAction\\Database\\Factories\\'.class_basename($modelName).'Factory' + fn (string $modelName) => 'CleaniqueCoders\\LaravelAction\\Database\\Factories\\'.class_basename($modelName).'Factory' ); }