2017 © Pedro Peláez
 

library berrier

A fruitful crud generator

image

wislem/berrier

A fruitful crud generator

  • Tuesday, January 3, 2017
  • by wislem
  • Repository
  • 1 Watchers
  • 0 Stars
  • 80 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 36 Versions
  • 0 % Grown

The README.md

berrier

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors., (*2)

Install

Via Composer, (*3)

``` bash $ composer require wislem/berrier, (*4)


## Main Setup steps #### Step 1 Add ``` php Wislem\Berrier\BerrierServiceProvider::class

to your config/app.php file, (*5)

Step 2

Publish various files needed php artisan vendor:publish, (*6)

Step 4

Run composer dump-autoload, (*7)

Step 5

Change your database/DatabaseSeeder.php to this:, (*8)

<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $this->call(UsersTableSeeder::class);
        $this->call(CategoriesTableSeeder::class);
        $this->call(PagesTableSeeder::class);
        $this->call(SettingsTableSeeder::class);
    }
}

Delete default migrations of Laravel 5 inside database/migrations, (*9)

Run php artisan migrate, (*10)

Run php artisan db:seed, (*11)

Step 6

In your User model, delete this line, (*12)

use Illuminate\Foundation\Auth\User as Authenticatable;

and change, (*13)

class User extends Authenticatable

to, (*14)

class User extends \Wislem\Berrier\Models\User

Step 7

Edit the locales inside config/translatable.php to look like this ``` php 'locales' => [ 'en', 'el', 'de', ],, (*15)

since Berrier has these locales upon setup.
Also change the config('app.url') to your proper url so that you can move to your
website through Berrier's list pages.

Make sure to check the published ```config/berrier.php``` file for more options.

#### Step 8
Create a folder in the ```storage/app/public``` folder named ```uploads```
Then run:
```ln -s storage/app/public/uploads public/```

Berrier uploads everything to the ```storage/app/public/uploads``` folder.
Those uploads need to reside inside your /public folder so a link is necessary between the two.

#### Step 9
Log in ```http://your.path/admin``` using
Email: admin@example.com
Password: admin

## Enjoy!

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Testing

``` bash
$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*16)

Security

If you discover any security related issues, please email peter.lazaridis@gmail.com instead of using the issue tracker., (*17)

Credits

License

The MIT License (MIT). Please see License File for more information., (*18)

The Versions