Skip to content

Commit 5669efa

Browse files
committed
fix(imports): dependencies and namespaces
1 parent 935cd89 commit 5669efa

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"require": {
2121
"php": "^7.2|^8.0",
2222
"illuminate/http": "^6.0|^7.0|^8.0",
23+
"illuminate/routing": "^6.0|^7.0|^8.0",
2324
"illuminate/support": "^6.0|^7.0|^8.0"
2425
},
2526
"autoload": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace CodeTech\Sluggable\Http\Controllers;
4+
5+
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6+
use Illuminate\Foundation\Bus\DispatchesJobs;
7+
use Illuminate\Foundation\Validation\ValidatesRequests;
8+
use Illuminate\Routing\Controller as BaseController;
9+
10+
class Controller extends BaseController
11+
{
12+
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
13+
}

src/Http/Controllers/HasSlugController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace CodeTech\Sluggable\Http\Controllers;
44

5-
use App\Http\Controllers\Controller;
65
use Illuminate\Http\JsonResponse;
76
use Illuminate\Http\Request;
87
use Illuminate\Support\Str;

src/Providers/SluggableServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace CodeTech\Sluggable\Providers;
44

5-
use Carbon\Laravel\ServiceProvider;
5+
use Illuminate\Support\ServiceProvider;
66

77
class SluggableServiceProvider extends ServiceProvider
88
{

0 commit comments

Comments
 (0)