Git Product home page Git Product logo

lufficc / xblog Goto Github PK

View Code? Open in Web Editor NEW
916.0 916.0 200.0 8.53 MB

A powerful and responsive blog system powered by laravel 5.5.

Home Page: https://lufficc.com/blog/how-to-install-my-blog

PHP 58.14% JavaScript 7.59% HTML 34.27%
electron electron-v3 roblox roblox-cheats roblox-cheats-download roblox-executor roblox-executor-cracked roblox-executor-free roblox-executors roblox-hack roblox-scripts roblox-scripts-cracked synapse-x-crack synapse-x-cracked synapse-x-cracked-2023 synapse-x-cracked-download synapse-x-cracked-free synapse-x-download synapse-x-free synapse-x-free-download

xblog's People

Contributors

jessynt avatar lucasloo avatar lufficc avatar ogmike avatar radarhere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xblog's Issues

用户上传头像不显示

用户上传头像后不显示,查看图片地址为:
https://%2A.%2A.%2A/image/user/weiwei/avatar/1487306738503.jpeg

cache为什么使用contract而不是facade?

看laravel的文档,还是没怎么理解,说都可以使用。
但是xblog里面config使用了facade,cache使用了contract

  1. 为什么没有统一?
  2. 是不是有什么最佳实践呀?

Open public registration

Is there a way to open the blog for public registration so new users can also post articles ?

latex

能否支持下latex数学公式

图片上传报权限不足

在后台-图片里,上传图片报权限不足:

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了也不行,是不是漏了哪里?

autoload.php on line 17找不到文件

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表,后台用户呢?
没看到后台登录的窗口

不管是新安装还是从这里clone,都是出错的

不管是使用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是可以正常创建项目,并运行起来。说明我的环境是正常的。

error when run the project

The Mix manifest does not exist. (View: C:\laragon\www\bloggy\resources\views\layouts\home.blade.php) (View: C:\laragon\www\bloggy\resources\views\layouts\home
image

Create localization to translate for other languages

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?

使用github新用户登陆返回错误

  • Method [route] does not exists on Redirect
AuthController.php   line 124
#个人解决的方案是
 return redirect($this->redirect)->route('github.register');
#改成了
 return redirect()->route('github.register');

您看一下是否存在这个问题?^_^

What Wrong

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)

Themes 文件夹为什么要放 Controllers?

刚刚学习了 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

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

image and file upload failure

hey am daniel
thimbs up for the xblog
am outside china so i cant manage to signup for quiniu so am unable to use the qiniu tried setting up local storage but its not working
xblof
thats the error and i dont have credit/debit card to complete s3 signup please help.

图片上传错误

image

七牛云设置正确了,上传图片的时候出现错误,请问这是什么原因?

Errors

Generating autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize

[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)

admin

how to enter admin page?

关于composer update出现的错误

按照文档配置执行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

页面加载资源路径错误

elixir函数,默认加载目录是build, 但是elixir配合gulp生成的资源路径目录是public
所有的页面都加载的是:

<link href="/build/css/app-e41eea74a5.css" rel="stylesheet">
<script src="/build/js/app-1d1f1b0983.js"></script>

2016-10-10_11-45-44

2016-10-10_11-46-48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.