Skip to content

Instantly share code, notes, and snippets.

@kfirba
kfirba / CanBeFollowed.php
Created February 9, 2020 21:06
Followables
<?php
namespace App;
trait CanBeFollowed
{
public function isFollowedBy($user)
{
if ($this->relationLoaded('followers')) {
return $this->followers->first(function ($follower) use ($user) {
This file has been truncated, but you can view the full file.
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/Cellar/node/4.1.2/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'i',
npm verb cli 'laravel-elixir',
npm verb cli '--loglevel=silly' ]
npm info using [email protected]
npm info using [email protected]
npm verb install initial load of /Users/kfir/code/Receipto/package.json
npm verb installManyTop reading scoped package data from /Users/kfir/code/Receipto/node_modules/debug.log/package.json