Skip to content

Commit

Permalink
publish navbar, logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Feb 20, 2019
1 parent 7b0e25f commit 892fbce
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/app/Http/Controllers/DatatableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public function i18n()
"sSortDescending" => trans(': Activar para ordenar la columna de manera descendente')
],
"sweetAlert" => [
"title" => trans("Are you sureeeeee?"),
"text" => trans("Once deleted, you will not be able to recover this imaginary file!"),
"success" => trans("Poof! Borrado!"),
"title" => trans('mage.sweet.title'),
"text" => trans('mage.sweet.description'),
"success" => trans('mage.sweet.success'),
"buttons" => [
trans("cancela"),
trans("borra")
trans('mage.sweet.cancel'),
trans('mage.sweet.confirm')
],
"close" => trans('cerrar')
"close" => trans('mage.sweet.close')
]
]);
}
Expand Down
1 change: 1 addition & 0 deletions src/app/Providers/PublishServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private function views()
__DIR__.'/../../resources/views/components/sidebar/sections/extends' => resource_path('views/vendor/mage/components/sidebar/sections/extends'),
__DIR__.'/../../resources/views/components/sidebar/logo.blade.php' => resource_path('views/vendor/mage/components/sidebar/logo.blade.php'),
__DIR__.'/../../resources/views/components/favicon.blade.php' => resource_path('views/vendor/mage/components/favicon.blade.php'),
__DIR__.'/../../resources/views/components/navbar/layout.blade.php' => resource_path('views/vendor/mage/components/navbar/layout.blade.php'),
__DIR__.'/../../resources/views/pages/auth' => resource_path('views/vendor/mage/pages/auth'),
], 'mage-publish');
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/components/navbar/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{--<span class="dropdown-header"></span>--}}
{{--<a href="#" class="dropdown-item">@lang('mage.auth.user.password')</a>--}}
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item dropdown-footer">@lang('mage.auth.user.logout')</a>
<a href="{{route('mage.auth.logout')}}" class="dropdown-item dropdown-footer">@lang('mage.auth.user.logout')</a>
</div>
</li>
</ul>
Expand Down
4 changes: 4 additions & 0 deletions src/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@


Route::group(['middleware' => ['mageRedirectIfNotAuthenticated']], function () {

Route::get('logout', 'Omatech\Mage\App\Http\Controllers\Auth\LoginController@logout')
->name('mage.auth.logout');

Route::get('/', function () {
return view('mage::pages.dashboard');
})->name('mage.dashboard');
Expand Down

0 comments on commit 892fbce

Please sign in to comment.