moell-peng / moell-blog Goto Github PK
View Code? Open in Web Editor NEW基于 Laravel 开发,支持 Markdown 语法的博客
Home Page: http://moell.cn
基于 Laravel 开发,支持 Markdown 语法的博客
Home Page: http://moell.cn
Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysql.column_stats' doesn't exist (SQL: ALTER TABLE systems CHANGE value value TEXT NOT NULL COLLATE utf8mb4_unicode_ci)
Whoops, looks like something went wrong.
1/1 FatalErrorException in AliasLoader.php line 63: Maximum function nesting level of '100' reached, aborting!
in C:\xampp\htdocs\moell-blog-master\vendor\laravel\framework\src\Illuminate\Foundation\AliasLoader.php line 63
如题
执行 php artisan migrate,解决设置
在app/Providers/AppServiceProvider.php中修改
use Illuminate\Support\Facades\Schema;
public function boot()
{
//
Schema::defaultStringLength(191);
}
然后再执行 php artisan migrate
1、标签跳转有bug
blog详情页面,根据标签进行跳转的时候回报错,只需要在app/Http/Controllers/TagController.php 中添加
use App\Models\Tag;
2、多说评论short_name 不存在时错误
需要添加字段是否存在的判断就好了。resources/views/backend/system/index.blade.php
<div class='col-md-6'> <input type="text" value="{{ $system['duoshuo_short_name'])? $system['duoshuo_short_name'] : '' }}" class='form-control' name="duoshuo_short_name" id="duoshuo_short_name" placeholder="请输入多说评论short_name"> </div>
修改为
<div class='col-md-6'> <input type="text" value="{{ isset($system['duoshuo_short_name']) ? $system['duoshuo_short_name'] : '' }}" class='form-control' name="duoshuo_short_name" id="duoshuo_short_name" placeholder="请输入多说评论short_name"> </div>
最后感谢作者的分享,接下来我也会在此基础上不断扩展新功能。附上自己的blog
https://blog.yuhai.xin/
想在每篇文章增加一张头图,不知道怎么弄
我看你的博客安装教程是是服务器安装的,虚拟空间就不行吗?
老哥能更新一下composer.json吗?换了好几个源,每次都是卡在 reading......provider-webmozart from cache 上,在服务器上装会搞的服务器卡死,在本地安装的时候同样会卡在这一步,但是提示更详细些,,查了一下是项目依赖包与框架包不匹配.所以我猜测是composer.json的问题?
Resolving dependencies through SAT
Looking at all rules.
Something's changed, looking at all rules again (pass #155)
评论插件加载不出来是怎么回事
看到这个问题,https://learnku.com/laravel/t/27700
我也遇到了,研究了半天,发现是生成私钥的问题,换成这个就可以了。
openssl genrsa -out server.key 2048
openssl req -new -x509 -sha256 -key server.key -out server.pem -days 3650
那个帖子需要注册,我不想注册,随便在这给你留个言。
$article = Article::findOrFail($id);
$article->read_count = $article->read_count + 1;
$article->save();
->
$article = Article::findOrFail($id);
$article->update(['read_count' => \DB::raw('read_count') + 1] );
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.