MoeSaid

MoeSaid

Member Since 1 Year Ago

Experience Points
4,150
Total
Experience

850 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
27
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
4,150 XP
Dec
01
1 week ago
Activity icon

Replied to How To Listen To The Subscription Model Events ?

fond it, going throw the billing lifecycle it's pretty clear now which webhooks stripe use in every step.

https://stripe.com/docs/billing/lifecycle

Activity icon

Replied to How To Listen To The Subscription Model Events ?

@nakov thanks for spotlighting that, working with stripe webhooks now seems to be fun,

I am a bit confused tho when it comes the stripe webhooks named as on customer.subscription.created

https://stripe.com/docs/api/events/types#event_types-customer.subscription.created

didn't find something related to renewing or so but thought about using the invoice hook as every new subscription payment done stripe make an invoice for,

what do you think is the best hook to use if I am looking for the subscription renew event (2nd, 3rd, 4th payment, etc.)

Activity icon

Replied to How To Listen To The Subscription Model Events ?

@nakov the thing is not that clear for me yet, when the user subscribes and then his membership renewed automatically without user interfere, do stripe notify my server?

Activity icon

Replied to How To Listen To The Subscription Model Events ?

am just trying to come up with the logic to use and the best practices to do so.

what would you do in this situation?

Activity icon

Started a new Conversation How To Listen To The Subscription Model Events ?

what's the way that I can listen to the subscription model using Cashier with stripe webhooks?

pretty much I want to do something whenever the user paying the second + bill, as sending notification or so.

Nov
30
1 week ago
Activity icon

Replied to Way To Insert A New Record, With Cashier Subscription?

aha exactly, am trying to see how can I listen to the subscribe charge event, no luck so far

Activity icon

Started a new Conversation Way To Insert A New Record, With Cashier Subscription?

I am searching the web today to see if I can somehow be able to add a new record to some tables whenever the user memberships renew.

let's say we have an app have (users, notifications, subscriptions ) tabes.

when he subscribe the first time, I can add a new record in notification table within the same controller, but what if I want every time he renews his subscription a new instance can be added in the notification table?

Nov
20
2 weeks ago
Activity icon

Started a new Conversation 429 | Too Many Requests

getting that error when I am trying to download some videos from Laracast series , dose anyone had same issue before?

Oct
29
1 month ago
Activity icon

Replied to Flexible Subscription Plan With Stripe

that how you make a one-time charge, am talking about using casher normally but instead of using a fixed plans i wanna see if can somehow have fixability with the plan price

Activity icon

Started a new Conversation Flexible Subscription Plan With Stripe

Hi mates,

so what's the best practise of having a custom build plan price, let's say that I have different plans with different rates $ 100, $ 200, $ 300, $400 and then I do have add-ons that can add on the price with no limitation how that can be done?

is there any way that the price plan can be handled as a variable?

Sep
03
3 months ago
Activity icon

Started a new Conversation Adding Multiple Foreign Keys To A Single Column

Hi guys, so am trying to figure out how this could work,

I wanna assign multiple foreign keys to a single column and reference it based on the model and use it normally in relations.

for example, let us say that i have (post , comment , video etc...) as models and i have a like table, i don't wanna create like table for each and every one of them i wanna create one like table and use it for all .

how can i do such a thing migration wise?

Aug
13
3 months ago
Activity icon

Replied to Migration Does Not Register In Order

i know that, that's the confusing part, the tables are already ordered with the right order according to the timestamp but somehow after migration the order get missed up .

Activity icon

Replied to Migration Does Not Register In Order

Nah, I export and import from my local database to try to test it on any other life databases, the thing is it exports & imports in the alphabetical order, which create issues when you import,

pretty much I get hit in the face with the SQL err

#1215 - Cannot add foreign key constraint 
Activity icon

Started a new Conversation Migration Does Not Register In Order

hi, guys, i have been working on this issue for two days now,

simply its a Foreign Key Issue with migration order,

when I run the migration, it runs as it supposed to, with the timestamp order as when it has been created, somehow tables never register in the database in the same order that they get migrated with,

some tables are relay on to reference Foreign Key to, works fine on localhost but when i export, tables get exported with the database order which starts to create an issue when I imported to any other database.

6WTnh.png 6WIoj.png

Aug
12
3 months ago
Activity icon

Replied to Foreign Key Issue

handling references and checks for cascades on each case on its own will be hustling,

The second solution seems to be more fitting, but how tho ? how can i add all the foreign keys in just one migration file?

Aug
10
3 months ago
Activity icon

Replied to Foreign Key Issue

foreign key set up on profiles references to the users

Activity icon

Started a new Conversation Foreign Key Issue

so I know that SQL databases aren't forgiving tell it comes to foreign keys, my issues are for somehow when I migrate the tables don't migrate in order,

for example i have users table created first and then profiles table comes after the users table , but when i migrate some how the profiles table migrate before the users table which creat issues with the foreign key .

I read about renaming the tables file as changing timestamp, so they get in order, but the files are already in order when it comes to timestamp.

whats the best practice to fix such an issue?

Aug
05
4 months ago
Activity icon

Replied to Best Practice To Preventing Admin Account Making A Requests!!

this a pretty go way to go with,

how can I deduct the post and store methods in the middleware?

all that I can think of is detects the environment and redirect back, which we're putting a whiled middleware for the whole controller the get and the post methods.

Activity icon

Started a new Conversation Best Practice To Preventing Admin Account Making A Requests!!

Hi mates,

so am working on a couple of projects that require me to put demo version on the market to let the potential customer be able to check it out , however when they do normally they use the admin able to see what can they do with it , which may miss up the dummy content I put to show up the project .

the goal ware to prevent any (post, patch, put ) request from the admin panel, I have done that with javascript pretty much looking for any form on the page and reset the default action, it is not efficient since it can be disabled from the browser.

another way was in my mine is setting up helper function looking for specific data in Db, for example, a column value with DEMO or LIVE with return false or true and call this function on every request in admin controller which is more secure but a lot of work has to be done.

what's in your opinion would be a better way to go with?