giorg

giorg

Member Since 1 Year Ago

Experience Points
3,310
Total
Experience

1,690 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
6
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
3,310 XP
Feb
27
4 months ago
Activity icon

Replied to Best Approach

hey @sinnbeck, thanks for your answer. I tried to set my code inside boot method of AppServiceProvider, but looks like my usual way to identify user:

$user = Auth::user();

is not working, $user is always null even if user is logged in. Any further suggestion?

Thanks a lot!

Feb
26
4 months ago
Activity icon

Started a new Conversation Best Approach

hey all, I need an hint on this: in my laravel app every user must authenticate to use it. If user is not admin, I need to check a value in the db, and if a condition is satisfied, I need to alarm/modal/wake up the user (I would say at every http request until he gets tired). What's the best approach on this? Middleware? Event listeners? Simple cookie?

Thanks

Feb
14
4 months ago
Activity icon

Started a new Conversation Security Question

hello, I'm generating sensible data this way:

File::put(storage_path() . '/invoice_' . $invoice->number . '_' . $invoice->date . '.csv', $content); return response()->download(storage_path() . '/invoice_' . $invoice->number . '_' . $invoice->date . '.pdf');

to allow customer to download his own invoices. Now the question: if one knows the exact path to call, like http://<app_address>/storage/invoiceXXX.pdf could be able to download every document in there.

How could I stream the download without saving the document inside storage folder?

Thanks a lot

Feb
13
4 months ago
Activity icon

Replied to Focus After Ajax Post

thanks a lot, giving tabindex 99 to another div solved the problem!

Feb
12
4 months ago
Activity icon

Replied to Focus After Ajax Post

ok the button and the textarea are disabled by default, because there is a text input to fill in first, and on change of that I need to do some check server side (that's why the ajax post), and if everything is ok then I enable the textarea and give focus:

$('#smartcard').removeAttr('disabled').focus();

then on change of the textarea again another check, and if ok I enable the submit button (I don't want anything submitted if there are problems with input)...

So how to solve this?

Thanks again

Activity icon

Replied to Focus After Ajax Post

Hi @sinnbeck,

thanks for your answer. Actually this way works, but not if that random button has display none (I don't want that in page). How to avoid this? And why this behavior, anyway?

thanks a lot

Activity icon

Replied to Focus After Ajax Post

Hi,

thanks for your answer. I thought the same, and tried, but without luck...

Activity icon

Started a new Conversation Focus After Ajax Post

Hi,

I have this piece of code:

$.ajax({ method: 'POST', url: '/production/find-manufacturer', data: { lot: lot, } }) .done(function (data) { $("#smartcard").focus(); })

which is not working: after returning from the post, the focus is inside the address bar of the browser. if I change it for example this way:

$.ajax({ method: 'POST', url: '/production/find-manufacturer', data: { lot: lot, } }) .done(function (data) { alert('hi!'); $("#smartcard").focus(); })

then the focus is correctly inside the textarea.

Why is this and how to solve it?

Thanks a lot

Jan
08
5 months ago
Activity icon

Started a new Conversation Login Hacked?

Hello, my entire application is protected with authentication, registration disabled. We only have 3 customers and they are the only ones (except us) that should be able to login. Site has also ssl. But, today I found a row in the session table, without a customer_id nor user-agent, with an IP that should not be there:

https://ibb.co/3RMmMWD

how can this be possible? Thanks a lot