Skip to content

Commit 8b8df0c

Browse files
Update namespacesUpdate namespaces
1 parent 95c88de commit 8b8df0c

15 files changed

+128
-128
lines changed

LICENSE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Alexander Manfred Poellmann
3+
Copyright (c) 2015-2016 Alexander Manfred Poellmann
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
@@ -18,5 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
22-
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
1-
[![Latest Stable Version](https://poser.pugx.org/vendocrat/laravel-followers/v/stable)](https://packagist.org/packages/vendocrat/laravel-followers)
2-
[![Total Downloads](https://poser.pugx.org/vendocrat/laravel-followers/downloads)](https://packagist.org/packages/vendocrat/laravel-followers)
3-
[![License](https://poser.pugx.org/vendocrat/laravel-followers/license)](https://packagist.org/packages/vendocrat/laravel-followers)
1+
[![Latest Stable Version](https://poser.pugx.org/lecturize/laravel-followers/v/stable)](https://packagist.org/packages/lecturize/laravel-followers)
2+
[![Total Downloads](https://poser.pugx.org/lecturize/laravel-followers/downloads)](https://packagist.org/packages/lecturize/laravel-followers)
3+
[![License](https://poser.pugx.org/lecturize/laravel-followers/license)](https://packagist.org/packages/lecturize/laravel-followers)
44

55
# Laravel Followers
66

77
Build a poly-morph Follower system or simply associate Eloquent models in Laravel 5.
88

9-
**Attention:** This package is a work in progress, please use with care and be sure to report any issues!
9+
## Important Notice
10+
11+
**This package is a work in progress**, please use with care and feel free to report any issues or ideas you may have!
12+
13+
We've transferred this package to a new owner and therefor updated the namespaces to **Lecturize\Followers**. The config file is now `config/lecturize.php`.
1014

1115
## Installation
1216

1317
Require the package from your `composer.json` file
1418

1519
```php
1620
"require": {
17-
"vendocrat/laravel-followers": "dev-master"
21+
"lecturize/laravel-followers": "dev-master"
1822
}
1923
```
2024

21-
and run `$ composer update` or both in one with `$ composer require vendocrat/laravel-followers`.
25+
and run `$ composer update` or both in one with `$ composer require lecturize/laravel-followers`.
2226

2327
Next register the service provider and (optional) facade to your `config/app.php` file
2428

2529
```php
2630
'providers' => [
2731
// Illuminate Providers ...
2832
// App Providers ...
29-
vendocrat\Followers\FollowersServiceProvider::class
30-
];
31-
```
32-
33-
```php
34-
'providers' => [
35-
// Illuminate Facades ...
36-
'Followers' => vendocrat\Followers\Facades\Followers::class
33+
Lecturize\Followers\FollowersServiceProvider::class
3734
];
3835
```
3936

4037
## Configuration & Migration
4138

4239
```bash
43-
$ php artisan vendor:publish --provider="vendocrat\Followers\FollowersServiceProvider"
40+
$ php artisan vendor:publish --provider="Lecturize\Followers\FollowersServiceProvider"
4441
```
4542

46-
This will create a `config/followers.php` and a migration file. In the config file you can customize the table names, finally you'll have to run migration like so:
43+
This will create a `config/lecturize.php` and a migration file. In the config file you can customize the table names, finally you'll have to run migration like so:
4744

4845
```bash
4946
$ php artisan migrate
@@ -55,4 +52,4 @@ Licensed under [MIT license](http://opensource.org/licenses/MIT).
5552

5653
## Author
5754

58-
**Handcrafted with love by [Alexander Manfred Poellmann](http://twitter.com/AMPoellmann) for [vendocrat](https://vendocr.at) in Vienna & Rome.**
55+
**Handcrafted with love by [Alexander Manfred Poellmann](http://twitter.com/AMPoellmann) for [Lecturize](https://lecturize.com) in Vienna & Rome.**

config/config.php

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
<?php
22

33
return [
4-
/**
5-
* Pivot Table to relate Follower and Followables
6-
*/
7-
'table' => 'followables',
4+
/*
5+
* Contacts
6+
*/
7+
'follower' => [
8+
/*
9+
* Relationship table for followers and followables
10+
*/
11+
'table' => 'followables',
812

9-
/**
10-
* Cache follower/following counts
11-
*/
12-
'cache' => [
13-
'enable' => true,
14-
'expiry' => 10,
15-
]
13+
/*
14+
* Cache follower/following counts
15+
*/
16+
'cache' => [
17+
'enable' => true,
18+
'expiry' => 10,
19+
]
20+
],
1621
];

database/migrations/create_followers_table.stub renamed to database/migrations/create_followers_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FollowersTable extends Migration
1515
*/
1616
public function __construct()
1717
{
18-
$this->table = config('followers.table');
18+
$this->table = config('lecturize.followers.table', 'followables');
1919
}
2020

2121
/**
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<?php namespace vendocrat\Followers\Contracts;
1+
<?php namespace Lecturize\Followers\Contracts;
22

33
interface CanFollowInterface
44
{
5+
/**
6+
* @return mixed
7+
*/
58
// public function following();
69
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<?php namespace vendocrat\Followers\Contracts;
1+
<?php namespace Lecturize\Followers\Contracts;
22

33
interface FollowableInterface
44
{
5+
/**
6+
* @return mixed
7+
*/
58
// public function followers();
69
}

src/Exceptions/AlreadyFollowingException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace vendocrat\Followers\Exceptions;
1+
<?php namespace Lecturize\Followers\Exceptions;
22

33
class AlreadyFollowingException extends \Exception
44
{

src/Exceptions/CannotBeFollowedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace vendocrat\Followers\Exceptions;
1+
<?php namespace Lecturize\Followers\Exceptions;
22

33
class CannotBeFollowedException extends \Exception
44
{

src/Exceptions/FollowerNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace vendocrat\Followers\Exceptions;
1+
<?php namespace Lecturize\Followers\Exceptions;
22

33
class FollowerNotFoundException extends \Exception
44
{

src/Facades/Follower.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
<?php namespace vendocrat\Followers\Facades;
1+
<?php namespace Lecturize\Followers\Facades;
22

33
use Illuminate\Support\Facades\Facade;
4-
use vendocrat\Followers\Followers;
54

65
class Follower extends Facade
76
{
87
/**
9-
* Get the registered name of the component.
10-
*
11-
* @return string
8+
* @inheritdoc
129
*/
1310
protected static function getFacadeAccessor()
1411
{
15-
return Followers::class;
12+
return 'followers';
1613
}
1714
}

0 commit comments

Comments
 (0)