大飞_dafei

导航

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页

2020年10月14日 #

laravel view 层

摘要: laravel view层引入静态资源: <script src="{{ URL::asset('/pu_css_js/jquery-1.8.2.min.js') }}"></script> <script src="{{ asset('/pu_css_js/jquery-1.8.2.min.js' 阅读全文

posted @ 2020-10-14 09:19 大飞_dafei 阅读(120) 评论(0) 推荐(0)

laravel 路由篇

摘要: Route::get('foo/bar', 'FooController@bar'); Route::resource('foo', 'FooController'); //在resource中添加其他方法 原文地址: 将新方法添加到Laravel中的资源控制器 阅读全文

posted @ 2020-10-14 09:18 大飞_dafei 阅读(65) 评论(0) 推荐(0)

laravel Console 层---命令使用 && php artisan

摘要: 1). commands 文件使用 创建文件 php artisan make:command test 命令名字 protected $signature = 'command:name'; 执行 php artisan command:name 在一个commands 文件中执行对应的方法 pr 阅读全文

posted @ 2020-10-14 09:17 大飞_dafei 阅读(444) 评论(0) 推荐(0)

laravel controller 层---数据库操作

摘要: 001) 特别篇 $user = Student::pluck('name'); // Student::query()->pluck('name'); // idea 有提示 002) 使用union 后 使用 fromSub(aaa,bbb) 可以使用union后的结构 1) 查询 集合--处理 阅读全文

posted @ 2020-10-14 09:14 大飞_dafei 阅读(291) 评论(0) 推荐(0)

laravel controller 层---请求参数传递

摘要: $data = Input::get(); // 接受所有参数 $input = $request->all();// 接受所有参数 $only=$request->only('name','kecheng');//接受指定参数 2).自定义消息 message $messages = [ 'nam 阅读全文

posted @ 2020-10-14 09:13 大飞_dafei 阅读(295) 评论(0) 推荐(0)

laravel controller 层---数据验证

摘要: $validatedData = Validator::make($request->all(),[ //数据验证规则 'name' => 'required|integer', 'score' => 'required|integer', ]); // $validatedData->valida 阅读全文

posted @ 2020-10-14 09:12 大飞_dafei 阅读(228) 评论(0) 推荐(0)

laravel model 层

摘要: model层中 created_at ,updated_at $timestamp=false; 官方地址 其他参考地址 2) model 层中指定场景使用rule; rules 3) model 层中添加额外字段 $appends : 场景再现, 数据库中有 id,name;但是没有性别, 使用模 阅读全文

posted @ 2020-10-14 09:08 大飞_dafei 阅读(279) 评论(0) 推荐(0)

laravel 博客收藏,转载篇

摘要: laravel接收get传值和接收post传值 20 个 Laravel Eloquent 必备的实用技巧 表单验证 Laravel设置软删除及其恢复系列操作 Laravel 模型使用软删除-左连接查询-表起别名 setTable('别名') 2) 软删除[whereNull ] : DB::tab 阅读全文

posted @ 2020-10-14 09:07 大飞_dafei 阅读(137) 评论(0) 推荐(0)

laravel 用法大全开始

摘要: laravel 官网 laravel 学院 laravel-china 中文官网 composer 安装laravel并换镜像 https://packagist.laravel-china.org 为什么我不太想用 Laravel ? 主要看 Eloquent# 介绍 通过 Model 查询数据时 阅读全文

posted @ 2020-10-14 09:05 大飞_dafei 阅读(108) 评论(0) 推荐(0)

2020年9月28日 #

ant-design-vue 之简单表格自定义表头和内容

摘要: ant-design-vue 之简单表格自定义表头和内容 使用到的API slots: { title: 'customnName' } 和 scopedSlots: { customRender: 'customAge' } <template> <div> <a-table bordered : 阅读全文

posted @ 2020-09-28 16:21 大飞_dafei 阅读(17980) 评论(0) 推荐(1)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 49 下一页