lufficc / xblog Goto Github PK
View Code? Open in Web Editor NEWA powerful and responsive blog system powered by laravel 5.5.
Home Page: https://lufficc.com/blog/how-to-install-my-blog
A powerful and responsive blog system powered by laravel 5.5.
Home Page: https://lufficc.com/blog/how-to-install-my-blog
表示不会PHP,只是看到这个博客很酷就想尝试,但是扔进空间后,访问是403,所以如何安装呢?谢谢啊
新手有点运行不起来(尴尬脸
if (!function_exists('getUrlByFileName')) {
function getUrlByFileName($fileName)
{
return 'https://static.lufficc.com/' . $fileName;
}
}
用户上传头像后不显示,查看图片地址为:
https://%2A.%2A.%2A/image/user/weiwei/avatar/1487306738503.jpeg
上传头像是默认上传到七牛吗?在配置里面怎么改成放到本地呢?
看laravel的文档,还是没怎么理解,说都可以使用。
但是xblog里面config使用了facade,cache使用了contract
Is there a way to open the blog for public registration so new users can also post articles ?
能否支持下latex数学公式
RT
在后台-图片里,上传图片报权限不足:
ErrorException in Zone.php line 150:
file_put_contents(/.qiniu_phpsdk_hostscache.json): failed to open stream: Permission denied
in Zone.php line 150
at HandleExceptions->handleError('2', 'file_put_contents(/.qiniu_phpsdk_hostscache.json): failed to open stream: Permission denied', '/Users/tes/Works/Projects/xBlog/vendor/qiniu/php-sdk/src/Qiniu/Zone.php', '150', array('path' => '/.qiniu_phpsdk_hostscache.json'))
vendor目录我给777了也不行,是不是漏了哪里?
How to upload pictures form local disk to localhost ?
建议composer update下
php -v
PHP 7.2.6 (cli) (built: May 23 2018 08:45:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
运行composer.phar install之后显示的最后一行
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
之后开始
(03:44 上午) [root@xuan blog]# cp .env.example .env
(03:45 上午) [root@xuan blog]# php artisan key:generate
PHP Warning: require(/home/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/blog/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/home/blog/bootstrap/../vendor/autoload.php' (include_path='.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php') in /home/blog/bootstrap/autoload.php on line 17
首先注册一个用户, 只有ID为1的用户是管理员。登陆之后进入后台 > 设置。
这个没懂啊,前台用户是users表,后台用户呢?
没看到后台登录的窗口
Can't get upload files and pictures to work
不管是使用composer create-project lufficc/xblog PrjName,还是clone这个版本的代码,到最后都是出现这个错误,啥情况?
> php artisan optimize
PHP Parse error: parse error in /Users/user/Works/Xblog/vendor/laravel/scout/src/Console/FlushCommand.php on line 32
[Symfony\Component\Debug\Exception\FatalErrorException]
parse error
我使用composer create-project laravel/laravel PrjName是可以正常创建项目,并运行起来。说明我的环境是正常的。
请问为什么在web.php中增加一个路由不起作用呢,访问页面出现的是404
比较增加一个Route::get('/ebooks', 'BookController@index');
在BookController的index方法中返回一个“helloworld”,始终返回的是404页面
Now all text messages in views are written in Chinese, which makes it difficult to use the application in other languages. If all of them were defined in language files, it was convenient to manage the translation of phrases. In Laravel for this purpose there are means of localization, can use them?
package.json Has expired
AuthController.php line 124
#个人解决的方案是
return redirect($this->redirect)->route('github.register');
#改成了
return redirect()->route('github.register');
您看一下是否存在这个问题?^_^
SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause (SQL: select count(*) as aggregate from `notifications` where `notifications`.`notifiable_id` = 1 and `notifications`.`notifiable_id` is not null and `notifications`.`notifiable_type` = App\User and `read_at` is null order by `created_at` desc) (View: /home/zhiephie/Source/Personal/PHP/laravel-blog-master/resources/views/layouts/header.blade.php) (View: /home/zhiephie/Source/Personal/PHP/laravel-blog-master/resources/views/layouts/header.blade.php) (View: /home/zhiephie/Source/Personal/PHP/laravel-blog-master/resources/views/layouts/header.blade.php)
刚刚学习了 dev 分支的代码,按我的理解,themes 中应该只包含 views 和 assets,为什么把 Controllers 也放进去,是考虑了不同的主题路由和 Controller 的实现也可能不同么,这样对于想要自定义主题的使用者是不是不太友好?
例如访问的是:http://viosey.dev/xblog/public
资源所在路径:http://viosey.dev/xblog/public/build/css/home.css
但是调用的是:http://viosey.dev/build/css/home.css
Call to undefined method Illuminate\Session\Store::set()
报错了 使用github登录时报错了
MethodNotAllowedHttpException in RouteCollection.php line 233:
in RouteCollection.php line 233
at RouteCollection->methodNotAllowed(array('GET', 'HEAD')) in RouteCollection.php line 220
at RouteCollection->getRouteForMethods(object(Request), array('GET', 'HEAD')) in RouteCollection.php line 158
at RouteCollection->match(object(Request)) in Router.php line 533
at Router->findRoute(object(Request)) in Router.php line 512
at Router->dispatchToRoute(object(Request)) in Router.php line 498
at Router->dispatch(object(Request)) in Kernel.php line 174
at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 30
at Pipeline->Illuminate\Routing{closure}(object(Request)) in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ValidatePostSize.php line 27
at ValidatePostSize->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53
后台个人中心修改github地址与微博地址等~~前台不能生效
请问怎么添加qq 微博 微信 登录怎么做
Generating autoload files
Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize
[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
Please enable simple changing of color for elements.
Thanks!
how to enter admin page?
比如我想加一个 routes/v1.php
github redirect 填写回调url 是否是填写 application 上填写回调url?
按照文档配置执行composer update时出现错误
Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Console\Application::starting()
Script php artisan optimize handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output:
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--
autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [
应该改为composer update --no-scripts
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.