Skip to content

Commit 0a2f544

Browse files
committed
refactor
1 parent 7ac30be commit 0a2f544

File tree

143 files changed

+1282
-1282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1282
-1282
lines changed

.styleci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Styleci for hessam.
1+
# Styleci for binshops.
22

33
preset: laravel
44

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Hessam.
3+
Copyright (c) 2020 Binshops.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<p align="center">
2-
<a href="https://packagist.org/packages/hessam/laravel-blogger">
3-
<img src="https://poser.pugx.org/hessam/laravel-blogger/v/stable.png" alt="Latest Stable Version">
2+
<a href="https://packagist.org/packages/binshops/laravel-blogger">
3+
<img src="https://poser.pugx.org/binshops/laravel-blogger/v/stable.png" alt="Latest Stable Version">
44
</a>
55

6-
<a href="https://packagist.org/packages/hessam/laravel-blogger">
7-
<img src="https://poser.pugx.org/hessam/laravel-blogger/license.png" alt="License">
6+
<a href="https://packagist.org/packages/binshops/laravel-blogger">
7+
<img src="https://poser.pugx.org/binshops/laravel-blogger/license.png" alt="License">
88
</a>
99
</p>
1010

1111
# Laravel Blog
1212
Have you worked with Wordpress? Developers call it wordpress-like laravel blog.
1313

1414
### Contact us for any customization:
15-
sam@binshops.com
15+
contact@binshops.com
1616

1717
### Lightweight and Comprehensive
1818

@@ -31,24 +31,23 @@ Incredible features with a lightweight laravel blog package. I highly recommend
3131

3232
### Quick and easy installation
3333

34-
`composer require hessam/laravel-blogger`
34+
`composer require binshops/laravel-blog`
3535

36-
### For Complete Setup Instructions (with video guide), please Visit [The Install Guide](https://hessam.binshops.com/laravel-blog-package#setup)
3736

38-
To see package on Packagist click this [Link](https://packagist.org/packages/hessam/laravel-blogger)
37+
To see package on Packagist click this [Link](https://packagist.org/packages/binshops/laravel-blog)
3938

4039
### Bagisto version
4140
To see the Bagisto version of this package go to `bagisto-compatible` branch
4241

4342
## Important Notes
44-
- For laravel 8.x's default auth User model, change user model in `hessamcms.php` to: `\App\Models\User::class`
43+
- For laravel 8.x's default auth User model, change user model in `binshopsblog.php` to: `\App\Models\User::class`
4544

4645
## Features
4746
- Compatible with latest laravel version (laravel 8.x)
4847
- Backward-compatibility with previous laravel versions
4948
- Full text search - searching throughout the blog posts
5049
- Multi-level category support
51-
- fully configurable via its `config/hessamcms.php` config file
50+
- fully configurable via its `config/binshopsblog.php` config file
5251
- Ready to use admin panel
5352
- Full customizability of admin views and front views
5453
- Paginated views
@@ -64,21 +63,21 @@ To see the Bagisto version of this package go to `bagisto-compatible` branch
6463
## Screen Shots
6564

6665
<p align="center">
67-
<img src="https://hessam.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.23.35-PM-1024x560.png" width="500px" title="Add post">
66+
<img src="https://binshops.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.23.35-PM-1024x560.png" width="500px" title="Add post">
6867
</p>
6968
<p align="center">
7069
Add post
7170
</p>
7271

7372
<p align="center">
74-
<img src="https://hessam.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.19.42-PM-1024x558.png" width="500px" title="All posts">
73+
<img src="https://binshops.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.19.42-PM-1024x558.png" width="500px" title="All posts">
7574
</p>
7675
<p align="center">
7776
All posts
7877
</p>
7978

8079
<p align="center">
81-
<img src="https://hessam.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.03.39-PM-1-1024x560.png" width="500px" title="Add category">
80+
<img src="https://binshops.binshops.com/wp-content/uploads/2020/08/Screen-Shot-2020-08-08-at-6.03.39-PM-1-1024x560.png" width="500px" title="Add category">
8281
</p>
8382
<p align="center">
8483
Add category
@@ -93,21 +92,21 @@ To see the Bagisto version of this package go to `bagisto-compatible` branch
9392

9493
## How to customise the blog views/templates
9594

96-
After doing the correct `vendor:publish`, all of the default template files will be found in /resources/views/vendor/hessamcms/ and are easy to edit to match your needs.
95+
After doing the correct `vendor:publish`, all of the default template files will be found in /resources/views/vendor/binshopsblog/ and are easy to edit to match your needs.
9796

9897
### Customizing admin views
9998
If you need to customize the admin view, just copy the files from
100-
`vendor/hessamcms/src/Views/hessamcms_admin`
99+
`vendor/binshopsblog/src/Views/binshopsblog_admin`
101100
to
102-
`resources/views/vendor/hessamcms_admin`
101+
`resources/views/vendor/binshopsblog_admin`
103102
Then you can modify them just like any other view file.
104103

105104
## Routes
106105

107-
It will auto set all required routes (both public facing, and admin backend). There are some config options (such as changing the /blog/ url to something else), which can be done in the hessamcms.php file.
106+
It will auto set all required routes (both public facing, and admin backend). There are some config options (such as changing the /blog/ url to something else), which can be done in the binshopsblog.php file.
108107

109108
## Config options
110-
All config options have comments which describe what they do. Please just refer to the `hessamcms.php` file in your /config/ dir.
109+
All config options have comments which describe what they do. Please just refer to the `binshopsblog.php` file in your /config/ dir.
111110

112111
### Custom User Model
113112
You can change the default user model through the config file.
@@ -122,7 +121,7 @@ Add these (and an Event Listener) to your `EventServiceProvider.php` file to mak
122121

123122
There is a built in captcha (anti spam comment) system built in, which will be easy for you to replace with your own implementation.
124123

125-
Please see [this Captcha docs](https://hessam.binshops.com/laravel-blog-package#captcha) for more details.
124+
Please see [this Captcha docs](https://binshops.binshops.com/laravel-blog-package#captcha) for more details.
126125

127126
## Image upload errors
128127

@@ -161,7 +160,7 @@ Try adding this to config/app.php:
161160
- 3.0.2 - fixed default medium image size (changed to 600x400)
162161
- 3.0.1 - replaced all short tags (<?) with full opening ones (<?php)
163162
- 3.0 - Added separate functionality for uploading images (and save some meta data in db)
164-
- 2.1 - added 'short_description' to db + form, and HessamCMSPost::generate_introduction() method will try and use this to generate intro text.
163+
- 2.1 - added 'short_description' to db + form, and BinshopsBlogPost::generate_introduction() method will try and use this to generate intro text.
165164
- 2.0 - added full text search (enable it via the config file - it is disabled by default).
166165
- 1.2 - added WYSIWYG, few smaller changes
167166
- 1.1.1 - added basic captcha
@@ -170,7 +169,7 @@ Try adding this to config/app.php:
170169
- 0.3 - Small changes, packagist settings.
171170
- 0.1 - Initial release
172171

173-
Contact: sam@binshops.com
172+
Contact: contact@binshops.com
174173

175174

176175

composer.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hessam/laravel-blogger",
2+
"name": "binshops/laravel-blog",
33
"keywords": [
44
"laravel",
55
"blog",
@@ -12,19 +12,20 @@
1212
"posts",
1313
"news",
1414
"update",
15-
"hessam-blog"
15+
"laravel blog",
16+
"binshops"
1617
],
1718
"description": "Simple blog package (with admin panel) for Laravel (6.x and 7.x). Includes all views, controllers, routes and can add a blog to any existing Laravel app. Fully customisable blog (view, urls, and many other options). Includes image uploads and a pretty admin interface to manage your blog. Defaults to /blog but you can change it to anything.",
1819
"license": "MIT",
1920
"support": {
20-
"docs": "https://hessam.binshops.com/laravel-blog-package/"
21+
"docs": "https://github.com/binshops/laravel-blog"
2122
},
2223
"authors": [
2324
{
24-
"name": "Hessam",
25-
"homepage": "http://hessam.binshops.com/laravel-blog-package",
25+
"name": "Binshops",
26+
"homepage": "https://github.com/binshops/laravel-blog",
2627
"role": "owner",
27-
"email": "hessam.modaberi@gmail.com"
28+
"email": "contact@binshops.com"
2829
}
2930
],
3031
"require": {
@@ -40,19 +41,19 @@
4041
},
4142
"autoload": {
4243
"psr-4": {
43-
"HessamCMS\\": "src",
44-
"HessamCMS\\Laravel\\Fulltext\\": "src/FulltextSearch/src/"
44+
"BinshopsBlog\\": "src",
45+
"BinshopsBlog\\Laravel\\Fulltext\\": "src/FulltextSearch/src/"
4546
}
4647
},
4748
"autoload-dev": {
4849
"psr-4": {
49-
"HessamCMS\\Tests\\": "tests"
50+
"BinshopsBlog\\Tests\\": "tests"
5051
}
5152
},
5253
"extra": {
5354
"laravel": {
5455
"providers": [
55-
"HessamCMS\\HessamCMSServiceProvider"
56+
"BinshopsBlog\\BinshopsBlogServiceProvider"
5657
],
5758
"aliases": {
5859
}

migrations/2020_10_16_004241_create_hessam_languages_table.php renamed to migrations/2020_10_16_004241_create_binshops_languages_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamLanguagesTable extends Migration
7+
class CreateBinshopsLanguagesTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamLanguagesTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_languages', function (Blueprint $table) {
16+
Schema::create('binshops_languages', function (Blueprint $table) {
1717
$table->increments('id');
1818

1919
$table->string("name")->unique();
@@ -34,6 +34,6 @@ public function up()
3434
*/
3535
public function down()
3636
{
37-
Schema::dropIfExists('hessam_languages');
37+
Schema::dropIfExists('binshops_languages');
3838
}
3939
}

migrations/2020_10_16_005400_create_hessam_categories_table.php renamed to migrations/2020_10_16_005400_create_binshops_categories_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamCategoriesTable extends Migration
7+
class CreateBinshopsCategoriesTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamCategoriesTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_categories', function (Blueprint $table) {
16+
Schema::create('binshops_categories', function (Blueprint $table) {
1717
$table->increments('id');
1818

1919
$table->unsignedInteger("created_by")->nullable()->index()->comment("user id");
@@ -36,6 +36,6 @@ public function up()
3636
*/
3737
public function down()
3838
{
39-
Schema::dropIfExists('hessam_categories');
39+
Schema::dropIfExists('binshops_categories');
4040
}
4141
}

migrations/2020_10_16_005425_create_hessam_category_translations_table.php renamed to migrations/2020_10_16_005425_create_binshops_category_translations_table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamCategoryTranslationsTable extends Migration
7+
class CreateBinshopsCategoryTranslationsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamCategoryTranslationsTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_category_translations', function (Blueprint $table) {
16+
Schema::create('binshops_category_translations', function (Blueprint $table) {
1717
$table->increments('id');
1818

1919
$table->unsignedInteger('category_id')->nullable();
@@ -23,7 +23,7 @@ public function up()
2323
$table->mediumText("category_description")->nullable();
2424

2525
$table->unsignedInteger("lang_id")->index();
26-
$table->foreign('lang_id')->references('id')->on('hessam_languages');
26+
$table->foreign('lang_id')->references('id')->on('binshops_languages');
2727

2828
$table->timestamps();
2929
});
@@ -36,6 +36,6 @@ public function up()
3636
*/
3737
public function down()
3838
{
39-
Schema::dropIfExists('hessam_category_translations');
39+
Schema::dropIfExists('binshops_category_translations');
4040
}
4141
}

migrations/2020_10_16_010039_create_hessam_posts_table.php renamed to migrations/2020_10_16_010039_create_binshops_posts_table.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamPostsTable extends Migration
7+
class CreateBinshopsPostsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamPostsTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_posts', function (Blueprint $table) {
16+
Schema::create('binshops_posts', function (Blueprint $table) {
1717
$table->increments('id');
1818
$table->unsignedInteger("user_id")->index()->nullable();
1919

@@ -23,14 +23,14 @@ public function up()
2323
$table->timestamps();
2424
});
2525

26-
Schema::create('hessam_post_categories', function (Blueprint $table) {
26+
Schema::create('binshops_post_categories', function (Blueprint $table) {
2727
$table->increments('id');
2828

2929
$table->unsignedInteger("post_id")->index();
30-
$table->foreign('post_id')->references('id')->on('hessam_posts')->onDelete("cascade");
30+
$table->foreign('post_id')->references('id')->on('binshops_posts')->onDelete("cascade");
3131

3232
$table->unsignedInteger("category_id")->index();
33-
$table->foreign('category_id')->references('id')->on('hessam_categories')->onDelete("cascade");
33+
$table->foreign('category_id')->references('id')->on('binshops_categories')->onDelete("cascade");
3434
});
3535
}
3636

@@ -41,6 +41,6 @@ public function up()
4141
*/
4242
public function down()
4343
{
44-
Schema::dropIfExists('hessam_posts');
44+
Schema::dropIfExists('binshops_posts');
4545
}
4646
}

migrations/2020_10_16_010049_create_hessam_post_translations_table.php renamed to migrations/2020_10_16_010049_create_binshops_post_translations_table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamPostTranslationsTable extends Migration
7+
class CreateBinshopsPostTranslationsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamPostTranslationsTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_post_translations', function (Blueprint $table) {
16+
Schema::create('binshops_post_translations', function (Blueprint $table) {
1717
$table->increments('id');
1818

1919
$table->unsignedInteger('post_id')->nullable();
@@ -33,7 +33,7 @@ public function up()
3333
$table->string('image_thumbnail')->nullable();
3434

3535
$table->unsignedInteger("lang_id")->index();
36-
$table->foreign('lang_id')->references('id')->on('hessam_languages');
36+
$table->foreign('lang_id')->references('id')->on('binshops_languages');
3737

3838
$table->timestamps();
3939
});
@@ -46,6 +46,6 @@ public function up()
4646
*/
4747
public function down()
4848
{
49-
Schema::dropIfExists('hessam_post_translations');
49+
Schema::dropIfExists('binshops_post_translations');
5050
}
5151
}

migrations/2020_10_16_121230_create_hessam_comments_table.php renamed to migrations/2020_10_16_121230_create_binshops_comments_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
class CreateHessamCommentsTable extends Migration
7+
class CreateBinshopsCommentsTable extends Migration
88
{
99
/**
1010
* Run the migrations.
@@ -13,7 +13,7 @@ class CreateHessamCommentsTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
Schema::create('hessam_comments', function (Blueprint $table) {
16+
Schema::create('binshops_comments', function (Blueprint $table) {
1717
$table->increments('id');
1818

1919
$table->unsignedInteger("post_id")->index();
@@ -40,6 +40,6 @@ public function up()
4040
*/
4141
public function down()
4242
{
43-
Schema::dropIfExists('hessam_comments');
43+
Schema::dropIfExists('binshops_comments');
4444
}
4545
}

0 commit comments

Comments
 (0)