Skip to content

Commit a43ff56

Browse files
committed
Merge branch 'master' into develop
2 parents fcb92c5 + bfdd413 commit a43ff56

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Laravel Blog
1+
<h1 align="center">Laravel Blog Package</h1>
22

3-
## [Installation Video - Less than 5 Minutes](https://youtu.be/N9NpFUqbftA)
4-
[![Laravel Blog Package](http://img.youtube.com/vi/N9NpFUqbftA/0.jpg)](https://youtu.be/N9NpFUqbftA)
3+
<p align="center">
4+
<img src="https://user-images.githubusercontent.com/20775532/215362765-c2a3360e-c165-4cba-809b-4f04316c8d5e.png" width="80%" />
5+
</p>
56

6-
### Lightweight and Comprehensive
7+
### Lightweight and Easy to Install
78

89
Incredible features with a lightweight laravel blog package.
910
- Quick installation (<3 minutes)
@@ -16,7 +17,7 @@ Incredible features with a lightweight laravel blog package.
1617
## Outstanding Features
1718
- Fulltext Search - search throughout all blog posts
1819
- Multi Level Category - nested sets using Baum
19-
- Multi Language Support
20+
- Multi Language Support
2021

2122
### Quick and easy installation (Multi-lang version)
2223
1- Install via composer
@@ -30,15 +31,21 @@ composer require laravel/ui
3031
php artisan ui vue --auth
3132
```
3233

33-
2- Run the following two commands to copy config file, migration files, and view files
34+
2- Scaffold
35+
36+
```
37+
npm install && npm run build
38+
```
39+
40+
3- Run the following two commands to copy config file, migration files, and view files
3441

3542
`php artisan vendor:publish --provider="BinshopsBlog\BinshopsBlogServiceProvider"`
3643

37-
3- Execute migrations to create tables
44+
4- Execute migrations to create tables
3845

3946
`php artisan migrate;`
4047

41-
4- You must add one method to your \App\User (in laravel 8 \App\Models\User) model. As the name of this method shows it determines which user can manage posts. Place your logic there
48+
5- You must add one method to your \App\User (in laravel 8 \App\Models\User) model. As the name of this method shows it determines which user can manage posts. Place your logic there
4249

4350
```
4451
/**
@@ -71,12 +78,18 @@ php artisan ui vue --auth
7178
}
7279
```
7380

74-
5- Create a directory in `public/` named `blog_images`
81+
6- Create a directory in `public/` named `blog_images`
82+
83+
7- Start the server
7584

76-
6- Login as admin and setup your package: `/blog_admin/setup`
85+
```
86+
php artisan serve
87+
```
88+
89+
8- Login as admin and setup your package: `/blog_admin/setup`
7790

7891
Congrats! Your blog is ready to use. (URLs are customizable in the config file)
79-
92+
8093
Admin panel URI: `/blog_admin`
8194
Front URI: `/en/blog`
8295

@@ -85,15 +98,15 @@ To see package on Packagist click this [Link](https://packagist.org/packages/bin
8598
### Single Language Version
8699
To install the single language version of the package use version v8.1x:
87100

88-
1- `composer require binshops/laravel-blog:v8.1.2`
101+
1- `composer require binshops/laravel-blog:v8.1.4`
89102

90103
2- `php artisan vendor:publish --provider="BinshopsBlog\BinshopsBlogServiceProvider"`
91104

92105
3- `php artisan vendor:publish --tag=laravel-fulltext`
93106

94107
4- `php artisan migrate;`
95108

96-
You can see the single version in "single-lang" branch.
109+
You can see the single version in "single-lang" branch. The major difference with multi-language version is the database structure.
97110

98111
## Important Notes
99112
- For laravel 8.x's default auth User model, change user model in `binshopsblog.php` to: `\App\Models\User::class`
@@ -112,10 +125,10 @@ You can see the single version in "single-lang" branch.
112125
- Managing comments and comment approval
113126
- Other options include using Disqus comments or disabling comments
114127

115-
## Recent Changes
128+
## Recent Changes
116129
- **9.1.x** Multi language support
117130
- 8.0.x Compatibility with Laravel 8.x
118-
131+
119132
## What/who this package is for:
120133

121134
- For websites running Laravel

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"require": {
32-
"cviebrock/eloquent-sluggable": "^9.0|~8.0|~7.0|~6.0|~4.8|~4.7|~4.6|~4.5",
32+
"cviebrock/eloquent-sluggable": "^10.0|^9.0|~8.0|~7.0|~6.0|~4.8|~4.7|~4.6|~4.5",
3333
"intervention/image": "2.*",
3434
"laravel/helpers": "^1.3"
3535
},

src/Config/binshopsblog.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//config for binshops/laravel-blogger
44

55
return [
6-
'default_language' => 'en',
7-
86
//Your custom User model
97
//Change it to \App\User::class for previous laravel versions
108
'user_model'=>\App\Models\User::class,

0 commit comments

Comments
 (0)