frocco

Member Since 4 Years Ago

Experience Points
13,940
Total
Experience

1,060 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
131
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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 3
13,940 XP
Apr
28
1 week ago
Activity icon

Awarded Best Reply on Getting Duplicate Records

I just removed submitForm(this) as I did not find any javascript. I must have been looking into it, and forgot it was there. I am not sure if this could of caused the issue, but it did not look right.

Activity icon

Replied to Getting Duplicate Records

I just removed submitForm(this) as I did not find any javascript. I must have been looking into it, and forgot it was there. I am not sure if this could of caused the issue, but it did not look right.

Activity icon

Replied to Getting Duplicate Records

no wait, I am using javascript.

<button id="submitButton" type="submit" value="submit" onclick="submitForm(this);" class="btn btn-outline-success">Place Order</button>
Activity icon

Replied to Getting Duplicate Records

No, just a submit

Activity icon

Replied to Getting Duplicate Records

public function store(Request $request) { $this->validate($request, [ 'order_email' => 'required|email|exists:users,email', 'order_phone' => 'required', ]);

    if(Cart::count() == 0) {
         session()->flash('warning', 'Your cart is empty');
         return redirect('home');
    }

    $user = Auth::user();
    $order = new order;
    $order->order_amount = Cart::total();
    $order->order_transaction = '';
    $order->order_currency = '';
    $order->order_po = $request->input('order_po','');
    $order->order_deliverby = $request->input('order_deliverby','');
    $order->order_notes = $request->input('order_notes','');
    $order->order_email = $request->input('order_email','');
    $order->user_id = Auth::id();
    $order->price_level = $user->price_level;
    $order->order_phone = $request->input('order_phone','');
    $order->save();

    $id = $order->id;

    foreach(Cart::content() as $row)
    {
        $order_item = new order_item;
        $order_item->order_id = $id;
        $order_item->product_id = $row->options->product_id;
        $order_item->product_quantity = $row->qty;
        $order_item->product_price = $row->price;
        $order_item->product_size = $row->options->size;
        $order_item->product_sku = $row->options->sku;
        $order_item->save();

        // Adjust inventory
        $product = store_item::findOrFail($row->options->product_id);
        $product->stock -= $row->qty;
        $product->save();
    }

    $this->send_order($order, Cart::content());

    Cart::destroy();
    $request->session()->flash('status_success', 'Thank you for your order.');
    return view('orders.thanks');
}
Activity icon

Replied to Getting Duplicate Records

Just a single MySQL database

Activity icon

Started a new Conversation Getting Duplicate Records

I recently moved my site that had no issues to namecheap.com

users that submit an order, now creates two or three orders in the database with the same content. This did not happen with other ISP and I am at a loss as to why. Nothing has changed in code, I hit the store function, send email.

namecheap.com is clueless, I tried to duplicate it on my local machine and have no issues. So it must be a configuration issue.

PHP 7.2, laravel 7

Thanks for any help.

Apr
17
3 weeks ago
Activity icon

Awarded Best Reply on Need Shared Hosting Provider

got it working by setting memory_limit to 2048M and php to 7.2

Activity icon

Replied to Need Shared Hosting Provider

got it working by setting memory_limit to 2048M and php to 7.2

Activity icon

Replied to Need Shared Hosting Provider

I tried setting memory_limit to 2048M in php.ini still getting error

Activity icon

Replied to Need Shared Hosting Provider

too expensive, don't know how the banwidth transfer works if I go over. is tTB enough?

Activity icon

Replied to Need Shared Hosting Provider

sorry, just nervious about this and forgot to include all messages.

Activity icon

Replied to Need Shared Hosting Provider

could not find driver (SQL: select * from sessions where id = k6MMUdFSGjeTVBnIHuRNomNrfSLSACtGQTlCn0Fo limit 1)

Activity icon

Replied to Need Shared Hosting Provider

[17-Apr-2021 04:17:55 America/New_York] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 93285520 bytes

Activity icon

Started a new Conversation Need Shared Hosting Provider

can anyone recommend a good isp?

currently using namecheap.com and laravel 7 has exhausted memory error. they are of no help.