webdevetc / blogetc
Simple blog (with admin panel) for Laravel from https://webdevetc.com/
Installs: 22 084
Dependents: 0
Suggesters: 0
Security: 0
Stars: 223
Watchers: 9
Forks: 72
Open Issues: 1
Requires
- cviebrock/eloquent-sluggable: ~8.0|~7.0|~6.0|~4.8|~4.7|~4.6|~4.5
- intervention/image: 2.*
- laravel/framework: ~5.8|~6.0|~7.0|~8.0
- laravel/helpers: ^1.2
- laravelium/feed: ~8.0|~7.0|~6.0|~3.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.16
- orchestra/testbench: ~5.2|~4.8|~4.0|~3.8|~3.7
- phpunit/phpunit: ~9.1|~8.4|~8.1
- dev-master
- 8.4.2
- 8.4.1
- 8.4
- 8.3
- 8.2.0
- 8.1.0
- 8.0.0
- 7.3.0
- 7.2.0
- 7.1.9
- 7.1.8
- 7.1.7
- 7.1.6
- v3.1.4
- v3.1.2
- v3.1
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0
- v2.1.2
- v2.1.1
- v2.1
- v2.0
- v1.5.2
- v1.5.1
- v1.5
- v1.2
- v1.1.2
- v1.0.5
- dev-analysis-wOgAR2
- dev-analysis-54kNMW
- dev-analysis-9bA4wm
- dev-analysis-ne6kRO
- dev-analysis-nNoLo0
- dev-WebDevEtc-patch-1
- dev-small-changes
- dev-laravel8-2
- dev-support-laravel-version-8
- dev-analysis-0g2YRm
- dev-fix-laravel-versions
- dev-analysis-WNgBRe
- dev-analysis-640Jd4
- dev-analysis-NAgryr
- dev-fix-dynamic-title
This package is auto-updated.
Last update: 2022-10-23 09:49:00 UTC
README
Note: this is a very old project. I haven't updated it for years.
Dependabot has alerts saying there are outdated dependancy with security issues. Please stop using this package, and upgrade your code to something else.
It is not compatible with recent version of Laravel. There are some forks of this package, please use one of those.
Webdevetc BlogEtc - Complete Laravel Blog Package
- Quickly add a blog with admin panel to your existing Laravel project. It has everything included (routes, views, controllers, middleware, etc)
- Works with latest version of Laravel.
Recent changes (May/June 2020) including recent installation instructions:
- This package no longer uses
\App\User::canManageBlogEtcPosts()
to check if a user can access the admin panel. - Instead it now uses a Laravel gate. This is currently backwards compatible without any edits.
- For new installations please add the following to
App\Providers\AuthServiceProvider
:
Gate::define(GateTypes::MANAGE_BLOG_ADMIN, static function (?Model $user) { // Implement your logic here, for example: return $user && $user->email === 'your-admin-user@your-site.com'; // Or something like `$user->is_admin === true` });
- The old way (using the
canManageBlogEtcPosts()
method on User.php) will still work but it is not recommended. At some point in the future it will be removed.
(Readme on webdevetc.com will be updated soon)
Blog Package for Laravel
This is WebDevEtc's BlogEtc Blog package for Laravel. It has everything you need to quickly and easily add a blog to your laravel app.
For installation instructions please read the Laravel blog install guide here
Install guide • Packagist << They're simple, but must be followed.
Features
- Includes all views, routes, models, controllers, events, etc
- Public facing pages:
- View all posts (paginated)
- View all posts in category (paginated)
- View single post
- Add comment views / confirmation views
- Search, search form, search results page.
- Admin pages:
- Posts (CRUD Blog Posts, Upload Featured Images (auto resizes)
- View all posts,
- Create new post,
- Edit post,
- Delete post
- Categories (CRUD Post Categories)
- View all categories,
- Create new category,
- Edit post,
- Delete post
- Comments (including comment approvals)
- View all comments,
- Approve/Moderate comment,
- Delete comment
- Upload images
- as well as uploading featured images for each blog post (and auto resizing to multiple defined sizes), you can upload images separately.
- view all uploaded images (in multiple sizes)
- Posts (CRUD Blog Posts, Upload Featured Images (auto resizes)
- Public facing pages:
- Includes admin panel
- Create / edit posts
- Create / edit post categories
- Manage (approve/delete) submitted comments
- Allows each blog post to have featured images uploaded (you can define the actual dimensions) - in large, medium, thumbnail sizes
- fully configurable via its
config/blogetc.php
config file. - Includes all required view files, works straight away with no additional setup. All view files (Blade files) use Bootstrap 4, and very clean HTML (easy to get your head around). You can easily override any view file by putting files in your
/resources/views/vendor/blogetc/
directory - Built in comments (using the database), can auto approve or require admin approval (comment moderation).
- Other options include using Disqus comments or disabling comments.
- Includes unit/feature tests, run automatically on Travis CI.
- Fires events for any database changes, so you can easily add Event Listeners if you need to add additional logic.
- < 5 minute install time and your blog is up and working, ready for you to go to the admin panel and write a blog post - see full details below, but this is a summary of the required steps:
- install with composer,
- do the database migration, copy the config file over (done with
php artisan vendor:publish
) - chmod/chown the
public/blog_images/
directory so featured images can be uploaded for each blog post - and then add a gate to AuthServiceProvider (see note above)
- but please see the install instructions to get everything up and working
How to customise the blog views/templates
This is easy to do, and further details can be found in our BlogEtc Laravel Blog Package Documentation.
After running the vendor:publish
command, all of the default template files will be found in /resources/views/vendor/blogetc/
and are easy to edit to match your needs.
Missing /auth/register?
If you are installing on a fresh install of Laravel (which no longer includes auth built in) then the following must be ran:
composer require laravel/ui;
php artisan ui vue --auth;
Issues, support, bug reports, security issues
Please contact me on the contact from on WebDev Etc or on twitter and I'll get back to you ASAP.
Versions
- 8.4 (Sept 2020): Added support for Laravel 8. Removed support for PHP 7.2
- 8.3 (Sept 2020): Removed support for
swisnl/laravel-fulltext
as it seems abandoned.- Searching in blogetc is now much more simple - it is all inline in the controller and does a simple LIKE query.
- If you need full text search then I recommend you implement your own search controller (see older commits to copy code that used full text search)
- 8.2 (Sept 2020): Added fix for dynamic title
- < 8.1 Support for PHP 7.2, 7.3, 7.4. Support for Lavavel 5.8.35 - 7.6