Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themsaid/wink
A Laravel-based publishing platform
https://github.com/themsaid/wink
blogging laravel publishing
Last synced: 22 days ago
JSON representation
A Laravel-based publishing platform
- Host: GitHub
- URL: https://github.com/themsaid/wink
- Owner: themsaid
- License: mit
- Created: 2018-11-03T10:26:06.000Z (about 6 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-02-27T13:23:07.000Z (8 months ago)
- Last Synced: 2024-08-04T09:09:36.189Z (3 months ago)
- Topics: blogging, laravel, publishing
- Language: Vue
- Homepage:
- Size: 4.4 MB
- Stars: 2,860
- Watchers: 71
- Forks: 378
- Open Issues: 16
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.text
Awesome Lists containing this project
- awesome-egypt-opensource - themsaid/wink - A Laravel-based publishing platform (Projects / Web and Publishing)
- awesome - themsaid/wink - A Laravel-based publishing platform (Vue)
README
Wink adds a nice UI where you can manage a publication of any size with posts, pages, tags, and authors.
You can add photos, code blocks, featured images, social media & SEO attributes, embedded HTML (YouTube Videos, Embedded Podcasts Episodes, Tweets, ...), and markdown!
Wink is used to manage the [official Laravel blog](https://blog.laravel.com), [divinglaravel.com](https://divinglaravel.com), and many more.
Dark & Light modes available so everyone is happy 😁
## Installation
Wink uses a separate database connection and authentication system so that you don't have to modify any of your project code.
To install Wink, run these commands in the root of your Laravel app:
```sh
composer require themsaid/wink
php artisan wink:install
php artisan storage:link
```**Configure the database connection** wink is going to be using in `config/wink.php`. Then run:
```sh
php artisan wink:migrate
```Head to `yourproject.test/wink` and use the provided email and password to log in.
## Uploading to S3
If you want to upload images to S3, update the `storage_disk` attribute in your `wink.php` configuration file to s3. Make sure your S3 disk is correctly configured in your `filesystems.php` configuration file.
```php
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('CDN_URL'),
'options' => [
'CacheControl' => 'public, max-age=315360000'
],
],
```Note: you're going to need to install the AWS-S3 Flysystem adapter, using `composer require league/flysystem-aws-s3-v3` for this to work.
## Using Unsplash
Visit https://unsplash.com/oauth/applications to create a new unsplash app. Grab the 'Access Key' and add it to your `.env` file as `UNSPLASH_ACCESS_KEY`. Lastly, add unsplash to your `config/services.php` file:
```php
'unsplash' => [
'key' => env('UNSPLASH_ACCESS_KEY'),
],
```## Updates
After each update, make sure you run these commands:
```sh
php artisan wink:migrate
php artisan vendor:publish --tag=wink-assets --force
```## Displaying your content
Wink is faceless, it doesn't have any opinions on how you display your content in your frontend. You can use the wink models in your controllers to display the different resources:
- `Wink\WinkPost`
- `Wink\WinkPage`
- `Wink\WinkAuthor`
- `Wink\WinkTag`To display posts and pages content, use `$post->content` instead of `$post->body`. The content will always be in HTML format while the body might be HTML or raw markdown based on the post type.
## Credits
- [Mohamed Said](https://github.com/themsaid)
- [All contributors](https://github.com/themsaid/wink/contributors)Special thanks to [Caneco](https://twitter.com/caneco) for the logo ✨
## Contributing
Check the [contribution guide](CONTRIBUTING.md).
## License
Wink is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).