自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 laravel框架RBAC

一个用户对应一个角色,一个角色对应多个权限,一个用户对应用户组,一个用户组对应多个权限分配权限用户和角色之间是关系: 属于关系 beLongsToUser.php模型model<?phpnamespace App\Models;use Illuminate\Database\Eloquent\Model;//继承可以使用 auth登录的模型类use Illuminate\Foundation\Auth\User as AuthUser;//软删除类use Illumin

2020-11-03 09:29:43 1150

原创 laraverl框架房源管理

路由//列表展示Route::get('/fangattr/index','User\FangAttrController@index')->name('user.fangattr.index');// 文件上传Route::post('fangattr/upfile','User\FangAttrController@upfile')->name('user.fangattr.upfile');//文章添加页面Route::get('/fangattr/create','User\

2020-10-29 20:57:53 294

原创 laravel 增删改查

角色路由/*角色列表*/Route::get('/role/index','User\RoleController@index')->name('user.role.index');//分配权限Route::get('role/node{role}','User\RoleController@node')->name('user.role.node');Route::post('role/node{role}','User\RoleController@nodeSever')-&gt

2020-10-25 20:55:43 251

原创 积分系统

用户注册 登录 验证器验证// month/User/index <?phpnamespace app\month\controller;use think\Controller;use think\Request;use think\Validate;class User extends Controller{ protected $user; protected $month; public function __construct(\a

2020-10-02 14:27:38 919 1

原创 tp5使用oss存储图片

tp5使用oss存储图片下面接下来就是代码实现了1.申请Access Key ID和Access Key Secret,以及创建好你的Bucket2.通过composer安装oss插件通过cmd,到项目的目录下,输入下面的指令。//通过cmd,到项目的目录下,输入下面的指令。composer require aliyuncs/oss-sdk-php3.配置好oss信息,在config.php中// 在config/app.php'aliyun_oss' => [ 'a

2020-09-27 23:41:36 312

原创 thinkphp

控制器// Index\controller\Index<?phpnamespace app\index\controller;use app\index\model\Comment;use app\index\model\Content;use app\index\model\User;use think\App;use think\Controller;use think\facade\Session;use think\Request;class Index exte

2020-09-21 00:03:51 87

原创 thinkphp添加实战

<?php控制器:admin\controller\Hellonamespace app\admin\controller;use app\admin\model\Good;use think\Controller;use think\Request;use think\Validate;class Hello extends Controller{ protected $goods; protected $request; protected $ru

2020-09-13 20:47:26 97

原创 laravel_admin团购实现

laravel_admin团购实现首先要先创建数据表,例如:CREATE TABLE `group` ( `id` int(10) NOT NULL AUTO_INCREMENT, `group_title` varchar(30) DEFAULT NULL COMMENT '标题', `goods_id` int(10) DEFAULT NULL COMMENT '关联商品id', `group_num` int(20) DEFAULT NULL COMMENT '拼团人数', `

2020-09-03 23:34:28 362

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除