PHP code example of sebastian-kennedy / laravel-follow
1. Go to this page and download the library: Download sebastian-kennedy/laravel-follow library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sebastian-kennedy / laravel-follow example snippets
/*
* This file is part of the sebastian-kennedy/laravel-follow.
*
* (c) SebastianKennedy <[email protected]>
*
* This source file is subject to the MIT license that is bundled.
*/
namespace SebastianKennedy\LaravelFollow\Tests;
use Illuminate\Database\Eloquent\Model;
use SebastianKennedy\LaravelFollow\Behaviors\CanBeFollowBehavior;
use SebastianKennedy\LaravelFollow\Behaviors\CanFollowBehavior;
/**
* Class User.
*/
class User extends Model
{
use CanFollowBehavior;
use CanBeFollowBehavior;
}