Skip to content

Commit

Permalink
Merge pull request #2 from krl-smirnov/8.x
Browse files Browse the repository at this point in the history
8.x
  • Loading branch information
maksa988 authored May 25, 2021
2 parents 343c43d + 0679cab commit 599a6e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"require": {
"php": ">=7.3.0",
"diglactic/laravel-breadcrumbs": "5.x",
"illuminate/support": "^6.0 |^7.0",
"illuminate/support": "^8.0",
"spatie/laravel-permission": "^3.6.0",
"spatie/laravel-translation-loader": "^2.5.0"
},
"require-dev": {
"orchestra/testbench": "3.7.* | 3.8.*",
"phpunit/phpunit": "^7.0 | ^8.0"
"phpunit/phpunit": "^9.0"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion config/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* You can use own controllers to extends admin panel.
* This namespace using for Admin Routes [routes].
*/
'namespace' => 'App\Http\Controllers\Admin',
'namespace' => '',

/*
* Admin Route Middleware
Expand Down
5 changes: 3 additions & 2 deletions routes/admin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

use Illuminate\Support\Facades\Route;
use Maksa988\LaravelAdmin\Http\Controllers\DashboardController;

Route::get('/', 'DashboardController@index')->name('dashboard');
Route::get('/', [DashboardController::class, 'index'])->name('dashboard');

Route::any('/cache/clear', 'DashboardController@clearCache')->name('cache.clear');
Route::any('/cache/clear', [DashboardController::class, 'clearCache'])->name('cache.clear');

0 comments on commit 599a6e1

Please sign in to comment.