-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3c63fe
Showing
1,386 changed files
with
314,086 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_URL=http://localhost | ||
|
||
LOG_CHANNEL=stack | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=homestead | ||
DB_USERNAME=homestead | ||
DB_PASSWORD=secret | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
QUEUE_DRIVER=sync | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=smtp.mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= | ||
PUSHER_APP_CLUSTER=mt1 | ||
|
||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
/.idea | ||
/.vscode | ||
/.vagrant | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
.env | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
[33mcommit 26ac87e80168363e14840ddf1f8bceb828dabd31[m[33m ([m[1;36mHEAD -> [m[1;32mmaster[m[33m, [m[1;31morigin/master[m[33m)[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 12:49:37 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 052e2639993c1d8e5ab9990ff245239ad30f9420[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 12:46:29 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 234e4b615c92fd01569e727fd4afcd217b6f58ef[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 12:45:13 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 397ae24fd1e188071ea6dffeb45d3841aa654296[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 12:44:03 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit a461144c51afd3a13bd227b01d6c4b6ad116c000[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 12:43:04 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 7aa96e4eb906edb580847a3de9aa9f2b120ddbf1[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 11:04:04 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 35bc088d683a0da6d3bf4fb36e370e2316422559[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:53:14 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit fc90be2fde6a8d4a0fcce49705137d5915c9fb7e[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:51:05 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 1f6c7a834d4b2b23c0b379246532022d9abdd7f8[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:49:21 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit ebc5190318b02c4eb3b5326f6acd8d75cf452758[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:48:17 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 55465c856acef9c97004ff49fb61a197f1fd2ae9[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:41:20 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 00364507d410fd6710ccf0981030bf2b5e7d4a9a[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:40:18 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 41c7f9ca74b0cce861ef6b61e3849463ef3376e5[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:38:32 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 29c4fef77e2876d1dcb510953af6086a031397ae[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:36:59 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 0cd52e9eab48aeabc78563dd0cd76fc5bb65dca0[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:35:37 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 45d2b2885e297da832d56cdc425d8851fb0af094[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:34:24 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit fceb1cce90201cc84f0fe020ba4cb0b87cd8ba3f[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:32:04 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit cc19d584a6acef8da6d4f13b87e3c5ef6cd08f71[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:29:11 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit cc3f7e1db09a6e11173edfff66edbb8d29817d6f[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:28:13 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit b5ed2ae41de0242199eddc918dd83abde518e097[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:25:36 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 6d10edc989a0d60be5c9cf0798e7888c3f8a2761[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:23:29 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 8464737633ea9767abbe68dd652a116c6e6a2c5f[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:12:54 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 067656c0cafa0b8a84db7a4ec3d0f5ab4a2665ab[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:11:52 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 1fb20ea3edcdf50b49a8a037dd1c83e07e6a68c8[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:10:33 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit 0a24e261ac1a9e90f577b0cab988bfb2c602353f[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 10:06:52 2019 +0800 | ||
|
||
报表授权 | ||
|
||
[33mcommit d23fe130e0ed7c93a9a12800e7c647a128b6dd63[m | ||
Author: programmerPatient <494429797@qq.com> | ||
Date: Tue Sep 17 09:00:04 2019 +0800 | ||
|
||
first push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace App\Console; | ||
|
||
use Illuminate\Console\Scheduling\Schedule; | ||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | ||
|
||
class Kernel extends ConsoleKernel | ||
{ | ||
/** | ||
* The Artisan commands provided by your application. | ||
* | ||
* @var array | ||
*/ | ||
protected $commands = [ | ||
// | ||
]; | ||
|
||
/** | ||
* Define the application's command schedule. | ||
* | ||
* @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
* @return void | ||
*/ | ||
protected function schedule(Schedule $schedule) | ||
{ | ||
// $schedule->command('inspire') | ||
// ->hourly(); | ||
} | ||
|
||
/** | ||
* Register the commands for the application. | ||
* | ||
* @return void | ||
*/ | ||
protected function commands() | ||
{ | ||
$this->load(__DIR__.'/Commands'); | ||
|
||
require base_path('routes/console.php'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace App\Exceptions; | ||
|
||
use Exception; | ||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | ||
|
||
class Handler extends ExceptionHandler | ||
{ | ||
/** | ||
* A list of the exception types that are not reported. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontReport = [ | ||
// | ||
]; | ||
|
||
/** | ||
* A list of the inputs that are never flashed for validation exceptions. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontFlash = [ | ||
'password', | ||
'password_confirmation', | ||
]; | ||
|
||
/** | ||
* Report or log an exception. | ||
* | ||
* @param \Exception $exception | ||
* @return void | ||
*/ | ||
public function report(Exception $exception) | ||
{ | ||
parent::report($exception); | ||
} | ||
|
||
/** | ||
* Render an exception into an HTTP response. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Exception $exception | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function render($request, Exception $exception) | ||
{ | ||
return parent::render($request, $exception); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Admin; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Http\Controllers\Controller; | ||
//引入input | ||
use Input; | ||
use DB; | ||
//引入auth | ||
use App\Models\Admin\Auth; | ||
|
||
class AuthController extends Controller | ||
{ | ||
//权限列表 | ||
public function index(){ | ||
//查询数据 | ||
$data = DB::table('auth as t1')->select('t1.*','t2.auth_name as parent_name')->leftJoin('auth as t2','t1.pid','=','t2.id')->get(); | ||
return view('admin.auth.index',compact('data')); | ||
} | ||
|
||
// | ||
public function add(){ | ||
//判断请求类型 | ||
if(Input::method() == 'POST'){ | ||
//接收并处理数据 | ||
$data = Input::except('_token'); | ||
$result = Auth::insert($data); | ||
//由于框架自身不支持bool值,所以转化一种形式 | ||
return $result ? '1':'0'; | ||
}else{ | ||
//查询父级权限 | ||
$parents = Auth::where('pid' ,'=' ,'0')->get(); | ||
return view('admin.auth.add',compact('parents')); | ||
} | ||
} | ||
} |
Oops, something went wrong.