Giter Site home page Giter Site logo

geowrgetudor / laravel-tiny-blog Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 3.57 MB

A Laravel package that adds a simple and customizable markdown blog to your app.

License: MIT License

PHP 44.13% JavaScript 2.10% SCSS 0.19% Blade 53.58%
blog blogging laravel laravel-package

laravel-tiny-blog's Introduction

A tiny markdown blog package for Laravel

A tiny markdown blog package for Laravel

Latest Version on Packagist Total Downloads

Quickly add a Markdown blog to your Laravel app.

Installation

You can install the package via composer:

composer require geowrgetudor/laravel-tiny-blog

Initialize the blog by running the following command. A directory called content will be create in the root of your project. That's where your markdown article will be stored.

php artisan tinyblog:init

Publish the assets:

php artisan tinyblog:publish

Publish the config file and configure it however you like it:

php artisan vendor:publish --tag="tiny-blog-config"

If you want some sample articles, you can publish our examples using:

php artisan tinyblog:example

Optionally, you can publish the views to customize and/or extend them

php artisan vendor:publish --tag="tiny-blog-views"

Creating new articles

use Geow\TinyBlog\Models\Article;

Article::create([
    'title' => 'My first article',
    'description' => 'Trying out Tiny Blog',
    'img' => 'https://images.unsplash.com/photo-1682686579688-c2ba945eda0e?q=80&w=500&auto=format&fit=crop',
    'content' => '## Hello world', // should be markdown content
    'author' => 'George Tudor',
    'date' => now()->toDateTimeString(),
]);

Views

You can access the blog at your-domain.com/blog. You can change the route name in tiny-config.php config file.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

laravel-tiny-blog's People

Contributors

geowrgetudor avatar

Stargazers

 avatar wilbur.yu avatar guanguans avatar Steve Bauman avatar

Watchers

 avatar

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.