DarkHarden

DarkHarden

Member Since 1 Year Ago

Experience Points 250
Experience Level 1

4,750 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 1
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.

25 Apr
1 year ago

DarkHarden left a reply on Url Previous - Moving Between More Pages

@biishmar I want it only when I go back from /orders/edit/1. It's seems very confusing.

DarkHarden left a reply on Url Previous - Moving Between More Pages

@biishmar Yes, I can use it in session as I said before, but there is another problem:

When I filter something like /orders?name=Alan&order_by=name And then go to edit page /orders/edit/1 Click on some other page like /payments And then go to /orders - it redirects me to filter /orders?name=Alan&order_by=name and that is bad behavior...

DarkHarden left a reply on Url Previous - Moving Between More Pages

@biishmar NO, as I said. You don't get it.

There could be many params in filter /orders?name=name&surname=surname&limit=50

And also - user can go on edit page from multiple pages...

24 Apr
1 year ago

DarkHarden left a reply on Url Previous - Moving Between More Pages

@snapey Thank you for your answer. It will be right but there is a filter on orders page. And also, user can go to /orders/edit/1 from multiple routes like /stats/orders etc.

Go to filter and back
  • /orders?name=order_name
  • /orders/edit/1
  • and go back to /orders?name=order_name
For filter with note adding
  • /orders?name=order_name
  • /orders/edit/1
  • /orders/addNote/1
  • /orders/edit/1
  • and go back to /orders?name=order_name

I think the only way how to solve this is by Session. When user filters something on /orders?name=phil save it to session and then adding some salt as backlink to url.

Like/orders/edit/1?back=SALT

But then, I don't know how to have that salt in url persistent. As user can go to /orders/addNote/1?back=SALT with that SALT.

Part of this is solved by this article

DarkHarden started a new conversation Url Previous - Moving Between More Pages

Hello,

I am a newbie here and I don't know how to set up moving between URL's right. Let's assume this example

/orders /orders/edit/1 /orders/addNote/1

  1. problem

Main page "/orders" has got a table with filter form in $_GET. You can go to detail of order from there "/orders/edit/1".

Now you can use this for going back to orders: Back

But, when form on edit site has errors, this href link returns me on same site "/orders/edit/1"

  1. problem

Now, let's assume that we go from "/orders?name='order_name'" to "/orders/edit/1" and then we need to add note "/orders/addNote/1". This will work only for last step (addNote -> edit) and then context is lost.

Is there any way how to do this right?

Thank you for any help

19 Mar
1 year ago

DarkHarden left a reply on Theme In HTML E-mail

@Bagmaz Yup, I made my code from these two videos. I don't like using markdown for e-mails, so I tried to switch to HTML e-mail but with default nice theme.

DarkHarden started a new conversation Theme In HTML E-mail

I am trying to send a HTML email with header and footer already defined in standart theme.

php artisan vendor:publish --tag=laravel-mail

I made export and with markdown it works nicely - there is header, footer and other things. But when I choose HTML, it looks bad, without default header, footer and other things.

public function build()
{
    return $this->markdown('emails.summary');
}

public function build()
{
    return $this->view('emails.summary');
}

This code shows only plain text (without anything)

@component('vendor.mail.html.layout') @slot('title') Home Page @endslot

test

@endcomponent

Thank you for helping. I start with Laravel 3 days ago.