Skip to content

Commit f548f90

Browse files
authoredDec 3, 2023
Merge pull request #12 from cleaniquecoders/develop
Update Root Namespace
2 parents a6fcb87 + d1250a0 commit f548f90

20 files changed

+77
-93
lines changed
 

‎.github/ISSUE_TEMPLATE/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/bekwoh/laravel-action/discussions/new?category=q-a
4+
url: https://github.com/cleaniquecoders/laravel-action/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/bekwoh/laravel-action/discussions/new?category=ideas
7+
url: https://github.com/cleaniquecoders/laravel-action/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/bekwoh/laravel-action/security/policy
10+
url: https://github.com/cleaniquecoders/laravel-action/security/policy
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/bekwoh/laravel-action/issues/new
13+
url: https://github.com/cleaniquecoders/laravel-action/issues/new
1414
about: Report a reproducible bug

‎.github/workflows/run-tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
os: [ubuntu-latest, windows-latest]
16-
php: [8.1]
17-
laravel: [9.*]
15+
os: [ubuntu-latest]
16+
php: [8.1, 8.2]
17+
laravel: [10.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 9.*
21-
testbench: 7.*
20+
- laravel: 10.*
21+
testbench: 8.*
2222

2323
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2424

‎CHANGELOG.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ All notable changes to `laravel-action` will be documented in this file.
44

55
## 1.1.3 - 2022-09-17
66

7-
**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.2...1.1.3
7+
**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.2...1.1.3
88

99
## 1.1.2 - 2022-09-16
1010

11-
**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.1...1.1.2
11+
**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.1...1.1.2
1212

1313
## 1.1.1 - 2022-09-16
1414

15-
**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.1.0...1.1.1
15+
**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.1.0...1.1.1
1616

1717
## 1.1.0 - 2022-09-16
1818

19-
**Full Changelog**: https://github.com/bekwoh/laravel-action/compare/1.0.0...1.1.0
19+
**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/compare/1.0.0...1.1.0
2020

2121
## 1.0.0 - 2022-09-11
2222

23-
**Full Changelog**: https://github.com/bekwoh/laravel-action/commits/1.0.0
23+
**Full Changelog**: https://github.com/cleaniquecoders/laravel-action/commits/1.0.0

‎LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) bekwoh <nasrulhazim.m@gmail.com>
3+
Copyright (c) cleaniquecoders <nasrulhazim.m@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Simple Actionable for Laravel
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/bekwoh/laravel-action.svg?style=flat-square)](https://packagist.org/packages/bekwoh/laravel-action)
4-
[![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)
5-
[![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)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/bekwoh/laravel-action.svg?style=flat-square)](https://packagist.org/packages/bekwoh/laravel-action)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/cleaniquecoders/laravel-action.svg?style=flat-square)](https://packagist.org/packages/cleaniquecoders/laravel-action)
4+
[![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)
5+
[![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)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/cleaniquecoders/laravel-action.svg?style=flat-square)](https://packagist.org/packages/cleaniquecoders/laravel-action)
77

88
Simple Actionable for Laravel.
99

@@ -12,7 +12,7 @@ Simple Actionable for Laravel.
1212
You can install the package via composer:
1313

1414
```bash
15-
composer require bekwoh/laravel-action
15+
composer require cleaniquecoders/laravel-action
1616
```
1717

1818
You can publish the config file with:
@@ -25,19 +25,19 @@ Optionally, you can publish the views using
2525

2626
## Usage
2727

28-
```bash
28+
```bash
2929
php artisan make:action User\\CreateOrUpdateUser --model=User
3030
```
3131

3232
This will create an action in `app\Actions\User`:
3333

34-
```php
34+
```php
3535
<?php
3636

3737
namespace App\Actions\User;
3838

3939
use App\Models\User;
40-
use Bekwoh\LaravelAction\AbstractAction as Action;
40+
use CleaniqueCoders\LaravelAction\AbstractAction as Action;
4141

4242
class CreateOrUpdateUser extends Action
4343
{
@@ -52,7 +52,7 @@ class CreateOrUpdateUser extends Action
5252

5353
Then you can use it like:
5454

55-
```php
55+
```php
5656
use App\Actions\User\CreateOrUpdateUser;
5757

5858
$user = (new CreateOrUpdateUser(['name' => 'Nasrul Hazim', 'email' => 'nasrul@work.com']));

‎composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "bekwoh/laravel-action",
2+
"name": "cleaniquecoders/laravel-action",
33
"description": "Simple Actionable for Laravel",
44
"keywords": [
5-
"bekwoh",
5+
"cleaniquecoders",
66
"laravel",
77
"laravel-action"
88
],
9-
"homepage": "https://github.com/bekwoh/laravel-action",
9+
"homepage": "https://github.com/cleaniquecoders/laravel-action",
1010
"license": "MIT",
1111
"authors": [
1212
{
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"bekwoh/laravel-contract": "^1.0",
20+
"cleaniquecoders/laravel-contract": "^1.0",
2121
"illuminate/contracts": "^9.0|^10.0",
2222
"spatie/laravel-package-tools": "^1.14.0"
2323
},
@@ -35,13 +35,13 @@
3535
},
3636
"autoload": {
3737
"psr-4": {
38-
"Bekwoh\\LaravelAction\\": "src",
39-
"Bekwoh\\LaravelAction\\Database\\Factories\\": "database/factories"
38+
"CleaniqueCoders\\LaravelAction\\": "src",
39+
"CleaniqueCoders\\LaravelAction\\Database\\Factories\\": "database/factories"
4040
}
4141
},
4242
"autoload-dev": {
4343
"psr-4": {
44-
"Bekwoh\\LaravelAction\\Tests\\": "tests"
44+
"CleaniqueCoders\\LaravelAction\\Tests\\": "tests"
4545
}
4646
},
4747
"scripts": {
@@ -60,10 +60,10 @@
6060
"extra": {
6161
"laravel": {
6262
"providers": [
63-
"Bekwoh\\LaravelAction\\LaravelActionServiceProvider"
63+
"CleaniqueCoders\\LaravelAction\\LaravelActionServiceProvider"
6464
],
6565
"aliases": {
66-
"LaravelAction": "Bekwoh\\LaravelAction\\Facades\\LaravelAction"
66+
"LaravelAction": "CleaniqueCoders\\LaravelAction\\Facades\\LaravelAction"
6767
}
6868
}
6969
},

‎config/action.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
// config for Bekwoh/LaravelAction
3+
// config for CleaniqueCoders/LaravelAction
44
return [
55
'model_namespace' => 'App\\Models\\',
66
];

‎phpunit.xml.dist

+21-37
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="Bekwoh Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="CleaniqueCoders Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage>
9+
<report>
10+
<html outputDirectory="build/coverage"/>
11+
<text outputFile="build/coverage.txt"/>
12+
<clover outputFile="build/logs/clover.xml"/>
13+
</report>
14+
</coverage>
15+
<logging>
16+
<junit outputFile="build/report.junit.xml"/>
17+
</logging>
18+
<source>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
</source>
3923
</phpunit>

‎src/AbstractAction.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction;
3+
namespace CleaniqueCoders\LaravelAction;
44

5-
use Bekwoh\LaravelAction\Exceptions\ActionException;
6-
use Bekwoh\LaravelContract\Contracts\Execute;
5+
use CleaniqueCoders\LaravelAction\Exceptions\ActionException;
6+
use CleaniqueCoders\LaravelContract\Contracts\Execute;
77
use Illuminate\Database\Eloquent\Model;
88
use Illuminate\Support\Facades\DB;
99
use Illuminate\Support\Facades\Hash;

‎src/Commands/LaravelActionCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction\Commands;
3+
namespace CleaniqueCoders\LaravelAction\Commands;
44

55
use Illuminate\Console\GeneratorCommand;
66
use RuntimeException;

‎src/Exceptions/ActionException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction\Exceptions;
3+
namespace CleaniqueCoders\LaravelAction\Exceptions;
44

55
use Exception;
66

‎src/Facades/LaravelAction.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction\Facades;
3+
namespace CleaniqueCoders\LaravelAction\Facades;
44

55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @see \Bekwoh\LaravelAction\LaravelAction
8+
* @see \CleaniqueCoders\LaravelAction\LaravelAction
99
*/
1010
class LaravelAction extends Facade
1111
{
1212
protected static function getFacadeAccessor()
1313
{
14-
return \Bekwoh\LaravelAction\LaravelAction::class;
14+
return \CleaniqueCoders\LaravelAction\LaravelAction::class;
1515
}
1616
}

‎src/LaravelAction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction;
3+
namespace CleaniqueCoders\LaravelAction;
44

55
class LaravelAction
66
{

‎src/LaravelActionServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction;
3+
namespace CleaniqueCoders\LaravelAction;
44

5-
use Bekwoh\LaravelAction\Commands\LaravelActionCommand;
5+
use CleaniqueCoders\LaravelAction\Commands\LaravelActionCommand;
66
use Spatie\LaravelPackageTools\Package;
77
use Spatie\LaravelPackageTools\PackageServiceProvider;
88

‎stubs/action-api.stub

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace {{ namespace }};
44

5-
use Bekwoh\LaravelAction\Concerns\InteractsWithApi;
6-
use Bekwoh\LaravelContract\Contracts\Api;
5+
use CleaniqueCoders\LaravelAction\Concerns\InteractsWithApi;
6+
use CleaniqueCoders\LaravelContract\Contracts\Api;
77
use Illuminate\Http\Request;
88
use Illuminate\Http\Resources\Json\JsonResource;
99
use Illuminate\Http\Resources\Json\ResourceCollection;

‎stubs/action-create-or-update.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace {{ namespace }};
44

5-
use Bekwoh\LaravelAction\AbstractAction as Action;
5+
use CleaniqueCoders\LaravelAction\AbstractAction as Action;
66
use {{ model_namespace }};
77

88
class {{ class }} extends Action

‎stubs/action-menu.stub

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace {{ namespace }};
44

5-
use Bekwoh\LaravelContract\Contracts\Builder;
6-
use Bekwoh\LaravelContract\Contracts\Menu;
5+
use CleaniqueCoders\LaravelContract\Contracts\Builder;
6+
use CleaniqueCoders\LaravelContract\Contracts\Menu;
77
use Illuminate\Support\Collection;
88
use Illuminate\Support\Facades\Gate;
99
use Illuminate\Support\Facades\Route;

‎stubs/action.stub

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace {{ namespace }};
44

5-
use Bekwoh\LaravelContract\Contracts\Execute;
5+
use CleaniqueCoders\LaravelContract\Contracts\Execute;
66

77
class {{ class }} implements Execute
88
{
99
public function execute()
1010
{
11-
11+
1212
}
1313
}

‎tests/Pest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
use Bekwoh\LaravelAction\Tests\TestCase;
3+
use CleaniqueCoders\LaravelAction\Tests\TestCase;
44

55
uses(TestCase::class)->in(__DIR__);

‎tests/TestCase.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace Bekwoh\LaravelAction\Tests;
3+
namespace CleaniqueCoders\LaravelAction\Tests;
44

5-
use Bekwoh\LaravelAction\LaravelActionServiceProvider;
5+
use CleaniqueCoders\LaravelAction\LaravelActionServiceProvider;
66
use Illuminate\Database\Eloquent\Factories\Factory;
77
use Orchestra\Testbench\TestCase as Orchestra;
88

@@ -13,7 +13,7 @@ protected function setUp(): void
1313
parent::setUp();
1414

1515
Factory::guessFactoryNamesUsing(
16-
fn (string $modelName) => 'Bekwoh\\LaravelAction\\Database\\Factories\\'.class_basename($modelName).'Factory'
16+
fn (string $modelName) => 'CleaniqueCoders\\LaravelAction\\Database\\Factories\\'.class_basename($modelName).'Factory'
1717
);
1818
}
1919

0 commit comments

Comments
 (0)
Please sign in to comment.