Ziroy

Ziroy

Member Since 5 Months Ago

Experience Points
330
Total
Experience

4,670 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
330 XP
May
17
4 months ago
Activity icon

Started a new Conversation Listen For Broadcast Leave In Backend

Is there any way to listen for a user leaving in the backend? Just like the join method for channels but for leaving?

May
10
4 months ago
Activity icon

Replied to Location Of Crud Controllers

You can do that with the artisan command. It will default from the Http\Controllers folder.

php artisan make:controller Subfolder1/Subfolder2/Controller
Activity icon

Awarded Best Reply on Echo Cannot Subscribe To Notifications

The reason in the end was actually that I changed broadcasting channels for the notification, but since this project is running on the server I didn't restart the queues. Thus, because they store the application state in memory, it got sent out to the old channel still and I was in the frontend listening to the new channel. Quite nasty that you have to always restart your worker. Nevertheless, thanks for the advises @snake03

Activity icon

Replied to Echo Cannot Subscribe To Notifications

The reason in the end was actually that I changed broadcasting channels for the notification, but since this project is running on the server I didn't restart the queues. Thus, because they store the application state in memory, it got sent out to the old channel still and I was in the frontend listening to the new channel. Quite nasty that you have to always restart your worker. Nevertheless, thanks for the advises @snake03

May
07
4 months ago
Activity icon

Started a new Conversation Echo Cannot Subscribe To Notifications

When trying to subscribe to notifications on a given channel, no message is ever being received. In the backend however everything is working fine and also on the laravel-echo-server the event is being dispatched. It, however, never shows in the frontend. Is anyone else experiencing the same issue?

Apr
21
5 months ago
Activity icon

Replied to Javascript: Datepicker Unable To Lock Previous Dates

Your min Date should match a Date format. If you want all days previous to now to be disabled use following Code:

minDate: new Date(),

You can always provide a different Date:

minDate: new Date("04/20/2020")

Let me know if it worked.

Activity icon

Replied to Secure Authentication From First Party Mobile App

@bugsysha That did the trick. I don't want to bother you a lot more, but how exactly would I hash the token or whatsoever on the client side and furthermore verify it on the server, since the PKCE is handled by Laravel passport? Thanks in advance.

Activity icon

Replied to Secure Authentication From First Party Mobile App

@bugsysha How do I get to the request origin in laravel?

Activity icon

Replied to Cannot Run Php Artisan Migrate Commands. Error: SQLSTATE[HY000] [1049]

It appears that mysql cannot resolve the database named testproject2. Are you sure that you have created one?

Activity icon

Started a new Conversation Secure Authentication From First Party Mobile App

So to begin: I have a Laravel (passport) powered api, which allows both my SPA and my mobile application to access the necessary resources. My problem is that I am not confident on how to securely exchange and store the generated token. The thing is: How can I differentiate between a third party and a first party client and thus allow the first party client to for instance change the users password etc.

I exchange an api token via the PKCE implicit grant, which is according to Oauth2 the best practice way of doing such, but that still requires me to store the client ID within the code of the native app. If someone were to dig into the code and find the client ID, wouldn't he be able to perform the same requests (change password), if I were to limit it to a certain Client ID?

I mean, there has to be a way, since major applications like twitter, discord and facebook allow their users to update their password from their mobile app.

In the end, the ultimate question is how to differ between a first and third party client when handling the api request?

Apr
04
5 months ago
Activity icon

Replied to How To Safely Update Users From Api

That is exactly what I needed. Thank's a lot!

Activity icon

Replied to How To Safely Update Users From Api

How does that solve the issue with other 3rd party applications? They essentially use the same api. So how does generating a new access token every hour help in that occasion? I still have the same client id, which means that anybody who gets a hand on that could potentially change a users password. Nor do I see how to distinguish between a first party application and a third party application. This might just be my stupidity, but you are not yet making sense to me. Sry :(

Activity icon

Started a new Conversation How To Safely Update Users From Api

I've been wondering what might be the best practice way to update users from the frontend. I have currently set up a react frontend and wanted to allow a user to update his profile on that page, but asynchronously. This includes their password. Since I don't want any other 3rd party api consumer to update a users password, I need a way to check whether the request is coming from my app or my website. Is there any way I can do this? I am also not sure about how secure it is to check whether the request comes from my client id, since that one could potentially be stolen from the source code, right?