@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yoeunes\Voteable; |
| 4 | 4 | |
| 5 | -use Yoeunes\Voteable\Models\Vote; |
|
| 6 | -use Yoeunes\Voteable\Traits\Voteable; |
|
| 7 | 5 | use Illuminate\Database\Eloquent\Model; |
| 6 | +use Illuminate\Database\Eloquent\Relations\Relation; |
|
| 8 | 7 | use Yoeunes\Voteable\Exceptions\EmptyUser; |
| 8 | +use Yoeunes\Voteable\Exceptions\ModelDoesNotUseVoteableTrait; |
|
| 9 | 9 | use Yoeunes\Voteable\Exceptions\UserDoestNotHaveID; |
| 10 | -use Illuminate\Database\Eloquent\Relations\Relation; |
|
| 11 | 10 | use Yoeunes\Voteable\Exceptions\VoteableModelNotFound; |
| 12 | -use Yoeunes\Voteable\Exceptions\ModelDoesNotUseVoteableTrait; |
|
| 11 | +use Yoeunes\Voteable\Models\Vote; |
|
| 12 | +use Yoeunes\Voteable\Traits\Voteable; |
|
| 13 | 13 | |
| 14 | 14 | class VoteBuilder |
| 15 | 15 | { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Yoeunes\Voteable\Traits; |
| 4 | 4 | |
| 5 | -use Yoeunes\Voteable\VoteBuilder; |
|
| 6 | -use Illuminate\Support\Facades\DB; |
|
| 7 | -use Yoeunes\Voteable\VoteQueryBuilder; |
|
| 8 | 5 | use Illuminate\Database\Eloquent\Builder; |
| 9 | -use Illuminate\Database\Query\JoinClause; |
|
| 10 | 6 | use Illuminate\Database\Eloquent\Relations\Relation; |
| 7 | +use Illuminate\Database\Query\JoinClause; |
|
| 8 | +use Illuminate\Support\Facades\DB; |
|
| 9 | +use Yoeunes\Voteable\VoteBuilder; |
|
| 10 | +use Yoeunes\Voteable\VoteQueryBuilder; |
|
| 11 | 11 | |
| 12 | 12 | trait Voteable |
| 13 | 13 | { |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use Illuminate\Support\Facades\Schema; |
|
| 4 | -use Illuminate\Database\Schema\Blueprint; |
|
| 5 | 3 | use Illuminate\Database\Migrations\Migration; |
| 4 | +use Illuminate\Database\Schema\Blueprint; |
|
| 5 | +use Illuminate\Support\Facades\Schema; |
|
| 6 | 6 | |
| 7 | 7 | class CreateVotesTable extends Migration |
| 8 | 8 | { |