2017 © Pedro Peláez
 

library basecamp

:package_description

image

squashjedi/basecamp

:package_description

  • Saturday, July 15, 2017
  • by squashjedi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

Basecamp

Total Downloads Latest Stable Version License , (*1)

About Basecamp

Basecamp provides a great starting place for your Laravel project with all of the following:- * It has a fluent interface to OAuth authentication with Facebook using the Laravel Socialite package. * Built in emails to authenticate users, password resets, resend validation code and a welcome email. * An area for logged in users to update their settings. * A webmaster's admin panel to CRUD Users. * A Users API., (*2)

Install

via Composer, (*3)

``` bash composer require squashjedi/basecamp, (*4)


## Configuration After installing the Basecamp library, register `Squashjedi\Basecamp\BasecampServiceProvider::class` in your `config/app.php` configuration file: ``` bash 'providers' => [ // Other service providers... Squashjedi\Basecamp\BasecampServiceProvider::class, ],

You will also need to add credentials for the OAuth services your application utilises. These credentials should be placed in your config/services.php configuration file and should use the key facebook. For example:, (*5)

``` bash 'facebook' => [ 'client_id' => 'your-facebook-app-id', 'client_secret' => 'your-facebook-app-secret', 'redirect' => 'http://your-callback-url', ],, (*6)


Run the following commands: ``` bash php artisan vendor:publish --tag=basecamp php artisan migrate php artisan db:seed --class="Squashjedi\\Basecamp\\DatabaseSeeder" npm install npm install font-awesome

Add these Vue components in resources/assets/js/app.js: ``` bash Vue.component('basecamp-pagination', require('./components/basecamp/Pagination.vue'));, (*7)

Vue.component('basecamp-notify', require('./components/basecamp/Notify.vue'));, (*8)

Vue.component('basecamp-modal-delete', require('./components/basecamp/ModalDelete.vue'));, (*9)

Vue.component('basecamp-admin-users', require('./components/basecamp/admin/users/Index.vue'));, (*10)

Vue.component('basecamp-admin-users-fields', require('./components/basecamp/admin/users/Fields.vue'));, (*11)

Vue.component('basecamp-admin-users-create', require('./components/basecamp/admin/users/Create.vue'));, (*12)

Vue.component('basecamp-admin-users-edit', require('./components/basecamp/admin/users/Edit.vue'));, (*13)

Vue.component('basecamp-user-settings-account', require('./components/basecamp/user/settings/account/Account.vue'));, (*14)

Vue.component('basecamp-user-settings-account-deactivate', require('./components/basecamp/user/settings/account/Deactivate.vue'));, (*15)

Vue.component('basecamp-user-settings-account-deactivate-modal', require('./components/basecamp/user/settings/account/DeactivateModal.vue'));, (*16)

Vue.component('basecamp-user-settings-password', require('./components/basecamp/user/settings/password/Password.vue'));, (*17)

Vue.component('basecamp-settings-password-forgot', require('./components/basecamp/user/settings/password/Forgot.vue'));, (*18)

Vue.component('basecamp-user-settings-password-reset', require('./components/basecamp/user/settings/password/Reset.vue'));, (*19)


Add these at the bottom of `resources/assets/sass/app.scss`: ``` bash // Font Awesome @import "node_modules/font-awesome/scss/font-awesome.scss"; // Basecamp variables @import "basecamp/variables"; // Basecamp extras @import "basecamp/extras";

Run the following command: ``` bash npm run dev, (*20)


Delete `resources/views/welcome.blade.php`. Delete all routes in `routes/web.php`. Replace `app/User.php` with: ``` bash <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Squashjedi\Basecamp\App\Notifications\ResetPasswordNotification; use Squashjedi\Basecamp\App\Social; use Squashjedi\Basecamp\App\Role; use Squashjedi\Basecamp\App\PasswordReset; use Illuminate\Database\Eloquent\SoftDeletes; class User extends Authenticatable { use Notifiable, SoftDeletes; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = ['deleted_at']; /** * Send the password reset notification. * * @param string $token * @return void */ public function sendPasswordResetNotification($token) { $this->notify(new ResetPasswordNotification($token)); } /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'verified', 'name', 'email', 'password', 'verify_token', 'deleted_at' ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * Get the social networks for the user. */ public function social() { return $this->hasMany(Social::class); } /** * Get the roles for the user. */ public function roles() { return $this->hasMany(Role::class); } /** * Get the password code for the user. */ public function passwordReset() { return $this->hasOne(PasswordReset::class, 'email', 'email'); } }

Add the following to resources/lang/en/validation.php: ``` bash return [ // Other error messages..., (*21)

'password_match'        => 'This doesn\'t match your current password',

];, (*22)


Install `Laravel Passport` https://packagist.org/packages/laravel/passport. Add this middleware to `app/Http/Kernel`: ``` bash protected $middlewareGroups = [ 'web' => [ // Other middleware classes... \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class, ], ];

Usage

The database seed creates 1000 users., (*23)

The webmaster's login details are: bash Email: me@example.com Password: 123456, (*24)

License

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

The Versions

15/07 2017

dev-master

9999999-dev https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

15/07 2017

0.0.18

0.0.18.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.15

0.0.15.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.14

0.0.14.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.12

0.0.12.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.13

0.0.13.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.11

0.0.11.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

12/07 2017

0.0.10

0.0.10.0 https://github.com/Squashjedi/Basecamp

:package_description

  Sources   Download

MIT

The Requires

 

The Development Requires

basecamp squashjedi

11/07 2017
11/07 2017
08/07 2017
08/07 2017
08/07 2017
30/06 2017
30/06 2017
30/06 2017
30/06 2017