Skip to content

Commit 0cb679b

Browse files
author
Shunmugam
committed
bug fixes
1 parent 351d2e1 commit 0cb679b

File tree

5 files changed

+28
-11
lines changed

5 files changed

+28
-11
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@
2424
<tr><td>5.5</td><td>>=2.1</td></tr>
2525
<tr><td>5.6</td><td>>=2.1</td></tr>
2626
<tr><td>5.7</td><td>>=2.1</td></tr>
27+
<tr><td>5.8</td><td>>=2.2</td></tr>
2728
</tbody>
2829
</table>
2930
<h1>Change Logs</h1>
31+
<h3>Version v2.2</h3>
32+
<ol>
33+
<li>Data table version update</li>
34+
<li>Bug fix</li>
35+
</ol>
3036
<h3>Version v2.1.1</h3>
3137
<ol>
3238
<li>CRUD Module added<br />
@@ -52,7 +58,7 @@
5258
<ol>
5359
<li>Laravel 5.4 or later</li>
5460
<li>laravelcollective/html: ~5.0</li>
55-
<li>yajra/laravel-datatables-oracle: 7.2</li>
61+
<li>yajra/laravel-datatables-oracle: ~9.0</li>
5662
<li>unisharp/laravel-filemanager: ^1.8</li>
5763
</ol>
5864

@@ -70,6 +76,7 @@
7076
'Cms' => Ramesh\Cms\Facades\Cms::class,<br>
7177
</li>
7278
<li>run php artisan vendor:publish (Publishing css,js,config files,core modules,theme,etc)</li>
79+
<li>run php artisan vendor:publish --provider="UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider" (Publishing filemanager resources)</li>
7380

7481

7582

src/stubs/cms/core/admin/Controllers/AdminAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function dologin(Request $request)
5050
return redirect()->route('backenddashboard');
5151
}
5252
else
53-
return redirect()->to($this->getRedirectUrl())
53+
return redirect()->back()
5454
->withInput($request->input())
5555
->withErrors(['Wrong Information']);
5656
}

src/stubs/module/Models/Model.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ use Illuminate\Database\Eloquent\Model;
66

77
class {class} extends Model
88
{
9-
//
9+
protected $table = "{table}";
1010
}

src/stubs/module/Providers/provider.stub

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class {class} extends ServiceProvider
2525
public function register()
2626
{
2727

28-
// $this->registerViews();
29-
//$this->registerRoot();
30-
//$this->registerAdminRoot();
31-
//$this->registerMiddleware();
32-
28+
// $this->registerViews();
29+
//$this->registerRoot();
30+
//$this->registerAdminRoot();
31+
//$this->registerMiddleware();
32+
//$this->registerApiRoutes();
3333
}
3434

3535
public function registerRoot()
@@ -39,8 +39,8 @@ class {class} extends ServiceProvider
3939
->namespace('cms\{module}\Controllers')
4040
->group(__DIR__ . '/../routes.php');
4141

42-
4342
}
43+
4444
public function registerAdminRoot()
4545
{
4646

@@ -49,7 +49,6 @@ class {class} extends ServiceProvider
4949
->namespace('cms\{module}\Controllers')
5050
->group(__DIR__ . '/../adminroutes.php');
5151

52-
5352
}
5453

5554
/**
@@ -82,4 +81,15 @@ class {class} extends ServiceProvider
8281
app('router')->aliasMiddleware('MiddleWareName', middlewarepath::class);
8382
}
8483

84+
/*
85+
* register api routes
86+
*/
87+
public function registerApiRoutes() {
88+
89+
Route::prefix('api')
90+
->middleware(['UserAuthForApi'])
91+
->namespace('cms\{module}\Controllers')
92+
->group(__DIR__ . '/../apiroutes.php');
93+
}
94+
8595
}

src/stubs/module/resources/views/admin/edit.blade.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{ Form::button('<i class="glyphicon glyphicon-refresh"></i>&nbsp;&nbsp;&nbsp;Clear', ['type' => 'reset','class' => 'mybuttn btn btn-sm btn-dafault pull-right btn-right-spacing']) }}
2222
</div>
2323

24-
<span class="section">Country Info</span>
24+
<span class="section">{module} Info</span>
2525
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
2626
<div class="item form-group">
2727
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name <span class="required">*</span>

0 commit comments

Comments
 (0)