Giter VIP home page Giter VIP logo

webstack-laravel's Introduction

WebStack-Laravel

一个开源的网址导航网站项目,具备完整的前后台,您可以拿来制作自己的网址导航。

首页

部署

克隆代码:

git clone https://github.com/hui-ho/WebStack-Laravel.git

安装依赖:

$ composer install

编辑配置:

$ cp .env.example .env
...
DB_DATABASE=database
DB_USERNAME=username
DB_PASSWORD=password
...

生成 KEY:

$ php artisan key:generate  

迁移数据:

php artisan migrate:refresh --seed

本地测试:

$ php artisan serve

安装完成:http://127.0.0.1:8000

有些朋友对部署表示有压力,但这和一般的 Laravel 应用是没有区别的,线上环境可以参考:https://github.com/summerblue/laravel-ubuntu-init

使用

后台地址:http://domain/admin

默认用户:admin

默认密码:admin

主页

分类

网站

其他

本应用预设了一些站点数据,可以使用以下命令清除:

$ php artisan webstack:clean

感谢

前端设计:WebStackPage

后台框架:laravel-admin

License

MIT

webstack-laravel's People

Contributors

dependabot[bot] avatar hanxi avatar msojocs 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  avatar  avatar

webstack-laravel's Issues

v1.2.2中的linecons.css等文件未导入

部署后首页有class=linecons-tag,但在app.css中未查询到,对比了之前的版本,发现应该是linecons.css内容未加载进去。后来手动引入后显示正常。。。
111

部署后,只能在本机通过http://127.0.0.1:8000访问,局域网的其他机器访问不了,这个怎么解决

部署后,只能在本机通过http://127.0.0.1:8000访问,局域网的其他机器访问不了,这个怎么解决

Centos 7 部署的,防火墙已关闭。本机通过:curl http://127.0.0.1:8000 访问没问题

通过当前服务器IP curl http://10.10.10.99:8000 获取局域网其他机器浏览器输入http://10.10.10.99:8000就访问不了,这个是什么问题呢?

Admin页面的验证码问题

报错,图片不显示
URL:http://localhost:8000/admin/auth/login

validation.captcha

这个是否存在开关,方便说明一下么

Package phpunit/phpunit-mock-objects is abandoned

Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In Connection.php line 664:

  SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'f
  orge' (SQL: select * from information_schema.tables where table_schema = fo
  rge and table_name = admin_config)


In PDOConnection.php line 31:

  SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'f
  orge'


In PDOConnection.php line 27:

  SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'f
  orge'


Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

PHP7.1/7.2都卡在这一步,似乎是phpunit不支持PHP7.1/7.2?求教

我按照上面安装教程在提示报错WebStack-Laravel/public/index.php on line 24,求教

Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/public/:/tmp/:/proc/) in /www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/public/index.php on line 24

Warning: require(/www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/public/index.php on line 24

Fatal error: require(): Failed opening required '/www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/public/../vendor/autoload.php' (include_path='.:/www/server/php/70/lib/php') in /www/wwwroot/nav.78zhuiju.com/WebStack-Laravel/public/index.php on line 24

sidebar子分类排序

后台调整分类及子分类顺序,sidebar分类显示正常,子分类不随调整变化,之前更新的分类排序对sidebar无效?

建议站点添加倒序排列

为方便管理网址,建议加入站点批量移动到其他分类操作,站点管理倒序更方便,或者某分类网址下加入置顶等

账号错误页

当账号密码输入错误后应当有专门的错误提示页,现在进入的页面有信息泄露
image

执行php artisan migrate:refresh --seed时报错

如图所示:报PHP Fatal error: Class 'PDO' not found in /root/workspace/webstack/WebStack-Laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 1236

请问是哪个步骤操作不对吗?

一个数据迁移问题

问题

/opt/navi # php artisan key:generate
Application key [base64:BoW/kKaZJNVPuyLO9CjTExztgqHNplDmHM5/xpX5Cac=] set successfully.
/opt/navi # php artisan migrate:refresh --seed
Rolling back: 2019_01_21_144821_create_sites_table
Rolled back:  2019_01_21_144821_create_sites_table
Rolling back: 2019_01_21_120954_create_categories_table
Rolled back:  2019_01_21_120954_create_categories_table
Rolling back: 2017_07_17_040159_create_config_table
Rolled back:  2017_07_17_040159_create_config_table
Rolling back: 2016_01_04_173148_create_admin_tables
Rolled back:  2016_01_04_173148_create_admin_tables

In Connection.php line 664:

  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t
  oo long; max key length is 767 bytes (SQL: alter table `admin_config` add u
  nique `admin_config_name_unique`(`name`))


In PDOStatement.php line 119:

  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t
  oo long; max key length is 767 bytes


In PDOStatement.php line 117:

  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t
  oo long; max key length is 767 bytes

解决

./app/Providers/AppServiceProvider.phppublic function boot()中添加Schema::defaultStringLength(191);,如下:

    public function boot()
    {
        Site::observe(SiteObserver::class);

        $table = config('admin.extensions.config.table', 'admin_config');
        if (Schema::hasTable($table)) {
            Config::load();
        }

        Schema::defaultStringLength(191);
    }

参考

Laravel 5.4 常见错误:Specified key was too long

关于首页问题

每次请求首页都会查询数据库,希望增加缓存机制。

ps:CDN部署,利用工具多地测试网页速度导致服务器数据IO爆表🤢,2核4G的小主机。

页面素材改为懒加载

目前打开首页默认是加载所有的素材和图片,首屏之外的图片能否改成滑到之后再加载?

服务监听地址

尴尬,服务是跑起来了,但是监听的是127.0.0.1:8000,即使这样,那我用nginx在前面转发一次也可以,但是你所有静态资源全部都是调用的127.0.0.1:8000,这如何搞。。。配置文件如何定义呢

后台无法上传ICO图标

在后台“网站管理”,上传图片处,没法上传ico文件..不知在哪儿可以进行修改 #
QQ截图20190414202638

是否对Mysql版本有要求

执行以下步骤时报错
Gourds$ php artisan migrate:refresh --seed

In Connection.php line 664:

  SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = navi and tab
  le_name = migrations)


In PDOConnection.php line 31:

  SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client


In PDOConnection.php line 27:

  SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client


In PDOConnection.php line 27:

  PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]

我使用的Mysql版本为:

Version:mysql  Ver 8.0.15 for Linux on x86_64 (MySQL Community Server - GPL)

希望提供部署到centos服务的方案?

centos7,lnmp。nodejs ,
1、把public文件夹复制到nginx根目录,显示404,找不到文件?
2、把整个zip解压防盗windows xampp根目录,显示有问题,页面显示都是代码?
3、关键是怎么部署到服务器?

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.