Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
programmerPatient committed Jan 29, 2021
0 parents commit b3c63fe
Show file tree
Hide file tree
Showing 1,386 changed files with 314,086 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
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
39 changes: 39 additions & 0 deletions .env.example
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}"
5 changes: 5 additions & 0 deletions .gitattributes
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
14 changes: 14 additions & 0 deletions .gitignore
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
155 changes: 155 additions & 0 deletions a
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
commit 26ac87e80168363e14840ddf1f8bceb828dabd31 (HEAD -> master, origin/master)
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 12:49:37 2019 +0800

报表授权

commit 052e2639993c1d8e5ab9990ff245239ad30f9420
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 12:46:29 2019 +0800

报表授权

commit 234e4b615c92fd01569e727fd4afcd217b6f58ef
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 12:45:13 2019 +0800

报表授权

commit 397ae24fd1e188071ea6dffeb45d3841aa654296
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 12:44:03 2019 +0800

报表授权

commit a461144c51afd3a13bd227b01d6c4b6ad116c000
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 12:43:04 2019 +0800

报表授权

commit 7aa96e4eb906edb580847a3de9aa9f2b120ddbf1
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 11:04:04 2019 +0800

报表授权

commit 35bc088d683a0da6d3bf4fb36e370e2316422559
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:53:14 2019 +0800

报表授权

commit fc90be2fde6a8d4a0fcce49705137d5915c9fb7e
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:51:05 2019 +0800

报表授权

commit 1f6c7a834d4b2b23c0b379246532022d9abdd7f8
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:49:21 2019 +0800

报表授权

commit ebc5190318b02c4eb3b5326f6acd8d75cf452758
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:48:17 2019 +0800

报表授权

commit 55465c856acef9c97004ff49fb61a197f1fd2ae9
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:41:20 2019 +0800

报表授权

commit 00364507d410fd6710ccf0981030bf2b5e7d4a9a
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:40:18 2019 +0800

报表授权

commit 41c7f9ca74b0cce861ef6b61e3849463ef3376e5
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:38:32 2019 +0800

报表授权

commit 29c4fef77e2876d1dcb510953af6086a031397ae
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:36:59 2019 +0800

报表授权

commit 0cd52e9eab48aeabc78563dd0cd76fc5bb65dca0
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:35:37 2019 +0800

报表授权

commit 45d2b2885e297da832d56cdc425d8851fb0af094
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:34:24 2019 +0800

报表授权

commit fceb1cce90201cc84f0fe020ba4cb0b87cd8ba3f
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:32:04 2019 +0800

报表授权

commit cc19d584a6acef8da6d4f13b87e3c5ef6cd08f71
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:29:11 2019 +0800

报表授权

commit cc3f7e1db09a6e11173edfff66edbb8d29817d6f
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:28:13 2019 +0800

报表授权

commit b5ed2ae41de0242199eddc918dd83abde518e097
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:25:36 2019 +0800

报表授权

commit 6d10edc989a0d60be5c9cf0798e7888c3f8a2761
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:23:29 2019 +0800

报表授权

commit 8464737633ea9767abbe68dd652a116c6e6a2c5f
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:12:54 2019 +0800

报表授权

commit 067656c0cafa0b8a84db7a4ec3d0f5ab4a2665ab
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:11:52 2019 +0800

报表授权

commit 1fb20ea3edcdf50b49a8a037dd1c83e07e6a68c8
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:10:33 2019 +0800

报表授权

commit 0a24e261ac1a9e90f577b0cab988bfb2c602353f
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 10:06:52 2019 +0800

报表授权

commit d23fe130e0ed7c93a9a12800e7c647a128b6dd63
Author: programmerPatient <494429797@qq.com>
Date: Tue Sep 17 09:00:04 2019 +0800

first push
42 changes: 42 additions & 0 deletions app/Console/Kernel.php
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');
}
}
51 changes: 51 additions & 0 deletions app/Exceptions/Handler.php
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);
}
}
37 changes: 37 additions & 0 deletions app/Http/Controllers/Admin/AuthController.php
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'));
}
}
}
Loading

0 comments on commit b3c63fe

Please sign in to comment.