摘要: public function show(Request $request){ $posts = DB::table('posts') ->join('cate','posts.cate_id','=','cate.c_id') ->get(); $count = count($posts);//获 阅读全文
posted @ 2021-08-05 10:00 王越666 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、、、、、、、HTML页面<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalabl 阅读全文
posted @ 2021-08-04 21:55 王越666 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、前端页面通过input框将新老图片传至框架 、、、、、、、、、、、、、、、、、、接受新图片删除老图片 定义和用法 unlink() 函数删除文件。 若成功,则返回 true,失败则返回 false。 语法 unlink(filename,context) 参数描述 fil 阅读全文
posted @ 2021-08-04 15:18 王越666 阅读(128) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, m 阅读全文
posted @ 2021-08-04 11:36 王越666 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 路由 Route::get('/list_{id}.html','newsController@listoNewone'); 页面详情 <table class="table"> <tr> <td>新闻的标题</td> <td>新闻的时间</td> <td>新闻的封面</td> </tr> @for 阅读全文
posted @ 2021-08-04 10:48 王越666 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-04 10:42 王越666 阅读(62) 评论(0) 推荐(0) 编辑
摘要: <?phpnamespace App\Http\Controllers;use App\models\caijiModel;use Illuminate\Http\Request;use QL\QueryList;use function Sodium\compare;class caijiCont 阅读全文
posted @ 2021-08-04 09:47 王越666 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、、路由页面 //修改页面的自定义路由Route::post('unigoods/updata','uniGoodsController@updata');//数据恢复Route::get('unigoods/restore/{id}','uniGoodsControlle 阅读全文
posted @ 2021-08-01 21:04 王越666 阅读(129) 评论(0) 推荐(0) 编辑
摘要: <?php $data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' 阅读全文
posted @ 2021-08-01 20:00 王越666 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 、、、、、、、、、、、、、、、、框架控制器 public function list(Request $request){ $word=$request->input('word'); $arr=[]; if (!empty($word)){ $arr['word']=$word; } $data= 阅读全文
posted @ 2021-08-01 08:01 王越666 阅读(35) 评论(0) 推荐(0) 编辑