Package Data | |
---|---|
Maintainer Username: | themsaid |
Maintainer Contact: | mohamed@laravel.com (Mohamed Said) |
Package Create Date: | 2018-11-03 |
Package Last Update: | 2024-02-27 |
Home Page: | |
Language: | Vue |
License: | MIT |
Last Refreshed: | 2024-11-23 03:21:59 |
Package Statistics | |
---|---|
Total Downloads: | 83,246 |
Monthly Downloads: | 1,288 |
Daily Downloads: | 26 |
Total Stars: | 2,900 |
Total Watchers: | 71 |
Total Forks: | 384 |
Total Open Issues: | 16 |
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, divinglaravel.com, and many more.
Dark & Light modes available so everyone is happy 😁
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:
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
. The run:
php artisan wink:migrate
Head to yourproject.test/wink
and use the provided email and password to log in.
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.
'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'
],
],
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:
'unsplash' => [
'key' => env('UNSPLASH_ACCESS_KEY'),
],
After each update, make sure you run these commands:
php artisan wink:migrate
php artisan vendor:publish --tag=wink-assets --force
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.
Check the contribution guide.
Wink is open-sourced software licensed under the MIT license.