GithubHelp home page GithubHelp logo

webdevetc / blogetc Goto Github PK

View Code? Open in Web Editor NEW
224.0 10.0 69.0 578 KB

Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.

Home Page: https://webdevetc.com/blogetc

License: MIT License

PHP 77.61% Blade 22.39%
laravel blog package eloquent admin backend frontend blade rss rss-feed

blogetc's Introduction

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.

Build Status StyleCI Latest Stable Version Total Downloads License Scrutinizer Code Quality Code Coverage

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 === '[email protected]';
       // 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)
  • 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

blogetc's People

Contributors

blaisedufrain avatar d3v2a avatar hadidadkhah avatar wast avatar webdevetc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blogetc's Issues

Remove image feature

I don't see a way to remove uploaded image.

image

Am I missing something or it's a missing feature?

The post per page config value is not taken into account

Describe the bug
The post per page config value is not taken into account. If you change the value in the config file there are still 10 posts per page.

How to fix it
In vendor\webdevetc\blogetc\src\Controllers\PostsController.php line 108
"$posts = $this->postsService->indexPaginated(config('blogetc.per_page'), $categoryID);"

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Unpublished items are listing in search results

Hi,

I have set the 'is_published' field to false as default for the admin approval of posts. Here my issue is the search results page showing the unpublished posts in the listing.

Please help me to resolve this issue.

Thanks,
ALLI

Youtube video embed

Can't embed youtube video in blog post correctly.

Editor doesn't have video plugin installed:
image

When I use generated iframe from youtube and paste it into editor without
image

I get this:
image

When I paste it as code:
image

I get this:
image

But, when I go edit that post:
image
and
image

Is there other solution? Can I add video plugin somehow? Documentation is small.
Also video is not responsive.

Recent Post to fix

Hi @WebDevEtc

in BlogEtc/src/Views/blogetc/sitewide/recent_posts.blade.php

@forelse(\WebDevEtc\BlogEtc\Models\BlogEtcPost::orderBy("posted_at","desc")->limit(3)->get() as $post)

you have to change it to

@forelse(\WebDevEtc\BlogEtc\Models\BlogEtcPost::where('is_published', '=', 1)->where('posted_at', '<', Carbon\Carbon::now()->format('Y-m-d H:i:s'))->orderBy("posted_at","desc")->limit(3)->get() as $post)

to only post the last one supposed to be posted =)

Suggestion!

admin templates/views should also be editable for comfort using.i find this plugin very useful but now its not fulfilling my needs some where because of that admin templates are not editable properly.

How to install with laravel 8.2.0?

After updating with:
composer update
composer self-update
i run: composer require "webdevetc/blogetc"

Errormessage:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for webdevetc/blogetc ^8.4 -> satisfiable by webdevetc/blogetc[8.4].
- Conclusion: remove laravel/framework v8.2.0
- Conclusion: don't install laravel/framework v8.2.0
- webdevetc/blogetc 8.4 requires laravel/framework ~5.8|~6.0|~7.0 -> satisfiable by laravel/framework[5.8.x-dev, 6.x-dev, 7.x-dev].
- Can only install one of: laravel/framework[5.8.x-dev, v8.2.0].
- Can only install one of: laravel/framework[6.x-dev, v8.2.0].
- Can only install one of: laravel/framework[7.x-dev, v8.2.0].
- Installation request for laravel/framework (locked at v8.2.0, required as ^8.0) -> satisfiable by laravel/framework[v8.2.0].

Unexpected 'Gate' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

Describe the bug
syntax error, unexpected 'Gate' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

I copied this into my AuthServiceProvider

Gate::define(\WebDevEtc\BlogEtc\Gates\GateTypes::MANAGE_BLOG_ADMIN, static function(?Model $admin){
// Implement your logic here, for example:
return$user&&$user->email==='your-[email protected]';
// Or something like $user->is_admin === true
});

update on the release of 4.x

when we the release of blogetc version 4.x be out cause the current version does not support laravel version 6.0

Update 4

Hello, thanks for your great package.
Do you update it for laravel version 6.x?

thanks in advance

Won't install on a fresh Laravel 5.8


composer require "webdevetc/blogetc"
Using version ^3.1 for webdevetc/blogetc
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for webdevetc/blogetc ^3.1 -> satisfiable by webdevetc/blogetc[v3.1].
- Conclusion: remove laravel/framework v5.8.11
- Conclusion: don't install laravel/framework v5.8.11
- webdevetc/blogetc v3.1 requires illuminate/database ~5.5.0|~5.6.0|~5.7.0 -> satisfiable by illuminate/database[5.5.x-dev, 5.6.x-dev, 5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.5.44, v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.39, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9].
- don't install illuminate/database 5.5.x-dev|don't install laravel/framework v5.8.11
- don't install illuminate/database 5.6.x-dev|don't install laravel/framework v5.8.11
- don't install illuminate/database 5.7.17|don't install laravel/framework v5.8.11
- don't install illuminate/database 5.7.18|don't install laravel/framework v5.8.11
- don't install illuminate/database 5.7.19|don't install laravel/framework v5.8.11
- don't install illuminate/database 5.7.x-dev|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.0|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.16|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.17|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.2|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.28|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.33|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.34|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.35|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.36|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.37|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.39|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.40|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.41|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.43|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.5.44|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.0|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.1|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.10|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.11|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.12|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.13|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.14|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.15|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.16|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.17|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.19|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.2|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.20|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.21|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.22|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.23|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.24|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.25|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.26|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.27|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.28|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.29|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.3|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.30|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.31|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.32|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.33|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.34|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.35|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.36|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.37|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.38|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.39|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.4|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.5|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.6|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.7|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.8|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.6.9|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.0|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.1|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.10|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.11|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.15|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.2|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.20|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.21|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.22|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.23|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.26|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.27|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.28|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.3|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.4|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.5|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.6|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.7|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.8|don't install laravel/framework v5.8.11
- don't install illuminate/database v5.7.9|don't install laravel/framework v5.8.11
- Installation request for laravel/framework (locked at v5.8.11, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.11].

Installation failed, reverting ./composer.json to its original content.

Thanks,
Raoul

Resolve User class using auth config array (Suggestion)

In BlogEtcPost.php and BlogEtcComment.php, to make reference to User model configurable.

Change code
From
return $this->belongsTo(User::class, 'user_id');

To
return $this->belongsTo(config('auth.providers.users.model', App\User::class), 'user_id');

Models hard coded

Describe the bug
Although there is a variable in the config for the user models location it's hardcoded into the admin Models

To Reproduce
On a Laravel instance that uses \App\Models\User you can change it in the config but it Is not reflected in the app.

Expected behavior
Changing the variable in config would change the admin model location for all elements

Additional context
Nice app thank you.

Multi-language support: Save posts in different languages

This would be very useful for a multi-language page, so then you can write in the same blog post creation page the different translations for texts and titles, and save in multiple languages.

Is there some way now to fill and save posts in different languages?

Thank you!

Conflict with Existing Project

When Acces /blog I get Internal Server Error with the following massage
Undefined variable: og (View: /resources/views/layouts/master.blade.php)
In the: "/resources/views/layouts/master.blade.php" file at line: 37

Here is some code for master.blade

    `<title>{!! MetaTag::get('title') !!}</title>
{!! MetaTag::tag('description') !!}{!! MetaTag::tag('keywords') !!}

<link rel="canonical" href="{{ request()->fullUrl() }}"/>

  @if (isset($post))
	@if (isVerifiedPost($post))
		@if (config('services.facebook.client_id'))
			<meta property="fb:app_id" content="{{ config('services.facebook.client_id') }}" />
		@endif
		**{!! $og->renderTags() !!}**     ************Refer This og*************
		{!! MetaTag::twitterCard() !!}
	@endif
    @else
	@if (config('services.facebook.client_id'))
		<meta property="fb:app_id" content="{{ config('services.facebook.client_id') }}" />
	@endif
	**{!! $og->renderTags() !!}**   ************Refer This og*************
	{!! MetaTag::twitterCard() !!}
@endif
@include('feed::links')
{!! seoSiteVerification() !!}
@if (file_exists(public_path('manifest.json')))
	<link rel="manifest" href="/manifest.json">
@endif`

Why this contadict with the code of my project? How can solve this?

Query for .env file

Hi Sir,
I have cloned the project. When i'm trying to to install the composer i'm not getting .env file.
I'm using composer install command
how can i get the file please help?

My Laravel version is 7.1 and PHP version 7.3.7

email: [email protected]

captcha issue

whenever i try to customize the captcha part of the comment submission i keep getting this error:

Call to undefined method App\Interfaces\CustomCaptcha::runCaptchaBeforeShowingPosts()

Im trying to implement the V2 recaptcha below you find the custom class made using your docs.

<?php 

namespace App\Interfaces;

use WebDevEtc\BlogEtc\Interfaces\CaptchaInterface;

use Illuminate\Routing\Controller as BaseController;

class CustomCaptcha implements CaptchaInterface
{
    /**
     * What should the field name be (in the <input type='text' name='????'>)
     *
     * @return string
     */
    public function captcha_field_name()
    {
        return 'Captcha';
    }

    /**
     * What view file should we use for the captcha field?
     *
     * @return string
     */
    public function view()
    {
        return 'blogetc::captcha.basic';
    }

    /**
     * What rules should we use for the validation for this field?
     *
     * @return array
     */
    public function rules()
    {
            return [
                'required',
                'captcha'
        ];
    }
}

Suggestion

You may use the imanghafoori1/laravel-heyman instead of the middlewares.
That way your users (if they need), can override the access restrictions how ever they in complete freedom.

ckeditor style not work

Thanks for package, I was add post whit various style like bold, numbering as available in ckeditor but when click the post button or save the post when edit the styles like bold, italic etc are not found in the content. But also the style not shown in front end view.
please find attached image show how my post look before post and second after post then how it look in front view, you can see all my style are disappear once posted the post.
blogpost
the view after save or posted
blogpost1
The front view no any style in the post detail
blogpost2

Uploading an image throws SQL Error Invalid Text Representation

Describe the bug
When uploading a file I get an Invalid text representation

Illuminate\Database\QueryException
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "15c1fe47-ebc0-5161-91c9-9f8d5703a1e6" (SQL: insert into "blog_etc_uploaded_photos" ("image_title", "source", "uploader_id", "uploaded_images", "updated_at", "created_at") values (Castle Test, ImageUpload, 15c1fe47-ebc0-5161-91c9-9f8d5703a1e6, {"blogetc_full_size":{"filename":"castle-test-fullsize.gif","w":560,"h":247},"image_large":{"filename":"castle-test-1000x700.gif","w":1000,"h":700},"image_medium":{"filename":"castle-test-600x400.gif","w":600,"h":400},"image_thumbnail":{"filename":"castle-test-150x150.gif","w":150,"h":150}}, 2020-06-13 16:17:40, 2020-06-13 16:17:40) returning "id")

Environment

  • Laravel Framework 7.13.0
  • PHP 7.3.18
  • webdevetc/blogetc 7.3.0

To Resolve
In 2018_09_27_122627_create_blog_etc_uploaded_photos_table.php I changed

$table->unsignedInteger('uploader_id')->nullable()->index();

to

$table->uuid('uploader_id')->nullable()->index();

App\User

I haven't User class in App Package, but in App\Model.

Laravel 8 Installation

On composer install on Laravel 8
This happens on installation, haven't tried on different versions of Laravel

Tried installing --with-all-dependencies and finding any versions that satisfies the reqs...

Screenshot 2022-10-16 at 01 25 01

Hey Dude!

Hey dude,
You are really do a DDOS on gmail and blowing up my inbox :D
Should I stop working on repo! Or what!

Screen Shot 2020-05-17 at 10 20 33 PM

Issues with published views, among other things.

Hello,

First I wanted to say that I really appreciate what this package does out of the box, but I have several issues I need to point out. I'm not sure if it was built this way intentionally or if something went wrong with my copy. Here goes:

Issue 1: When publishing the views, there are no assets that appear for use in the public directory except for a CSS file. Instead, I get a horrible set of front-end views inside the Resources/Views/Vendor/blogetc folder.

I call them horrible because they are nearly impossible to work with in an efficient way. It only publishes the front end views, which are made up of layers and layers of nested components and includes which are mostly unnecessary and call back to the source code instead of allowing my changes to override them.

I have to go into the source code and remove all of the excess columns and layout inconsistencies.

This causes the views to look warped and defy the master layout, even when I put in my own layout. Not to mention that all of my changes will revert in a package update, so I'd rather not have to mod the source code.

Modifying the views also has almost no effect because everything is included and referenced back to the package which in turn has more and more nested layers and components that you can't manipulate without going into some file, finding out that the view is just composed of more includes that you have to track down in the source.

Issue 2: There are no publishable assets regarding the admin views. I have to go into the source and modify it there, which is also layered and nested several facets of includes and thus, the CSS does not render. I can see all the text in my view, but there are no publishable files for the view so I can't add them to the resources.

Issue 4: There are no obvious navigational components. I had to again go into the source and look at the routes file which thankfully included comments.

Issue 5: Several components will have improper classifications, such as the post edit button which contained both a "pull-right" (deprecated from Bootstrap 3) and a float-right (BS4) right the pull-right.

Even after removing and reinstalling the package, the **views do not render properly and do not publish usable assets **, but all of the blog functionality works fine.

I do not mean to sound like I'm bashing the package, it works in functionality but requires several modifications to the source to prevent middleware clashes, fix invalid code and the layout problems.

Is there something I am doing wrong? Please let me know if you need more information from me as well.

Thank you :)

Error "The config/blogetc.php does not exist"

I followed all the steps in the "5 Minute Install Guide" from here:

https://webdevetc.com/laravel/packages/blogetc-blog-system-for-your-laravel-app/help-documentation/laravel-blog-package-blogetc

At the end I can see the /blog page but, when I try to get the /blog_admin page I get this error.

Screen Shot 2019-09-16 at 9 03 46 PM

As you can see the error says there is no blogetc.php into the config folder, but as this screenshot you can see there is a file into the folder.

Screen Shot 2019-09-16 at 9 04 38 PM

I have this screenshot also, where you can see I ran the command php artisan vendor:publish --provider="WebDevEtc\BlogEtc\BlogEtcServiceProvider"

Screen Shot 2019-09-16 at 9 06 26 PM

I think there is no clue, at least for me where could be the problem, I hope you can hit me up with some clue in order to fix it.

Thanks!

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.