A Laravel publishing platform. Canvas is a fully open source package to extend your application and get you up-and-running with a blog in just a few minutes. In addition to a distraction-free writing experience, you can view monthly trends on your content, get insights into reader traffic and more!
Note: Canvas requires you to have user authentication in place prior to installation. You may run the
make:authArtisan command to satisfy this requirement.
You may use composer to install Canvas into your Laravel project:
composer require cnvs/canvasPublish the assets and primary configuration file using the canvas:install Artisan command:
php artisan canvas:installCreate a symbolic link to ensure file uploads are publicly accessible from the web using the storage:link Artisan command:
php artisan storage:linkNote: You are not required to complete the following steps. You have total design freedom when integrating blog content into your application.
Generate a default blog controller with routes and views to get up and running as quickly as possible:
php artisan canvas:setupIf you want to include Unsplash images in your posts, set up a new application at https://unsplash.com/oauth/applications. Grab your access key and update config/canvas.php:
'unsplash' => [
'access_key' => env('CANVAS_UNSPLASH_ACCESS_KEY'),
],You may update your Canvas installation using composer:
composer updateRun any new migrations using the migrate Artisan command:
php artisan migrateYou may also want to run this command to re-publish the assets:
php artisan vendor:publish --tag=canvas-assets --forceRun the tests with:
composer testCanvas is open-sourced software licensed under the MIT license.

