PHPackages                             scool/foundation - 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. scool/foundation

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

scool/foundation
================

Foundation classes for Scool

0.2.1(9y ago)22.0k[1 issues](https://github.com/acacha-scool/foundation/issues)2MITPHPPHP ~5.6|~7.0

Since Nov 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/acacha-scool/foundation)[ Packagist](https://packagist.org/packages/scool/foundation)[ Docs](https://github.com/acacha-scool/foundation)[ RSS](/packages/scool-foundation/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (4)Used By (2)

foundation
==========

[](#foundation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/357a038121c5971551f12475ce724b51d5240b8424e144b338d974055ddd0229/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f53636f6f6c2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Scool/foundation)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e8095c3224a0f93629327a164c91f0c59d275db8076b54282a56f75ad3b288c4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53636f6f6c2f666f756e646174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Scool/foundation)[![Coverage Status](https://camo.githubusercontent.com/187f37da4461f913df1c6129238e5b43eb179ee1ba8226fbde83461023900d11/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f53636f6f6c2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Scool/foundation/code-structure)[![Quality Score](https://camo.githubusercontent.com/e5a45ae578753e8f7412d797d87375ae2590ea1e28c741c47eebe5aac2d12d42/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f53636f6f6c2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Scool/foundation)[![Total Downloads](https://camo.githubusercontent.com/9bfa687df7d36bd642e39317d760fd6720ba621a4c529602b09c40dc124731af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f53636f6f6c2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Scool/foundation)

Common classes for all scool modules.

Install
-------

[](#install)

Via Composer in your Laravel project executes:

```
$ composer require scool/foundation
```

Add to file **config/app.php** the FoundationServiceProvider:

```
...
 /*
 * Package Service Providers...
 */
 Scool\Foundation\Providers\FoundationServiceProvider::class,
...
```

And publish files with:

```
php artisan vendor:publish --tag=scool_foundation
```

Usage
-----

[](#usage)

Modify your **App\\User** class to:

```
