├── public ├── favicon.ico ├── robots.txt ├── lirenchou.m4a ├── uploads │ └── vYnVFEmD1Sl846PJ3fN9NyjbvC620pN6NVd2VJ9Z.jpeg ├── .htaccess ├── web.config ├── index.php └── request.log ├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── migrations │ ├── 2018_08_28_071834_create_table_bankui.php │ ├── 2018_08_28_061919_create_table_tiezi.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ └── 2014_10_12_000000_create_users_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore ├── debugbar │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── layouts │ │ ├── footer.blade.php │ │ ├── header.blade.php │ │ ├── home.blade.php │ │ └── app.blade.php │ ├── page2.blade.php │ ├── add.blade.php │ ├── tiezi │ │ ├── create.blade.php │ │ ├── form.blade.php │ │ └── edit.blade.php │ ├── page1.blade.php │ ├── user │ │ └── add.blade.php │ ├── errors │ │ └── 404.blade.php │ ├── control.blade.php │ ├── view.blade.php │ ├── admin.blade.php │ ├── home.blade.php │ ├── user.blade.php │ ├── auth │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ ├── login.blade.php │ │ └── register.blade.php │ └── welcome.blade.php ├── assets │ ├── sass │ │ ├── app.scss │ │ └── _variables.scss │ └── js │ │ ├── components │ │ └── ExampleComponent.vue │ │ ├── app.js │ │ └── bootstrap.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ ├── passwords.php │ └── validation.php ├── app ├── Common │ └── helper.php ├── Http │ ├── Controllers │ │ ├── ABCController.php │ │ ├── Controller.php │ │ ├── UserController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ ├── DBController.php │ │ ├── AController.php │ │ ├── TieziController.php │ │ └── HomeController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── ChangjunMiddleware.php │ │ ├── LoginMiddleware.php │ │ ├── RecordMiddleware.php │ │ ├── RedirectIfAuthenticated.php │ │ └── TrustProxies.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Console │ └── Kernel.php └── Exceptions │ └── Handler.php ├── .gitattributes ├── .gitignore ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── .env.example ├── config ├── view.php ├── services.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── cache.php ├── auth.php ├── database.php ├── mail.php ├── session.php └── app.php ├── phpunit.xml ├── package.json ├── composer.json ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/lirenchou.m4a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaohigh/lamp/HEAD/public/lirenchou.m4a -------------------------------------------------------------------------------- /resources/views/layouts/footer.blade.php: -------------------------------------------------------------------------------- 1 |
{{date('Y-m-d')}}
13 |{{$content}}
14 |{!!$pages!!}
15 | 16 | @include('layouts/footer') 17 | 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |我是响应体
')->withCookie('class','lamp207',10); 37 | //读取 38 | // GET / HTTP/1.1 39 | // Host: localhost 40 | // Cookie: name=haiyan;phone=chuizi 41 | // .... 42 | // $name = \Cookie::get('name'); 43 | 44 | // dd($name); 45 | 46 | } 47 | 48 | /** 49 | * 写入闪存 50 | */ 51 | public function flash() 52 | { 53 | // \Session::flash('info','恭喜您,添加成功'); 54 | return redirect('/get-flash')->with('info','添加成功'); 55 | } 56 | 57 | /** 58 | * 读取闪存 59 | */ 60 | public function getFlash() 61 | { 62 | return view('admin'); 63 | } 64 | 65 | /** 66 | * 67 | */ 68 | public function user() 69 | { 70 | return view('user'); 71 | } 72 | 73 | public function insert() 74 | { 75 | //表单验证 检测用户 密码 76 | if(empty($_POST['username']) || strlen($_POST['username']) < 6 || strlen($_POST['username']) > 20) { 77 | \Session::flash('error','用户名格式不正确'); 78 | return back()->withInput(); 79 | } 80 | 81 | } 82 | 83 | /** 84 | * 响应 85 | */ 86 | public function response() 87 | { 88 | // 普通字符串 89 | // return 'i love you??'; 90 | // return '这就是爱'; 91 | 92 | //返回json 93 | // return response()->json(['name'=>'xiaohigh','age'=>32]); 94 | 95 | //返回 模板 96 | return view('view'); 97 | 98 | //下载 99 | // return response()->download('./lirenchou.m4a'); 100 | } 101 | /** 102 | * 视图 103 | */ 104 | public function views() 105 | { 106 | return view('user.add', [ 107 | 'title' => '第一次接触视图', 108 | 'content'=>'山东发大水了 香菜涨到了39元一斤', 109 | 'pages' => '12' 110 | ]); 111 | } 112 | /** 113 | * 创建页面1 114 | */ 115 | public function page1() 116 | { 117 | return view('page1'); 118 | } 119 | 120 | /** 121 | * 页面2 122 | */ 123 | public function page2() 124 | { 125 | return view('page2'); 126 | } 127 | 128 | /** 129 | * 控制 130 | */ 131 | public function control() 132 | { 133 | return view('control', [ 134 | 'isVip' => false, 135 | 'classmates' => [ 136 | '贾旭', 137 | '林彬', 138 | '杨洋' 139 | ] 140 | ]); 141 | } 142 | } 143 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |