Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-12-27 18:25:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9ba9356b92df89c80dca866b457164d5ff118584
9ba9356b
1 parent
0f0180c1
1.后台可以查看用户上传的作品
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
app/Admin/Controllers/RecommendController.php
app/Admin/routes.php
config/admin.php
app/Admin/Controllers/RecommendController.php
0 → 100644
View file @
9ba9356
<?php
namespace
App\Admin\Controllers
;
use
App\Admin\Metrics\Examples
;
use
App\Http\Controllers\Controller
;
use
Dcat\Admin\Http\Controllers\Dashboard
;
use
Dcat\Admin\Layout\Column
;
use
Dcat\Admin\Layout\Content
;
use
Dcat\Admin\Layout\Row
;
class
RecommendController
extends
Controller
{
public
function
index
(
Content
$content
)
{
return
$content
->
header
(
'推荐'
)
->
description
(
'Recommend...'
)
->
body
(
function
(
Row
$row
)
{
return
"暂时不知道做什么。。。"
;
});
}
}
app/Admin/routes.php
View file @
9ba9356
...
...
@@ -44,7 +44,7 @@ Route::group([
$router
->
resource
(
'/every-poem'
,
'EverydayPoemController'
);
/** 推荐*/
// $router->resource('/tool/recommend','
');
$router
->
resource
(
'/recommend'
,
'RecommendController
'
);
/** 推送服务*/
$router
->
resource
(
'/push'
,
'PushController'
);
...
...
config/admin.php
View file @
9ba9356
...
...
@@ -200,7 +200,7 @@ return [
|--------------------------------------------------------------------------
*/
'helpers'
=>
[
'enable'
=>
true
,
'enable'
=>
env
(
'ADMIN_DEV_TOOLS'
,
false
)
,
],
/*
...
...
Please
register
or
login
to post a comment