rider

rider

Member Since 2 Years Ago

Experience Points
1,290
Total
Experience

3,710 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,290 XP
Sep
10
2 months ago
Activity icon

Replied to Activecampaign Webhook With Laravel

problem solved @resin , i have cleared route and cache once again working fine. always iam doing this kind of mistakes. Thanks for the reply..

Activity icon

Replied to Activecampaign Webhook With Laravel

Thanks for the reply @resin my route look like

            Route::post('leads/webhookreceiver', '[email protected]_receiver'); 

and in VerifyCsrfToken i have written as

                protected $except = [ 'leads/*'];
Activity icon

Started a new Conversation Activecampaign Webhook With Laravel

iam trying to get data from webhook while triggered at the time of contact updated in Activecampaign, its simply shows

            error sending webhook data response 500

I have received the value in post method as in laravel

            $result = $request->all();

My url is in http is there any problem with that.. can anyone please help me to solve this one. I think http works fine because of different error shown before the error code 500

Sep
09
2 months ago
Activity icon

Replied to Laravel

it seems your suggestion will help for me, thanks for the reply @mikenewbuild ..

Activity icon

Replied to Laravel

Thanks for the reply Mikenewbuild, i have referred Appending-Values-to-json, i don't have any particular model for notification, if there means i can simply write [append] array in model, in my case iam not having any particular model file for notification, how can i attach an new attribute to this json..

Sep
06
2 months ago
Activity icon

Started a new Conversation Laravel

Iam trying to attach a new value in the API response

               $notifications = Auth::user()->notifications()->paginate(env('RECORDS_PER_PAGE'));
               return $notifications;

Now i need to attach module_url as a new param with the existing response the above response looks like

                {
                    "current_page": 1,
                 "data": [
                     {
                     "id": "xxxxxxxxxxxxxxxxxxxxxxx",
                        "type": "App\Notifications\ActivityReminderNotification",
                     "notifiable_type": "App\Models\User",
                        "notifiable_id": "xxxxx",
                     "data": {
                            "module": "activities",
                            "module_id": "xxxxx",
                            "message": "Hi there, an activity has been overdue"
                        },
                     "read_at": null,
                     "created_at": "2019-08-27 18:12:29",
                        "updated_at": "2019-08-27 18:12:29"
                     },
                     {
                     "id": "xxxxxxxxxxxxxxxxxxxxxxxx",
                     "type": "App\Notifications\ActivityReminderNotification",
                        "notifiable_type": "App\Models\User",
                        "notifiable_id": "xxxxx",
                    "data": {
                        "module": "activities",
                         "module_id": "xxxxx",
                          "message": "Hi there, an activity has been overdue"
                        },
                        "read_at": null,
                        "created_at": "2019-08-27 16:46:54",
                        "updated_at": "2019-08-27 16:46:54"
                    }
                ],
                "first_page_url": "http://domain_url/notifications?page=1",
             "from": 1,
             "last_page": 1,
                "last_page_url": "http://domain_url/notifications?page=1",
                "next_page_url": null,
                "path": "http://domain_url/notifications",
                "per_page": "10",
                "prev_page_url": null,
                "to": 2,
                "total": 2
        }

How can i attach the module_url if i use foreach and split as array then i can't get the pagination for this, can anyone please help me to solve this one.

Sep
03
2 months ago
Activity icon

Replied to DateTime

Hi nolros Thanks for the reply, working fine, showing correct time as in the database..

        2019-08-30T14:00:27+0530
Activity icon

Replied to DateTime

Thanks for the reply Bobbybouwmann, i have set timezone as

'timezone' => 'Asia/Kolkata'

Activity icon

Started a new Conversation DateTime

Trying to parse datetime to toIso8601ZuluString()

        return Carbon::parse($value)->timezone(config('app.timezone'))->toIso8601ZuluString();

In my database datetime value be 2019-08-30 14:00:27 while parsing to this format it shows 5 hrs difference

                2019-08-30T08:30:27Z 

i need to display exact time as stored in database, can anyone please help me to sort it out..

Aug
28
2 months ago
Activity icon

Replied to Laravel Timestamp

yes i have done that, now iam writing setRemindAtAtribute function in model, once done i will update you.. thanks for the reply Tykus..

Activity icon

Started a new Conversation Laravel Timestamp

Hi I have inserting a record with empty value for datetime field, its saved as

        remind_at: 0000-00-00 00:00:00 

once i retrive the same record current timestamp is displaying,

        remind_at: 2019-08-28T13:07:09Z

i need to display as empty, what i need to do to make display as empty value, can anyone please help me to sort it out..

Aug
26
2 months ago
Activity icon

Replied to Laravel Notification

Thanks for your reply Florianhusquinet, i have solved, what i have done instead of passing the instance i have passed as array to notication file, now it's working fine thanks for the contribution, hope i will catch you on my next Question..

Activity icon

Started a new Conversation Laravel Notification

Iam trying to send an Notification for user Activity Reminder, i have set my template and sending to ActivityReminderNotification.php, then i stored the parameters to $this variable but the values are not sotred simply showing Array To String Conversion, can anyone please help me to sort it out..

Calling Notification from controller:

      Notification::send($value['assigned_to'], new ActivityReminderNotification($activity_instance,$otherData));

ActivityReminderNotification.php

    protected $activity;
    protected $otherData;
    public function __construct(Activity $activity, $otherData)
{   
    $this->activity = $activity;
    $this->otherData = $otherData;
    // echo"<pre>"; print_R($this->otherData); exit;

}

while printing $this->$otherData and $this->$activity shows Array to string conversion error

Aug
14
3 months ago
Activity icon

Replied to ActiveCampaign

yes MangleRule ,Iam working on it, thanks for your reply

Activity icon

Started a new Conversation ActiveCampaign

I have installed ghattrell/activecampaign ActiveCampaign but I have no idea on how to call Api functions using the installed package, even though i googled but i can't find any useful links, can any one please help me to sort it out.. link i have referred

        https://github.com/ghattrell/activecampaign
Jul
12
4 months ago
Activity icon

Replied to Redirection In Laravel

works fine now iam trying to change the "past due" invoice to "void" stage and struggling with that, code looks like, invoice is in past due while checked with stripe account

$url ="https://api.stripe.com/v1/invoices/
    in_1EuGWXXXXXXXXXXXXXX/void \
    -u sk_test_XXXXXXXXXXXXXX \
    -X";

    // $url ="https://api.stripe.com/v1/customers?limit=3";

    $ch = curl_init(); //open connection
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        'Authorization: Bearer sk_test_XXXXXXXXXXXXXXXXXXX',
    ]);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13");
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_TIMEOUT, 180);
    $result_count = curl_exec($ch); //execute post

    echo"<pre>";
    print_r($result_count);
    exit;
Activity icon

Replied to Stripe CURL Request

This is the CURL now iam trying as per your example but it remains the same, and now i have trying to make an invoice to "past due" stage "void" stage still iam receiving empty result while i check the invoice in stripe it doesn't change

$url ="https://api.stripe.com/v1/invoices/
    in_1EuGWwI0fZrJ7D07tPYOAOHM/void \
    -u sk_test_3iIP8u46agjTQ2vPau9oAji5: \
    -X";

   $ch = curl_init(); //open connection
   curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13");
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
   curl_setopt($ch, CURLOPT_TIMEOUT, 180);
   $result_count = curl_exec($ch); //execute post
   echo"<pre>";
   print_r($result_count);
   exit;
Activity icon

Started a new Conversation Stripe CURL Request

Iam trying to make CURL request to get customer from stripe not using any library, iam receiving empty result, can anyone please help me to solve this one, curl looks like

 $url ="https://api.stripe.com/v1/customers?limit=3 \
    -u sk_test_3iIP8u46agjTQ2vPau9oAji5: \
    -G";

$ch = curl_init(); //open connection
curl_setopt($ch, CURLOPT_URL, $url);
$result_count = curl_exec($ch); //execute post

echo"<pre>";
print_r($result_count);
exit;
Activity icon

Replied to Redirection In Laravel

Iam trying to make CURL request to get customer from stripe not using any library, iam receiving empty result, can anyone please help me to solve this one, curl looks like

    $url ="https://api.stripe.com/v1/customers?limit=3 \
    -u sk_test_3iIP8u46agjTQ2vPau9oAji5: \
    -G";


    $ch = curl_init(); //open connection
   curl_setopt($ch, CURLOPT_URL, $url);
   $result_count = curl_exec($ch); //execute post
   echo"<pre>";
   print_r($result_count);
   exit;
Activity icon

Replied to Redirection In Laravel

Thanks for your help Mr.Spaan

Activity icon

Replied to Redirection In Laravel

Thank you Mr.Spaan.. and sorry to ask again, please change the second route group look like below, once again thanks for your reply.

Route::domain('www.domain.com')->group(function () {

Jul
06
4 months ago
Activity icon

Replied to Redirection In Laravel

Hi Spaan can you please change the domain name as shown in my post , your idea has worked, thanks for your reply.

Jul
05
4 months ago
Activity icon

Replied to Redirection In Laravel

Hi khorram thanks for the reply..

Activity icon

Replied to Redirection In Laravel

Hi Spaan can you please change the domain name as shown in my post , your idea has worked, thanks for your reply.

Activity icon

Started a new Conversation Redirection In Laravel

Iam working in a project using Laravel and Angular 7, and trying to make the payment using stripe

https://example.domain.com/admin - will goes to angular 7

we are trying the payment URL like - https://payment.domain.com configured in route look like

$domain = parse_url(request()->root())['host']; 
if($domain=='payments.domain.com'){
   Route::get('/', function () {
 return 'welcome'; });

Route::get('payment/{id}', '[email protected]');
Route::post('paymentStripe', '[email protected]_payment');
Route::get('paymentFails', '[email protected]');

} else {
    remaining routes declared here
} 

if i hit http://payment.domain.com/admin it's directly going to angular(instead of https)

/admin is configured in http://example.domain.com/admin, i don't have any idea why it's directs through payment URL, can anyone please help us to solve this issue.