PHPackages                             wbcodes/laravel-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. [CLI &amp; Console](/categories/cli)
4. /
5. wbcodes/laravel-core

ActiveLibrary[CLI &amp; Console](/categories/cli)

wbcodes/laravel-core
====================

This websites site core console commands package

1.0.3(3y ago)013MITPHPPHP ^7.3|^8.0|^8.1

Since Sep 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wbcodes/laravel-core)[ Packagist](https://packagist.org/packages/wbcodes/laravel-core)[ RSS](/packages/wbcodes-laravel-core/feed)WikiDiscussions master Synced 4w ago

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

Wbcod Core Laravel Package
==========================

[](#wbcod-core-laravel-package)

This is the repo for the [Wbcodes Core](https://github.com/wbcodes/laravel-core) project. A Wbcodes Site package to use CRM in your laravel project simply.

Documentation
-------------

[](#documentation)

All documentation is available on the [Wiki Pages](https://github.com/wbcodes/laravel-core/src/master). We encourage you to read it. If you are new start with the [Installation Guide](https://github.com/wbcodes/laravel-core/src/master). To update the package consult the [Updating Guide](https://github.com/wbcodes/laravel-core/src/master).

Requirements
------------

[](#requirements)

The current package requirements are:

- Laravel &gt;= 7.x
- PHP &gt;= 7.3

Installation
------------

[](#installation)

To Install our package you can follow Steps in below.

> **Note:** the next steps are valid for a fresh installation procedure, if you are updating the package, refers to the [Updating](https://github.com/wbcodes/laravel-core/src/master) section.

1. On the root folder of your Laravel project, require the package using composer:

    ```
    composer require wbcodes/laravel-core

    ```
2. **(For Laravel 7+ only)** If you want to install the authentication scaffolding, then require the `laravel/ui` package using composer:

    ```
    composer require laravel/ui
    php artisan ui vue --auth

    ```

    > **Note:** it is a recommendation to read the [Laravel Authentication Documentation](https://laravel.com/docs/7.x/authentication) for details about the authentication scaffolding.
3. install required package tables using the next commands:

    ```
    php artisan notifications:table
    php artisan queue:failed-table
    php artisan queue:table
    php artisan session:table

    ```
4. publish vendor files from imtilak/laravel-core packege:

    ```
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider"

    ```

    **or you can extract you need fiels using --tag={name}**

    ```
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=migrations
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=seeders
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=factories
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=public
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=lang
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=helpers
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=controllers
    php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=views

    ```
5. Add this code to ./routes/web.php file

    ```
    Auth::routes(['register' => false, 'verify' => true]);

    ```
6. Create data base and add database configruation to .env file

    ```
       DB_DATABASE ='your_db_name'
       DB_USERNAME ='username'
       DB_PASSWORD ='password'
    ```
7. After than you should be run migrations using this command line:

    ```
    > php artisan migrate --seed

    ```

    Or you can use to command

    ```
     > php artisan migrate
     > php artisan db:seed

    ```

    And you can refresh data base using

    ```
     > php artisan migrate:refresh

    ```

    Or you can fresh data base using

    ```
     > php artisan migrate:fresh

    ```

### Finally, install the required package resources using the next command:

[](#finally-install-the-required-package-resources-using-the-next-command)

```
php artisan sitecore:install

```

> You can use **--force** option to overwrite existing files.
>
> You can use **--interactive** option to be guided through the process and choose what you want to install.

#### Add This middleware to Http/Kernel.php as $routeMiddleware

[](#add-this-middleware-to--httpkernelphp-as-routemiddleware)

```
'wbcodes_settings'        => \Wbcodes\Core\Middleware\SiteSettingsMiddleware::class,
'wbcodes_verified_device' => \Wbcodes\Core\Middleware\VerifyDevice::class,
```

#### use SiteUserTrait middleware to Http/Kernel.php as $routeMiddleware

[](#use-siteusertrait-middleware-to--httpkernelphp-as-routemiddleware)

```
