3.2
Changes
Added blog functionality to frontend and admin
Added Serbian Language files
More Laravel 5.1ish
Files Changed
Modified
app/Http/routes.php
public/assets/css/frontend/404.css
public/assets/css/frontend/blog.css
public/assets/js/pages/add_newblog.js
resources/views/blog.blade.php
resources/views/blogitem.blade.php
resources/views/layouts/default.blade.php
resources/views/admin/layouts/default.blade.php
New
app/Blog.php
app/BlogCategory.php
app/BlogComment.php
app/Http/Controllers/BlogCategoryController.php
app/Http/Controllers/BlogController.php
app/Http/Requests/BlogCategoryRequest.php
app/Http/Requests/BlogCommentRequest.php
app/Http/Requests/BlogRequest.php
database/migrations/2015_08_09_200015_create_blog_module_table.php
resources/lang/en/blog/*
resources/lang/en/blogcategory/*
resources/lang/sr/*
resources/views/admin/blog/*
resources/views/admin/blogcategory/*
Deleted
resources/views/admin/add_newblog.blade.php
resources/views/admin/blog_details.blade.php
resources/views/admin/blog_details2.blade.php
resources/views/admin/blog_list.blade.php
resources/views/admin/blog_list2.blade.php
Updating
Blog module uses two composer packages so we need to install them
add packages to composer
open your composer and add following packages
"cviebrock/eloquent-sluggable": "dev-master",
"cviebrock/eloquent-taggable": "dev-master"
then in your terminal hit composer update
publish vendor files
in terminal hit php artisan vendor:publish
service providers
open config/app.php
and add following lines in providers
array
Cviebrock\EloquentSluggable\SluggableServiceProvider::class,
Cviebrock\EloquentTaggable\ServiceProvider::class,
migrate tables
in terminal hit
php artisan sluggable:table blogs
php artisan taggable:table
php artisan migrate
upload directory permissions
blog pics will be uploaded into public/uploads/blog
so we need to provide write access for that folder
to do so, please run following command in your command prompt/terminal
chmod 777 public/uploads/blog
Last updated
Was this helpful?