摘要: <?php namespace App\Http\Controllers; use http\Env\Request; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\Di 阅读全文
posted @ 2020-06-26 15:28 辉辉、 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1.在路由处设置参数name Route::get('/index/{name}','Controller@index'); 2.接收name参数,使用view调用显示html页面 <?php namespace App\Http\Controllers; use http\Env\Request; 阅读全文
posted @ 2020-06-26 15:11 辉辉、 阅读(391) 评论(0) 推荐(0) 编辑
摘要: Route::prefix('admin')->group(function (){ Route::get('/test1','Admin\AdminController@test1'); Route::get('/test2','Admin\AdminController@test2'); }); 阅读全文
posted @ 2020-06-26 12:37 辉辉、 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.首先定义两个路由 Route::get('/{name}','Conterller@index'); Route::get('/routes','Conterller@routes'); 2.创建中间件php artisan make:middleware checkName 创建中间件目录如下 阅读全文
posted @ 2020-06-26 12:02 辉辉、 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 4 namespace App\Http\Controllers; 5 6 7 use http\Env\Request; 8 9 class resourceController 10 { 11 public function index(){ // 12 dump("in 阅读全文
posted @ 2020-06-26 11:29 辉辉、 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.重新获取key值(在项目根目录执行):php artisan key:generate 2.查看env.文件的key,刷新成功! 阅读全文
posted @ 2020-06-25 16:01 辉辉、 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Warning: require(D:\phpstudy_pro\WWW\blog\public/../vendor/autoload.php): 1.composer dump-autoload 2.composer update 阅读全文
posted @ 2020-06-25 15:52 辉辉、 阅读(6191) 评论(0) 推荐(0) 编辑
摘要: 1.https://getcomposer.org/download/ 点击xx.exe下载,并且安装7.1.x左右的PHP版本,选择php.exe文件位置进行安装 2.使用composer -v,查看是否安装成功 3.composer config -g repo.packagist compos 阅读全文
posted @ 2020-06-25 14:34 辉辉、 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Vue项目中有些特殊情况,需要阻止页面返回上一页,虽然这个功能比较少见,但自己且碰到了,记入一下如何处理1.使用Vue中插件vue-prevent-browser-back <template> <div> 无法后退 </div> </template> <script> import preven 阅读全文
posted @ 2020-06-24 21:35 辉辉、 阅读(8299) 评论(2) 推荐(1) 编辑