Abdullah_Iftikhar

Abdullah_Iftikhar

Full-Stack Developer at Full-Stack Developer

Member Since 4 Months Ago

Lahore

Experience Points
1,860
Total
Experience

3,140 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
1,860 XP
Feb
12
2 weeks ago
Activity icon

Started a new Conversation How Can I Search Data From Database With Eloquent In Laravel ?

I have multiple options like search on the basis of unique id gender etc so how can I perform this function with one query?

basically its searching functionality from the database.

Activity icon

Replied to How To Get Data With Sorting From Controller ?

@sinnbeck I have relation city with stat.

How can again I need cities in alphabetically sort form.

public function searchCityForState(Request $request) { $state = State::find($request->id); $cities = $state->searchCities; return $cities; }

Activity icon

Replied to How To Get Data With Sorting From Controller ?

@sinnbeck I have tried but not get the expected answer.

Activity icon

Started a new Conversation How To Get Data With Sorting From Controller ?

I have this query I want to get data from the database with alphabetically sorting. and also get the city with the same sorting with relation.

        $states = State::where('status', 1)->sortBy('name')->get();
Feb
08
2 weeks ago
Activity icon

Replied to How To Store This Jason Response Data In Variable ?

@sti3bas Do I need a region in 1 array please provide the helping code for it.

Feb
07
2 weeks ago
Activity icon

Started a new Conversation How To Store This Jason Response Data In Variable ?

[ { "region": "Alabama", "country": "us" }, { "region": "Alaska", "country": "us" }, ]

Feb
04
3 weeks ago
Activity icon

Started a new Conversation Webrtc Works On Intranet But Not On Internet

I am working on a video call app using webrtc. My issue is that when I am connected on the same network, then the video call work fine but on a different network webrtc, there is no response. Please give me some solution. Here is the IceServer code snippet:

var iceServers = [{ 'urls': [ 'stun:webrtcweb.com:7788', // coTURN 'stun:webrtcweb.com:7788?transport=udp', // coTURN ], 'username': 'muazkh', 'credential': 'muazkh' }, { 'urls': [ 'turn:webrtcweb.com:7788', // coTURN 7788+8877 'turn:webrtcweb.com:4455?transport=udp', // restund udp

                'turn:webrtcweb.com:8877?transport=udp', // coTURN udp
                'turn:webrtcweb.com:8877?transport=tcp', // coTURN tcp
            ],
            'username': 'muazkh',
            'credential': 'muazkh'
        },
        {
            'urls': [
                'stun:stun.l.google.com:19302',
                'stun:stun1.l.google.com:19302',
                'stun:stun2.l.google.com:19302',
                'stun:stun3.l.google.com:19302',
                'stun:stun4.l.google.com:19302',
                'stun:stun.l.google.com:19302?transport=udp',
            ]
        }
    ];
Jan
30
3 weeks ago
Activity icon

Started a new Conversation Lang Localize

How i can display current language in ul li ?

Jan
21
1 month ago
Activity icon

Replied to How To Check The Auth In Controller Constructor In Laravel 5.8 Or Above

when the controller calls it skip the middleware so i want to resolve it.

if Auth::user()->role == 'user' { Admin secret key }

else { user secret key

}

Activity icon

Replied to How To Check The Auth In Controller Constructor In Laravel 5.8 Or Above

public function __construct() { // parent::__construct(); /** setup PayPal api context **/

  $this->middleware(function ($request, $next) {
    $this->user = Auth::user();
    dd('s');
    return $next($request);
  });
    dd('Out of middlewear');

    $paypal_conf = \Config::get('paypal');
    $this->_api_context = new ApiContext(new OAuthTokenCredential($paypal_conf['client_id'], $paypal_conf['secret']));
    $this->_api_context->setConfig($paypal_conf['settings']);
}
Activity icon

Replied to How To Check The Auth In Controller Constructor In Laravel 5.8 Or Above

because i want to pass dynamic client and secret key for paypal.

if Auth::user()->role == 'user' { Admin secret key }

else { user secret key

}

Activity icon

Replied to How To Check The Auth In Controller Constructor In Laravel 5.8 Or Above

@snapey I have used already but the constractor skips this middleware.

$this->middleware(function ($request, $next) { $this->projects = Auth::user()->projects;

        return $next($request);
    });
Activity icon

Started a new Conversation How To Check The Auth In Controller Constructor In Laravel 5.8 Or Above

I have facing Auth::user()->role is null in the constructor.

I have used it but its not working

$this->middleware(function ($request, $next) { $this->user = auth()->user();

return $next($request);

});

I need help to sort out it how I can get it.

Activity icon

Replied to How To Get Users From Table Expect 2 Specific User

you can get your user email and user whereNotIn.

Jan
20
1 month ago
Activity icon

Started a new Conversation How To Pass The Value From Controller To Config Folder File Like Paypal.php.

I need help to pass the value from controller to selected file in config folder like paypal.php ?

Activity icon

Replied to It Is Possible To Pass The Value Of .env From DB Using Controller In Larvel

@nakov I know but its client requirements. He wants to get dynamic keys.

Jan
18
1 month ago
Activity icon

Started a new Conversation It Is Possible To Pass The Value Of .env From DB Using Controller In Larvel

I want to configure the .env according to each user ids. if it is possible then how can I pass the value of DB to .env using a controller.

Jan
16
1 month ago
Activity icon

Started a new Conversation How To Withdraw And Deposit In PayPal Please Suggest Any Package

Hello everyone. I need a package or code for deposit and withdraw an amount from PayPal. Please suggest a good package or code for both side facilities.

Dec
31
1 month ago
Activity icon

Started a new Conversation Need Code To Expire PDF Download Link After 10 Mints For User.

I need a solution to expire the link after 10 mint.

Explanation :

Like a user pay for download pdf and I want to expire the download link after 10 mint. so how can I program it?

Activity icon

Replied to How To Make Html View To PDF And Share On Mail In LARAVEL.

I have done on my self. Thanks to all.

Dec
24
2 months ago
Activity icon

Started a new Conversation How To Make Html View To PDF And Share On Mail In LARAVEL.

I want to convert my HTML view to PDF and store it in DB as a pdf and then send it with mail. please, anyone, help.

Activity icon

Awarded Best Reply on Send Mail Using Selected Template Store In Db

I have done it with my self.

Activity icon

Replied to Send Mail Using Selected Template Store In Db

I have done it with my self.

Dec
06
2 months ago
Activity icon

Replied to Error In With()

@nakov this is also showing undefined variable.

    session()->put('question_counter' , $count_question);
Activity icon

Replied to Error In With()

@nakov this is also showing undefined error

    return redirect()->back()->with('message', 'Question is Save successfully')->with(compact('count_question'));
Activity icon

Replied to Error In With()

@nakov variable undefined error.

I used this variable in view

$count_question this showing unknown variable.

Activity icon

Replied to Error In With()

Undefined variable: count_question (View: C:\xampp\htdocs\medely\resources\views\facility\facility_types\facility_type_questions.blade.php) Previous exceptions

Activity icon

Replied to Error In With()

it is possible?

return redirect()->back()->with('message', 'Question is Save successfully' . compact('count_question'));

Activity icon

Started a new Conversation Error In With()

I want to send the variable using with()

example: I want to pass a variable with it.

    return redirect()->back()->with('message', 'Question is Save successfully');

?

Dec
04
2 months ago
Activity icon

Started a new Conversation Send Mail Using Selected Template Store In Db

I want to send a confirmation e-mail using laravel. The laravel Mail::send() function only seems to accept a path to a file on the system. The problem is that my email templates are stored in the database and not in a file on the system.

How can I pass plain content to the email?

Example:

$content = "Hi,welcome user!";

Mail::send($content,$data,function(){});

Dec
01
2 months ago
Activity icon

Started a new Conversation I Want To Dell Picture From Folder In Public Directory Using Laravel

\File::delete(public_path().'/content-images/news/',$del_solution->news_img);

what's happening it not working i don't know why please make it correct

Nov
29
2 months ago
Activity icon

Started a new Conversation I Have A Value Like $899.993034. I Want To Round It Max To Digit After Point.

I have a value like $899.993034. I want to round it max to digit after point.

What is the default function of laravel for round the value.

Nov
27
2 months ago
Activity icon

Awarded Best Reply on How To Get The Data From DB By Date.

Thanks for all... I have done on my end..

    $deposit = Deposit::where('user_id' , Auth::user()->id)->whereMonth('created_at' , $date[0])
        ->whereYear('created_at' , $date[1])->orderBy('created_at' , 'desc')->get();
Activity icon

Replied to How To Get The Data From DB By Date.

Thanks for all... I have done on my end..

    $deposit = Deposit::where('user_id' , Auth::user()->id)->whereMonth('created_at' , $date[0])
        ->whereYear('created_at' , $date[1])->orderBy('created_at' , 'desc')->get();
Activity icon

Started a new Conversation How To Get The Data From DB By Date.

I have a problem I want to get the data from data base with the selected date of user......

and i have found just month and year from user side....

so like user enter the date like "4-2019" 4 is month and 2019 is year.

so how i can get the data from database using where()............ and map on column created_at

if you have any confusion to understand the question then i m here.

Thanks

Nov
21
3 months ago
Activity icon

Replied to How To Add Input Field Using JS ?

plain js and jquery

Activity icon

Started a new Conversation How To Add Input Field Using JS ?

I am 2 input fields.

i want to add 2 more but using js

like i add click button on view when i click on view the 2 more add and when i click on delete icon the remove both.

it's all using js.

Thanks.

Nov
18
3 months ago
Activity icon

Started a new Conversation Issue In Empty() Method

foreach ($request['professional_ehr'] as $pro) { if(!empty($user_ehr)) { dd('if is on'); Userehr::create([ 'user_id' => Auth::user()->id, 'ehr_id' =>$pro , 'status' => 1, ]); } else { dd('else is on'); foreach($user_ehr as $user_val){ if($pro != $user_val->ehr_id) { Userehr::create([ 'user_id' => Auth::user()->id, 'ehr_id' =>$pro , 'status' => 1, ]); } } } }

"in both situation $user_ehr" empty or not in both situation if is running not in else........

I want if the $user_ehr is empty the run else otherwise run if.

and the $user_ehr is array of database...

basically i want if the table is empty then create the new column otherwise changing in existing column.

Activity icon

Replied to Help In Optimize Solution Of DB CURD Operation.

but i have view pic how can i attach my pic with it ? it is possible to attach picture with it ? .

Activity icon

Replied to Help In Optimize Solution Of DB CURD Operation.

exactly i done it for store but in sec time the stored data is display on selected field and i removed the selected data and select new.

so this time the current data is update data and update data consist on some previous value and new value so this time i want to run again same controller and implement 3 situation

so the foreach() first itration the if check this data already have the update if not then create if the exsisiting data in data base and new data not matched then delete.

Activity icon

Started a new Conversation Help In Optimize Solution Of DB CURD Operation.

I have a table ' User_ehrs ' .

and i have multi select tag in which i select multiple value.

and i have one controller i want to perform delete update create in one controller due to multi select option.

so

first i select multiple option and then store in database that is fine.

but when again i select multipel option and remove any one then stored after that i need 3 if whose handle the 3 situation like if the selected value is not in db the run create. if the value is already in db then run update method and the last one is if the if the currently user not selected already stored in db table then run the delete method.

Laracast have no option for picture i will try to write all problem.

but the picture is more clear my problem..

Thanks in advance for help.

Nov
16
3 months ago
Activity icon

Started a new Conversation How To Select Multiple Option Of Select Tag Using Js Or Jquery ?

I want to make multi select option using js or jquery. please help me for it. Thanks

Nov
14
3 months ago
Activity icon

Started a new Conversation Fetch Data Using Json Via Link.

Need help. How to use link to fetch the data in json format and show in blade file.

Nov
12
3 months ago
Activity icon

Awarded Best Reply on Pass Image From Img Tage To Model Via ID Using Java Script

I have done my self Thanks for all.

Activity icon

Replied to Pass Image From Img Tage To Model Via ID Using Java Script

I have done my self Thanks for all.

Activity icon

Started a new Conversation Pass Image From Img Tage To Model Via ID Using Java Script

I have store images in my database i want to display it in bootstrap model using js.

how can i do it using id.

Like: img src="{{asset(images/$img->front-img)}}" id="front_picture" style="display:none"

i am not sure about it.

Please help me about it. How i can pass the image using id and display in model.

Nov
11
3 months ago
Activity icon

Replied to Password & Confirm Password Error

$rules=array( 'pass'=>'required', 'cpass'=>'required|same:password', ); $message= array( define message for it after that you clear you'r error. );