Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Update to Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Apr 18, 2020
1 parent 7be4268 commit 74e1059
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions composer.json
Expand Up @@ -10,8 +10,8 @@
],
"require": {
"php": ">=7.2.0",
"illuminate/support": "^5.6",
"illuminate/database": "^5.6",
"illuminate/support": "^5.8 || ^6.0",
"illuminate/database": "^5.8 || ^6.0",
"centraldesktop/graph": "~1.0"
},
"replace": {
Expand All @@ -22,8 +22,8 @@
},
"require-dev": {
"mockery/mockery": ">=0.9.0",
"phpunit/phpunit": "8.*",
"orchestra/testbench": "^3.6",
"phpunit/phpunit": "9.*",
"orchestra/testbench": "^4.0",
"squizlabs/php_codesniffer": "^2.6"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Entities/Entity.php
@@ -1,15 +1,15 @@
<?php
<?php namespace Rocket\Entities;

/**
* The Entity main class is the master of everything related to Entities.
*
* It handles the creation, storage, modification and deletion of Entities and their Revisions.
*/
namespace Rocket\Entities;

use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Rocket\Entities\Exceptions\EntityNotFoundException;
use Rocket\Entities\Exceptions\InvalidFieldTypeException;
Expand Down Expand Up @@ -139,7 +139,7 @@ abstract public function getFields();
*/
public static function getContentType()
{
return str_replace('\\', '', snake_case((new \ReflectionClass(get_called_class()))->getShortName()));
return str_replace('\\', '', Str::snake((new \ReflectionClass(get_called_class()))->getShortName()));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/composer.json
Expand Up @@ -11,8 +11,8 @@
"require": {
"php": ">=7.2.0",
"rocket/translation": "~1.0.0",
"illuminate/database": "^5.6",
"illuminate/support": "^5.6"
"illuminate/database": "^5.8 || ^6.0",
"illuminate/support": "^5.8 || ^6.0"
},
"autoload": {
"psr-4": { "Rocket\\Entities\\": "" }
Expand Down
2 changes: 1 addition & 1 deletion src/Taxonomy/composer.json
Expand Up @@ -10,7 +10,7 @@
],
"require": {
"php": ">=7.2.0",
"illuminate/support": "^5.6",
"illuminate/support": "^5.8 || ^6.0",
"centraldesktop/graph": "~1.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Translation/composer.json
Expand Up @@ -10,7 +10,7 @@
],
"require": {
"php": ">=7.2.0",
"illuminate/support": "^5.6"
"illuminate/support": "^5.8 || ^6.0"
},
"autoload": {
"files": [ "functions.php" ],
Expand Down

0 comments on commit 74e1059

Please sign in to comment.