kaushal

kaushal

php web devloper at Rajkot

Member Since 1 Year Ago

Rajkot

Experience Points
2,590
Total
Experience

2,410 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 your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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
2,590 XP
Oct
08
2 weeks ago
Activity icon

Replied to Can Anyone Give Example When Observer Is Needed?

function UserValidation(){ var is_form_have_to_submit = true;

	var obj_profile_picutre = $("#profile_picutre");
	
	var obj_profile_picutre_derror_msg = $("#profile_picutre_derror_msg");
	
	
	obj_profile_picutre_derror_msg.html("");
	
	if(check_single_file_required(obj_profile_picutre.get(0))){
		obj_profile_picutre_derror_msg.html("Please select profile picutre");
		is_form_have_to_submit = false;
	}

	if(obj_profile_picutre.val() != ""){
		valid_content_type  = ["image/gif", "image/jpeg", "image/jpg", "image/pjpeg","image/x-png","image/png"];
		is_valid_type = valid_content_type.indexOf(obj_profile_picutre.get(0).files[0].type);
		if(is_valid_type == -1){
			obj_profile_picutre_derror_msg.html("You are only allowed to upload jpg,jpeg,png,gif files only");
			is_form_have_to_submit = false;
		}

	}

	return is_form_have_to_submit;
}
Jun
09
4 months ago
Activity icon

Started a new Conversation Can Anyone Give Example When Observer Is Needed?

Can anyone give example when observer is needed?

Jun
08
4 months ago
Activity icon

Started a new Conversation Laravel Session Is Not Available In Parent Window Controller

Folowing two lines are executed when child window is load Session(['success'=>'User is successfully created.']); echo "parent.$.colorbox.close();window.parent.location.reload();";

Now when i am trying to get echo session('success'); die; in parent window controller then it prints nothing Can any one help me why this happen?

Jun
06
4 months ago
Activity icon

Started a new Conversation Which Is Proper Way To A Implement Laravel Authentication? Laravel Default Auth OR Custom Logic?

Which is proper way to a implement laravel authentication? Laravel default auth OR custom logic?

May
19
5 months ago
Activity icon

Started a new Conversation For New Website Which Version Of Laravel Is Better 6 Or 7?

For new website which version of laravel is better 6 or 7?

May
17
5 months ago
Activity icon

Replied to Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

You mean if customer creates order for rest-1 then i have to set dynamically STRIPE_SECRET of rest-1 owner' stripe account.so i have to get STRIPE_SECRET of all the restaurant owner in to my db right?

Activity icon

Replied to Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

@drewdan one last question I have created one following stripe demo that take payment to only single merchant. see following example

public function stripePost(Request $request)
    {
        Stripe\Stripe::setApiKey(env('STRIPE_SECRET'));

        $customer = \Stripe\Customer::create(array(
            'name' => 'test',
            'description' => 'test description',
            'email' => '[email protected]',
            'source' => $request->stripeToken,
            "name" => "kaushal",
            "address" => ["city" => "Rajkot", "country" => "india", "line1" => "Near Bhaktinagar", "line2" => "Near Makkam chowk", "postal_code" =>"360001", "state" => "Gujrat"]
        ));

        $orderID = strtoupper(str_replace('.','',uniqid('', true)));

        Stripe\Charge::create ([
            "customer" => $customer->id,
            "amount" => 100 * 10,
            "currency" => "GBP",
            //"source" => $request->stripeToken,
            "description" => "Stripe Demo App",
            'metadata' => array(
                'order_id' => $orderID
            )
        ]);

        Session::flash('success', 'Payment successful!');

        return back();
    }

But now what if site needs customer have to pay different merchant according to his oders. Say like suppose my site have 3 restorent named with rest-1,rest-2,rest-3. so if cusotmer make order from rest-1, then payment will transfer in rest-1 merchant account and if order from rest-2 then customer payment will transer in rest-2 owner account and same for other restaurant.Can you suggest what should i change on above code? Should i do stripe secret dynamic?

Activity icon

Replied to Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

@drewdan stripe accepts payments in cent. And 131 cent = 1 GBP. So if i need to receive payment of 10 GBP then i should write following way right?

Stripe\Charge::create ([
            "customer" => $customer->id,
            "amount" => 131 * 10,
            "currency" => "GBP",
            //"source" => $request->stripeToken,
            "description" => "Stripe Demo App",
            'metadata' => array(
                'order_id' => $orderID
            )
        ]);
May
15
5 months ago
Activity icon

Replied to Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

looking for stripe.js. By the way which is better according to you stripe.js or redirect on stripe website to take payment. how laravel cashier is for my requirement?

Activity icon

Replied to Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

yes i am looking to take credit card details

Activity icon

Started a new Conversation Which Stripe Method I Have To Use For Eccommerce Cart Items Checkout?

Which stripe method i have to use for eccommerce cart items checkout?

May
03
5 months ago
Activity icon

Started a new Conversation How Can I Set Facebook Callback Url Withing Single Fb App For Local Beta And Live

How can i set facebook callback url withing single fb app for local beta and live

Apr
27
6 months ago
Activity icon

Started a new Conversation For Select Query Which Is Better Eloquent Query Or Db Query? And Why?

For select query which is better eloquent query or db query? and why?

Apr
26
6 months ago
Activity icon

Started a new Conversation What Is The Use Of APP_ENV=local And APP_DEBUG=true In .env File

How it is diffrentiate in local and live??

Activity icon

Started a new Conversation How To Handle Failed Jobs In Laravel

How to handle failed jobs in laravel