摘要:
public function show(Request $request){ $posts = DB::table('posts') ->join('cate','posts.cate_id','=','cate.c_id') ->get(); $count = count($posts);//获 阅读全文
摘要:
、、、、、、、、、、、、、、、、、、、、HTML页面<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalabl 阅读全文
摘要:
、、、、、、、、、、、、、、前端页面通过input框将新老图片传至框架 、、、、、、、、、、、、、、、、、、接受新图片删除老图片 定义和用法 unlink() 函数删除文件。 若成功,则返回 true,失败则返回 false。 语法 unlink(filename,context) 参数描述 fil 阅读全文
摘要:
<!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 阅读全文
摘要:
路由 Route::get('/list_{id}.html','newsController@listoNewone'); 页面详情 <table class="table"> <tr> <td>新闻的标题</td> <td>新闻的时间</td> <td>新闻的封面</td> </tr> @for 阅读全文
摘要:
阅读全文
摘要:
<?phpnamespace App\Http\Controllers;use App\models\caijiModel;use Illuminate\Http\Request;use QL\QueryList;use function Sodium\compare;class caijiCont 阅读全文
摘要:
、、、、、、、、、、、、、、、路由页面 //修改页面的自定义路由Route::post('unigoods/updata','uniGoodsController@updata');//数据恢复Route::get('unigoods/restore/{id}','uniGoodsControlle 阅读全文
摘要:
<?php $data = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' => 'Steve', 'last_name' 阅读全文
摘要:
、、、、、、、、、、、、、、、、框架控制器 public function list(Request $request){ $word=$request->input('word'); $arr=[]; if (!empty($word)){ $arr['word']=$word; } $data= 阅读全文