Skip to content

Commit

Permalink
Merge pull request #16 from ARCANEDEV/update-laravel_5.6_support
Browse files Browse the repository at this point in the history
Adding Laravel 5.6 Support
  • Loading branch information
arcanedev-maroc authored Feb 20, 2018
2 parents ced27b7 + da0fb88 commit 9bd728d
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/vendor/
/composer.lock
/composer.phar
/phpunit.xml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: php
sudo: false

php:
- 7.0
- 7.1.3
- 7.1
- 7.2
- nightly
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2017 ARCANEDEV <[email protected]> - Laravel Tracker
Copyright (c) 2016-2018 ARCANEDEV <[email protected]> - Laravel Tracker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelTracke

## Features

- Coming soon&hellip;
* Multiple tracking features &hellip;
* Well tested with maximum code quality.
* Easy setup &amp; configuration.
* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5 | 5.6` are supported.
* Well documented &amp; IDE Friendly.
* Made with :heart: &amp; :coffee:.

## Table of contents

1. [Installation and Setup](_docs/1-Installation-and-Setup.md)
2. [Configuration](_docs/2-Configuration.md)
3. [Usage](_docs/3-Usage.md)

## Security

Expand All @@ -28,7 +39,7 @@ If you discover any security related issues, please email arcanedev-maroc@gmail.

Any ideas are welcome. Feel free to submit any issues or pull requests, please check the [contribution guidelines](CONTRIBUTING.md).

[badge_laravel]: https://img.shields.io/badge/Laravel-5.4%20to%205.5-orange.svg?style=flat-square
[badge_laravel]: https://img.shields.io/badge/Laravel-5.4%20to%205.6-orange.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-tracker.svg?style=flat-square

[badge_build]: https://img.shields.io/travis/ARCANEDEV/LaravelTracker.svg?style=flat-square
Expand Down
Empty file added _docs/0-Home.md
Empty file.
Empty file.
Empty file added _docs/2-Configuration.md
Empty file.
Empty file added _docs/3-Usage.md
Empty file.
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@
"type": "library",
"license": "MIT",
"require": {
"php": ">=7.0",
"arcanedev/agent": "~3.0",
"arcanedev/geo-ip": "~2.2.0",
"arcanedev/support": "~4.2.0",
"php": ">=7.1.3",
"arcanedev/agent": "~4.0",
"arcanedev/geo-ip": "~2.3.0",
"arcanedev/support": "~4.3.0",
"jaybizzle/crawler-detect": "~1.2",
"ramsey/uuid": "~3.6",
"snowplow/referer-parser": "~0.2",
"ua-parser/uap-php" : "~3.4"
},
"require-dev": {
"orchestra/testbench": "~3.5.0",
"orchestra/database": "~3.5.0",
"phpunit/phpunit": "~6.0",
"phpunit/phpcov": "~4.0"
"orchestra/testbench": "~3.6.0",
"phpunit/phpunit": "~7.0",
"phpunit/phpcov": "~5.0"
},
"autoload": {
"psr-4": {
Expand Down
17 changes: 7 additions & 10 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function setUp()
protected function getPackageProviders($app)
{
return [
\Orchestra\Database\ConsoleServiceProvider::class,
\Arcanedev\LaravelTracker\LaravelTrackerServiceProvider::class,
];
}
Expand Down Expand Up @@ -133,15 +132,13 @@ function () {
*/
protected function migrate()
{
$this->artisan('migrate', [
'--database' => 'testing',
'--realpath' => $this->getMigrationsSrcPath(),
]);
$this->loadMigrationsFrom(
$this->getMigrationsSrcPath()
);

$this->artisan('migrate', [
'--database' => 'testing',
'--realpath' => realpath(__DIR__ . '/fixtures/migrations'),
]);
$this->loadMigrationsFrom(
realpath(__DIR__ . '/fixtures/migrations')
);
}

/**
Expand All @@ -151,7 +148,7 @@ protected function migrate()
*/
protected function getMigrationsSrcPath()
{
return realpath(dirname(__DIR__) . '/database/migrations');
return realpath(__DIR__.'/../database/migrations');
}

/**
Expand Down

0 comments on commit 9bd728d

Please sign in to comment.