public function getIsWriterAttribute()
	{
		$project = Project::getProjectByUrl(Route::Input('project'));
		if ($project)
		{
			$writers = explode(',', $project->writers);
			if (in_array(Auth::id(), $writers))
			{
				return $this->attributes['is_writer'] = true;
			}
			return $this->attributes['is_writer'] = false;
		}
	}
public function getIsWriterAttribute()
	{
		$project = Project::getProjectByUrl(Route::Input('project'));
		if ($project)
		{
			$writers = explode(',', $project->writers);
			if (in_array(Auth::id(), $writers))
			{
				return $this->attributes['is_writer'] = true;
			}
			return $this->attributes['is_writer'] = false;
		}
	}
public function getIsWriterAttribute ( ) { $ project = Project :: getProjectByUrl ( Route :: Input ( 'project' ) ) ; if ( $ project ) { $ writers = explode ( ',' , $ project -> writers ) ; if ( in_array ( Auth :: id ( ) , $ writers ) ) { return $ this -> attributes [ 'is_writer' ] = true ; } return $ this -> attributes [ 'is_writer' ] = false ; } }
This attribute specified user is write or not for logined user
@return bool
This attribute specified user is write or not for logined user