PHPackages                             koraycicekciogullari/hydro-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. koraycicekciogullari/hydro-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

koraycicekciogullari/hydro-core
===============================

A hydro core

1.0.7(4y ago)027MITPHPPHP &gt;=8.0

Since Jan 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/koraycicekciogullari/hydro-core)[ Packagist](https://packagist.org/packages/koraycicekciogullari/hydro-core)[ RSS](/packages/koraycicekciogullari-hydro-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (13)Versions (6)Used By (0)

Hydro Core
==========

[](#hydro-core)

[![Packagist](https://camo.githubusercontent.com/bed42a7e7f9fbec40aa279690a9a1a7ca879bbec665511b460ead50368480418/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f726179636963656b63696f67756c6c6172692f687964726f2d636f72652e737667)](https://packagist.org/packages/koraycicekciogullari/hydro-core)[![Packagist](https://camo.githubusercontent.com/07f35adb4c0a1fd9ef44fd9bd87992c026cf04e068c0b2bcff425b1d233d544b/68747470733a2f2f706f7365722e707567782e6f72672f6b6f726179636963656b63696f67756c6c6172692f687964726f2d636f72652f642f746f74616c2e737667)](https://packagist.org/packages/koraycicekciogullari/hydro-core)[![Packagist](https://camo.githubusercontent.com/34770b0d28933f1fb63f1d584f4c1cb6bd0f93ef1bad96e9bb113d00fd5a2951/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f726179636963656b63696f67756c6c6172692f687964726f2d636f72652e737667)](https://packagist.org/packages/koraycicekciogullari/hydro-core)

Installation
============

[](#installation)

Install via composer

```
composer require koraycicekciogullari/hydro-core
```

Publish package assets
======================

[](#publish-package-assets)

```
php artisan vendor:publish --provider="Koraycicekciogullari\HydroCore\ServiceProvider"
```

Update the files below.
=======================

[](#update-the-files-below)

#### cors.php File Must Be Replaced.

[](#corsphp-file-must-be-replaced)

```
'supports_credentials' => true,
```

#### auth.php File Must Be Replaced.

[](#authphp-file-must-be-replaced)

```
use Koraycicekciogullari\HydroAdministrator\Models\User;

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'token',
        'provider' => 'users',
        'hash' => false,
    ],
],
```

#### Kernel.php File Must Be Replaced.

[](#kernelphp-file-must-be-replaced)

```
'api' => [
    \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
    'throttle:api',
    \Illuminate\Routing\Middleware\SubstituteBindings::class,
],

protected $routeMiddleware = [
    'auth' => \App\Http\Middleware\Authenticate::class,
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
    'can' => \Illuminate\Auth\Middleware\Authorize::class,
    'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
    'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
    'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
    'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
    'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
    'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
    'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
];
```

#### .env File Must Be Replaced.

[](#env-file-must-be-replaced)

```
FILESYSTEM_DRIVER=media
SESSION_DRIVER=cookie
ANALYTICS_VIEW_ID=
GOOGLE_RECAPTCHA_SECRET_KEY=
MEDIA_DISK="media"

```

#### composer.json File Must Be Replaced.

[](#composerjson-file-must-be-replaced)

```
"post-autoload-dump": [
    "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
    "@php artisan package:discover --ansi",
    "@php artisan ide-helper:generate",
    "@php artisan ide-helper:meta",
    "@php artisan ide-helper:models --write-mixin"
],

```

#### Add config/values.php

[](#add-configvaluesphp)

```
