上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 登陆处理控制器 当然登录处理控制器执行之前config/auth.php已经被添加一个guard 这样就实现了用户登录,但是现在首页还是任何人都能看到所以我们要继续努力让只有登录的人才可以看到 创建一个中间件 在里面写上验证代码 把中间件挂载上, 再在控制器中写上构造函数用上中间件 登录就大功告成。 阅读全文
posted @ 2019-07-12 09:24 F4ntasy 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Eloquent ORM 看起来是一个简单的机制,但是在底层,有很多半隐藏的函数和鲜为人知的方式来实现更多功能。在这篇文章中,我将演示几个小技巧。 1. 递增和递减 要代替以下实现: $article = Article::find($article_id); $article->read_coun 阅读全文
posted @ 2019-07-05 16:57 F4ntasy 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1.项目清除缓存php artisan config:clear php artisan config:cache 2.创建控制器 php artisan make:Controller UserController3.创建模型php artisan make:Model User4.homeste 阅读全文
posted @ 2019-05-31 11:18 F4ntasy 阅读(194) 评论(0) 推荐(0) 编辑
摘要: $carArray = simplexml_load_file("carr.xml") or die("failed"); foreach($carArray->children() as $c){ $year = $c->ModelYear; $price = $c->PricePerDay; $ 阅读全文
posted @ 2019-05-31 09:37 F4ntasy 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 所求和为第三列和第四列乘积的总和 $("tr td:nth-child(3)").each(function(i){ var abc=parseInt($(this).html().replace("$","")) //alert(abc);$("tr td:nth-child(4)").each( 阅读全文
posted @ 2019-05-31 09:33 F4ntasy 阅读(815) 评论(0) 推荐(0) 编辑
摘要: var ajax = false; window.onload = function(){ if(window.XMLHttpRequest){ ajax = new XMLHttpRequest(); } else if(window.ActiveXobject){ try { ajax = ne 阅读全文
posted @ 2019-05-31 09:30 F4ntasy 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: <?php session_start(); $header="MIME-Version: 1.0".PHP_EOL; $header.="From:Hertz-UTS@uts.edu.au".PHP_EOL; $header.="Content-Type:text/html;charset=utf 阅读全文
posted @ 2019-05-30 17:17 F4ntasy 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1.首先要去花生壳官网下载软件并安装https://hsk.oray.com/ 2.去注册账号https://console.oray.com/passport/register.html?fromurl=http%3A%2F%2Fhsk.oray.com%2F 3.打开pc版花生壳app并按操作登 阅读全文
posted @ 2019-05-27 09:30 F4ntasy 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: 以user表为例 1. 生成迁移:php artisan make:migration create_users_table 在 database/migration 中生成迁移文件,可对迁移文件进行编辑,创建自己想要的数据表 2. 运行迁移:php artisan migrate 运行生成的use 阅读全文
posted @ 2019-05-15 14:23 F4ntasy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 找到lnmp1.5/include/version.sh文件打开修改 #Freetype_Ver='freetype-2.7' 为 #Freetype_Ver='freetype-2.9'即可 阅读全文
posted @ 2019-04-20 22:30 F4ntasy 阅读(494) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页

對不起,您的瀏覽器不支持Flash


請使用支持Flash的瀏覽器訪問本頁,謝謝!