File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ This packege based on - (https://github.com/awais-vteams/laravel-crud-generator)
17
17
- ** Search Filter added**
18
18
- ** $serchable Property in Model**
19
19
- Bootstrap new Design ** col-md-6**
20
+ - New Feature ** Auto Route**
20
21
21
22
22
23
@@ -40,7 +41,13 @@ cd project-name
40
41
composer require laravel/ui
41
42
```
42
43
```
43
- php artisan bootstrap ui --auth
44
+ php artisan ui bootstrap --auth
45
+ ```
46
+ ```
47
+ npm install
48
+ ```
49
+ ```
50
+ npm run build
44
51
```
45
52
## Installation
46
53
1 - Install
@@ -60,8 +67,10 @@ php artisan make:crud banks
60
67
```
61
68
62
69
Add a route in ` web.php `
70
+
71
+ - Now auto Route Feature ** Not Needed**
63
72
```
64
- Route::resource('banks', ' BankController' );
73
+ Route::resource('banks', App\Http\Controlles\ BankController:class );
65
74
```
66
75
Route name in plural slug case.
67
76
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ protected function generateRoutes()
167
167
$ routeContent = File::get ($ routePath );
168
168
169
169
// Define the route string to check and add
170
- $ routeString = "Route::resource(' " . strtolower ($ route ) . "', ' " . $ this ->name . "Controller' ); " ;
170
+ $ routeString = "Route::resource(' " . strtolower ($ route ) . "', App\Http\Controllers \\ " . $ this ->name . "Controller::class ); " ;
171
171
172
172
// Check if the route string already exists in web.php
173
173
if (strpos ($ routeContent , $ routeString ) === false ) {
You can’t perform that action at this time.
0 commit comments