Skip to content

Commit

Permalink
fix: src Path updated to have central base namespace (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutkneupane authored Jan 29, 2024
1 parent 598726e commit ee9cedb
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 16 deletions.
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
"src/helpers.php"
],
"psr-4": {
"AchyutN\\Traits\\": "src/Traits/",
"AchyutN\\Rules\\": "src/Rules/",
"AchyutN\\Scope\\": "src/Scope/",
"AchyutN\\Pagination\\": "src/Pagination/",
"AchyutN\\Controller\\": "src/Controller/"
"AchyutN\\LaravelHelpers\\": "src/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ApiBaseController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Controller;
namespace AchyutN\LaravelHelpers\Controller;

use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\Log;
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelHelperProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AchyutN\LaravelHelpers;

use AchyutN\Pagination\CustomPaginator;
use AchyutN\LaravelHelpers\Pagination\CustomPaginator;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\ServiceProvider;

Expand Down
2 changes: 1 addition & 1 deletion src/Pagination/CustomPaginator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Pagination;
namespace AchyutN\LaravelHelpers\Pagination;

use Illuminate\Pagination\LengthAwarePaginator;

Expand Down
2 changes: 1 addition & 1 deletion src/Rules/LatitudeRule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Rules;
namespace AchyutN\LaravelHelpers\Rules;

use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/LongitudeRule.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Rules;
namespace AchyutN\LaravelHelpers\Rules;

use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
Expand Down
2 changes: 1 addition & 1 deletion src/Scope/InactiveScope.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Scope;
namespace AchyutN\LaravelHelpers\Scope;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/CanBeInactive.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace AchyutN\Traits;
namespace AchyutN\LaravelHelpers\Traits;

use AchyutN\Scope\InactiveScope;
use AchyutN\LaravelHelpers\Scope\InactiveScope;

trait CanBeInactive
{
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasTheDashboardTraits.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Traits;
namespace AchyutN\LaravelHelpers\Traits;

use Dipesh79\LaravelUserLogs\Traits\HasLog;

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasTheMedia.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Traits;
namespace AchyutN\LaravelHelpers\Traits;

use Spatie\MediaLibrary\InteractsWithMedia;
use Spatie\MediaLibrary\MediaCollections\Models\Media;
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasTheSlug.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace AchyutN\Traits;
namespace AchyutN\LaravelHelpers\Traits;

use Cviebrock\EloquentSluggable\Sluggable;

Expand Down

0 comments on commit ee9cedb

Please sign in to comment.