PHPackages                             dandisy/webcore-base - 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. dandisy/webcore-base

ActiveLibrary

dandisy/webcore-base
====================

Main Package of webcore platform

1.0.3(6y ago)2342PHPPHP &gt;=7.0.0

Since Sep 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dandisy/webcore-base)[ Packagist](https://packagist.org/packages/dandisy/webcore-base)[ RSS](/packages/dandisy-webcore-base/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

Webcore Main Package
--------------------

[](#webcore-main-package)

For

### Installation

[](#installation)

Add the following additional configuration to composer.json file of your project laravel (the composer.json file in the root project laravel).

```
"minimum-stability": "dev",

```

for example we can add it under "type" configuration :

```
{
    . . .
    "type": "project",
    "minimum-stability": "dev",
    "require": {
        . . .
    },
    . . .
}

```

#### note :

[](#note-)

Just now this step is needed only because for now the webcore-base does not have a release version, later this will be discarded, after the release version has been published.

Well, to install the webcore on the existing Laravel Project is as follows :

```
composer require dandisy/webcore-base:dev-master

```

### Publishing

[](#publishing)

This step will copy the webcore codes that you can customize into the laravel project.

```
php artisan vendor:publish --tag=webcore --force

```

### Setup Laratrust

[](#setup-laratrust)

Webcore use laratrust as Role Based Access Control (RBAC), run the following artisan command to setting up it's package :

```
php artisan laratrust:setup

```

### Dumping

[](#dumping)

Dump the composer packages

```
composer dump-autoload

```

### Migrating &amp; Seeding

[](#migrating--seeding)

Do the migration and seed

```
php artisan migrate --seed

```

#### Note :

[](#note--1)

if in this step you get an error SQLSTATE\[42000\], add the following to the boot() function in app/Providers/AppServiceProvider.php

```
\Illuminate\Support\Facades\Schema::defaultStringLength(191);

```

so, that way your AppServerProvider becomes :

```
