Skip to content

Commit

Permalink
add: config
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-rahimi committed Sep 4, 2022
1 parent 5066740 commit 491deaf
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion config/panel.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
<?php

return [
//

/*
|--------------------------------------------------------------------------
| Panel Title
|--------------------------------------------------------------------------
*/

'title' => "پنل مدیریت",

/*
|--------------------------------------------------------------------------
| Panel Logout Route
|--------------------------------------------------------------------------
|
| This option defines the route name for logout button.
|
*/

'logoutRoute' => 'logout',

/*
|--------------------------------------------------------------------------
| Panel User Info
|--------------------------------------------------------------------------
|
| This option defines the user info for panel.
| Get user info from auth()->user() if login.
| You can use multiple params like this: 'first_name,last_name', only for name.
| if not found any param, set null
|
*/

'user' => [
'name' => 'name,lastname',
'side' => "email",
'image' => 'image',
'email' => "email",
],

/*
|--------------------------------------------------------------------------
| Panel Items
|--------------------------------------------------------------------------
|
| This option defines the items for panel.
| You can use [route name] or [url] for key.
| In params you can set name, icon, show, disabled.
| Icon is from fontawesome icon.
|
*/

'items' => [
'/' => [
'name' => 'داشبورد',
'icon' => 'fa-light fa-home-lg-alt',
'show' => true,
'disabled' => false,
],
],
];

0 comments on commit 491deaf

Please sign in to comment.