Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

aGandrass

aGandrass

Member Since 3 Years Ago

Spain, Mallorca

Experience Points
8,800
Total
Experience

1,200 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
79
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 2
8,800 XP
Jul
20
4 months ago
Activity icon

Replied to Laravel Auth - 500 Server Error

Thanks tykus. Unfortunately, I have no typo in the code. Only here in the description. If I look into my forge Laravel log I get to see this: ls: cannot access '/home/forge/XXX.XXX.com/storage/logs/*.log': No such file or directory

I have further notices that it only happens when the controller sends to another view. Otherwise I won't get the error message.

Activity icon

Started a new Conversation Laravel Auth - 500 Server Error

Hello, I have created a new Controller with the public function __contruct which works fine in development environment. But when I upload my app onto my Server and trying to access the new controller I get the error message 500 server error.

Does anybody have an idea? Thank you very much Andre

Jul
19
4 months ago
Activity icon

Replied to Cannot Install Github Repository In Laravel Forge

Yes, I double checked that. I even tried to install another package and got the same error message. So I think it should be that I do not have a Forge SSH Key inserted into Github. But as I try to do that I get the message that the key is already in use.

Jul
18
4 months ago
Activity icon

Started a new Conversation Cannot Install Github Repository In Laravel Forge

Hi, I am trying to install my GitHub repository into Laravel Forge. I get the following error message:

github.com:22 SSH-2.0-babeld-9389d978

github.com:22 SSH-2.0-babeld-9389d978

github.com:22 SSH-2.0-babeld-9389d978

Cloning into 'testhotel.payrelaxx.com'... ERROR: Repository not found. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I am using Github for a while now but today it didn't work. So I deleted my SSH Keys on Github to set a new one. But by entering the SSH key taken from Forge into Github I get the info that the SSH Key has already being used. How can I set the SSH Key again?

Thank you Andre

Jun
16
5 months ago
Activity icon

Started a new Conversation Remove Quotation Marks From Eloquent Collection - Chartjs

Hi, I am trying to implement chartjs but I am not able to parse the values to my graph view.

That's my controller: $successfullypaidbyMonth = Newpayment::where('paymentstatus', 'successfully paid') ->select(\DB::raw('SUM(total) as total_amount, MONTH(paymentdate) as month')) ->groupBy(\DB::raw('MONTH(paymentdate) DESC')) ->pluck('total_amount', 'month'); return view('maindashboard', compact('successfullypaidbyMonth');

Here I am trying to get the data: var context = document.getElementById('graph').getContext('2d'); var myChart = new Chart(context, { type: 'bar', data: { labels: {{ $successfullypaidbyMonth->keys() }}, datasets: [{ data: {{ $successfullypaidbyMonth->values() }}, backgroundColor: [ 'rgba(255, 99, 132, 0.2)', 'rgba(54, 162, 235, 0.2)', 'rgba(75, 192, 192, 0.2)' ], }] } })

Unfortunately, I do not get the values. It seems like that it is because the values have quotation marks. ^ Illuminate\Support\Collection {#1229 ▼ #items: array:2 [▼ 6 => "2600.00" 4 => "5300.00" ] }

Does anybody know what to do? Thank you very much Andre

May
27
6 months ago
Activity icon

Replied to How To Send Data To Pusher

Thank you!

Activity icon

Replied to How To Send Data To Pusher

Thank you for your reply. But how do I actually pass the data for example the $sg_payment_id through the dispatch method to my PaymentStatusUpdate Event?

Activity icon

Started a new Conversation How To Send Data To Pusher

Hi, it is my first time working with pusher and I have a little problem. Here is my Webhooks Controller:

    $logbook = Logbook::create([
      'strp_paymentuniqid' => $sg_payment_id,
      'sg_message_id'      => $sg_message_id,
      'sg_event'           => $sg_event,
      'sg_category'        => $sg_category,
      'sg_event_id'        => $sg_event_id,
      'sg_response'        => $sg_response,
      'sg_reason'          => $sg_reason
    ]);
    Newpayment::where('paymentuniqid', $sg_payment_id)
      ->update ([
          'paymentstatus' => $sg_event,
      ]);
    PaymentStatusUpdate::dispatch();
  }

  http_response_code(200);

And that is my PaymentStatusUpdate Event: class PaymentStatusUpdate implements ShouldBroadcast { use Dispatchable, InteractsWithSockets, SerializesModels; public $update = "Test"; /** * Create a new event instance. * * @return void */ public function __construct() { }

/**
 * Get the channels the event should broadcast on.
 *
 * @return \Illuminate\Broadcasting\Channel|array
 */
public function broadcastOn()
{
  return ['paymentstatus'];
    // return new PrivateChannel('channel-name');
}

}

If I check the Pusher Console I do get the message update = Test. Ho do I get the data from my Webhooks Controller passed to Pusher? Thank you all