diff --git a/README.md b/README.md index edaceaba1..744370a4a 100644 --- a/README.md +++ b/README.md @@ -6,34 +6,32 @@ [![Builds status](https://travis-ci.org/cydrobolt/polr.svg)](https://travis-ci.org/cydrobolt/polr) [![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://polr.readthedocs.org/en/latest/) -Polr is an open-source link shortening web application designed to operate at a brisk pace while offering a full-featured experience. It allows you to host your own URL shortener, to brand your URLs, and to gain control over your data. Polr is especially easy to use, and provides a modern, themable feel. +Polr is an intrepid, self-hostable open-source link shortening web application with a robust API. It allows you to host your own URL shortener, to brand your URLs, and to gain control over your data. Polr is especially easy to use, and provides a modern, themable feel. -[Getting Started](http://docs.polr.me/en/latest/user-guide/installation/) - [API Documentation](http://docs.polr.me/en/latest/developer-guide/api/) - [Contributing](https://github.com/cydrobolt/polr/blob/master/CONTRIBUTING.md) - [Bugs](https://github.com/cydrobolt/polr/issues) - [IRC](http://webchat.freenode.net/?channels=#polr) +[Getting Started](http://docs.polr.me/en/latest/user-guide/installation/) - [API Documentation](http://docs.polr.me/en/latest/developer-guide/api/) - [Contributing](https://github.com/cydrobolt/polr/blob/master/.github/CONTRIBUTING.md) - [Bugs](https://github.com/cydrobolt/polr/issues) - [IRC](http://webchat.freenode.net/?channels=#polr) -### Upgrading from 1.x +### Quickstart -**Please do not attempt to upgrade directly to 2.x.** - -Polr 1.x currently cannot be upgraded to 2.x automatically. There are breaking changes in the API, configuration files, and database structure. A migration will be provided once 2.0 stable is officially released. In the meantime, it is okay to upgrade between different versions in the 1.x arch, which do not have breaking changes. - - -#### Quickstart - -Polr is written in PHP and Laravel, using MySQL as its primary database. +Polr is written in PHP and Lumen, using MySQL as its primary database. - To get started with Polr on your server, check out the [installation guide](http://docs.polr.me/en/latest/user-guide/installation/). You can clone this repository, or download a [release](https://github.com/cydrobolt/polr/releases). - To get started with the Polr API, check out the [API guide](http://docs.polr.me/en/latest/developer-guide/api/). -_Installation TL;DR: clone or download this repository, set document root to `public/`, MySQL create database, go to `yoursite.com/setup`_ +Installation TL;DR: clone or download this repository, set document root to `public/`, create MySQL database, go to `yoursite.com/setup` and follow instructions. + +### Demo + +To test out the demo, head to [demo.polr.me](http://demo.polr.me) and use the following credentials: -#### Demo +- Username: `demo-admin` +- Password: `demo-admin` -Polr operates a demo instance at [demo.polr.me](http://demo.polr.me). You can use the demo instance to develop your API implementation, try out the admin panel, or simply experience the app without needing to install it on your own servers. The demo instance may be periodically reset, so please do not use the demo as a production URL shortener. +### Upgrading Polr -Admin username: demo-admin (password is same as username) +Please do not attempt to upgrade directly to 2.x. -Normal user username: demo-user (password is same as username) +Polr 1.x currently cannot be upgraded to 2.x automatically. There are breaking changes in the API, configuration files, and database structure. It is safe to upgrade between different versions in the 1.x arch, which do not have breaking changes. Always backup your database and configuration files before upgrading Polr. #### Browser Extensions diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 32e5ac674..e5dc439c3 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -25,8 +25,8 @@ public function displayAdminPage(Request $request) { $admin_links = null; if ($this->currIsAdmin()) { - $admin_users = User::paginate(15); - $admin_links = Link::paginate(15); + $admin_users = User::paginate(15, ['*'], 'users_page'); + $admin_links = Link::paginate(15, ['*'], 'admin_links_page'); } $user = UserHelper::getUserByUsername($username); @@ -36,7 +36,7 @@ public function displayAdminPage(Request $request) { } $user_links = Link::where('creator', $username) - ->paginate(15); + ->paginate(15, ['*'], 'links_page'); return view('admin', [ 'role' => $role, diff --git a/docs/index.md b/docs/index.md index f1969c38e..a1f3d6eec 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,7 +1,6 @@ ![Polr Logo](logo.png) [![GitHub license](https://img.shields.io/badge/license-GPLv2%2B-blue.svg)](about/license) -[![2.0 status](https://img.shields.io/badge/beta-2.0-yellow.svg)](https://github.com/cydrobolt/polr/tree/2.0-dev) -[![GitHub release](https://img.shields.io/badge/stable-1.5.1-blue.svg)](https://github.com/cydrobolt/polr/releases) +[![GitHub release](https://img.shields.io/badge/stable-2.0.0-blue.svg)](https://github.com/cydrobolt/polr/releases) Polr is a beautiful, modern, lightweight, and minimalist open-source URL shortening application. It allows you to host your own URL shortener, to brand your URLs, and to gain control over your data. Polr is especially easy to use, and provides a modern, themable interface. diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 2e834266c..7a6c04d8d 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -9,7 +9,7 @@