affan502

Senior Web Programmer (Co founder of iFreelance Club) at iFreelance Club

Experience

650

0 Best Reply Awards

  • Member Since 8 Months Ago
  • 3 Lessons Completed
  • 0 Favorites

25th April, 2017

affan502 started a new conversation Error While Reading Line From The Server. • 2 months ago

Redis error. I am following tutorial. Of redis with socket.io.when redis publishing chanel request from node server get back that result. "Error while reading lime from the server." Stuck here from last 5 hours. Tried to find on google some places people said this is timeout problem. I even tried with set -0 timeout still no luck.

21st March, 2017

affan502 left a reply on Accept Username, Email Or ID For Login. • 3 months ago

@vipin93 yes i am using default login.

affan502 started a new conversation Accept Username, Email Or ID For Login. • 3 months ago

I know in the documentation there is a way to override login default behavior but quite confuse with an implement. in my case, i want to accept Email, username or ID for login. whatever user insert in email field will find in email, username, and ID.

17th October, 2016

affan502 left a reply on Count Top 10 Most Occuring Values In A Column Via Query Builder • 8 months ago

@willvincent sorry for bothering. query builder not cooperating with this query. still can't fixed. not getting Sql syntax error.

affan502 left a reply on Count Top 10 Most Occuring Values In A Column Via Query Builder • 8 months ago

@willvincent

Here is my code.

 return DB::table('roman_numerals')->select('integer', 'COUNT(integer) AS occurrences')
            ->groupBy('integer')
            ->orderBy('occurrences', 'DESC')
            ->limit(10)
            ->get();

affan502 left a reply on Count Top 10 Most Occuring Values In A Column Via Query Builder • 8 months ago

Column not found: 1054 Unknown column. here is error i am getting but actually column exits.

affan502 started a new conversation Count Top 10 Most Occuring Values In A Column Via Query Builder • 8 months ago

I have a column in Mysql table that has the data type INT(11). How can I search to get the top 10 most occurring values in this column?

14th October, 2016

affan502 left a reply on Get Users Those Comments To Selected Post • 8 months ago

Thanks you very much @clay and @willvincent

affan502 left a reply on Get Users Those Comments To Selected Post • 8 months ago

@willvincent

$post->commenters

getting empty array. i declare in Post model.

affan502 left a reply on Get Users Those Comments To Selected Post • 8 months ago

Basically here is all story. i am trying to send notification to all users those comments to selected post.So i need Users array those comments to selected post.

affan502 left a reply on Get Users Those Comments To Selected Post • 8 months ago

@willvincent how can i call to this relation.Like that.?

$post->comments->user

affan502 started a new conversation Get Users Those Comments To Selected Post • 8 months ago

I want to get users those comments to selected post.

Post::find($id)->comments    //Here i want to associate my comments list with user table. 

PostModel

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    //
    protected $table = "posts";



     public function comments(){
             return $this->hasMany('App\Comment');
     }
}

````
Comment Model

namespace App;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model { // protected $table = "comments";

public function Post(){
    return $this->belongsTo('App\Post');
}

}

12th October, 2016

affan502 left a reply on Setup OneSignal Notification Route • 8 months ago

It's fine i got answer from your first Post. BTW Thanks again.

affan502 left a reply on Setup OneSignal Notification Route • 8 months ago

@willvincent Thanks for response. ye i got idea. so meaning to say in my User Model i can bind with requested id. But in my case i have other table there i am collecting OneSignal Ides.How to bind other table field with it. Or in Other word OneSignalUser Model. but when i when i send notification with Chanel i use Notification Facade. so it associated with user model if i am right.

affan502 started a new conversation Setup OneSignal Notification Route • 8 months ago

How to use OneSignal package with Notification Chanel. i done most of part as mention http://laravel-notification-channels.com/onesignal/ But i am confuse with Notification route thing. I am new with Laravel. i searched a lot but still can not find satisfied answer.

public function routeNotificationForOneSignal() { return 'ONE_SIGNAL_PLAYER_ID'; }

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.