Download the PHP package lartie/attach-social-account without Composer
On this page you can find all versions of the php package lartie/attach-social-account. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lartie/attach-social-account
More information about lartie/attach-social-account
Files in lartie/attach-social-account
Package attach-social-account
Short Description Пакет для подключения аккаунтов социальный сетей к пользователю для Laravel 5.2
License MIT
Informations about the package attach-social-account
Attach Social Account For Laravel 5.2
- Installation
- Composer
- Service Provider
- Config File And Migrations
- HasSocialAccount Trait And Contract
- Usage
- Creating Social Network
- Attach Social Account
- Detach Social Account
- Checking
- Blade Extensions
- License
Installation
Composer
composer require lartie/attach-social-account
Service Provider
Add the package to your application service providers in config/app.php
file.
Config File And Migrations
Publish the package config file and migrations to your application. Run these commands inside your terminal.
php artisan vendor:publish
And also run migrations.
php artisan migrate
This uses the default users table which is in Laravel. You should already have the migration file for the users table available and migrated.
HasSocialAccount Trait And Contract
Include HasSocialAccount
trait and also implement HasSocialAccount
contract inside your User
model.
And that's it!
Usage
Creating Social Network
Attach Social Account
or
or
Detach Social Account
or
or
Checking
or
or
Blade Extensions
For more information visit trait
HasSocialAccount
or contractHasSocialAccount
License
This package is free software distributed under the terms of the MIT license.