vig

vig

Member Since 5 Months Ago

Experience Points
8,820
Total
Experience

1,180 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
85
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 2
8,820 XP
Aug
23
1 month ago
Activity icon

Started a new conversation Custom Routing In Laravel

Hey guys. I have a problem with custom routing. So I have routes scheme like below, and it's works fine when uri is like "audi-a4-modification-category", but when uri is like "alfa-romeo-giulietta-modification-category" I'm getting wrong controller method, because laravel thinking alfa - brand, romeo - model etc... How can I fix that without changing delimiter in uri

Route::get('{brand}-{model}-{modification}-{category}', 'Frontend\[email protected]')->middleware('custom-routing')->name('frontend.category');
Route::get('{brand}-{model}-{modification}', 'Frontend\[email protected]')->middleware('custom-routing')->name('frontend.modification');
Route::get('{brand}-{model}', 'Frontend\[email protected]')->middleware('custom-routing')->name('frontend.model');
Route::get('{brand}', 'Frontend\[email protected]')->middleware('custom-routing')->name('frontend.brand');
Aug
13
2 months ago
Activity icon

Started a new conversation Custom "prefix" Delimiter

Hello everyone! Can I change route delimiter when I'm using "prefix" from "/" to "-"

So this route looks like: "categories/test"

Route::prefix('categories')->group(function (){
    Route::get('test');
});

Can I change it to "categories-test" with prefix

Aug
07
2 months ago
Activity icon

Started a new conversation How To Create Recursive Route?

Hello everyone! I need some help with nested routing. So I have nested categories, and I want to create on frontend nested routes something like:

/categories/ (list of categories first-level)
/categories/first-level/ (list of categories second-level)
/categories/first-level/second-level (...)
/categories/first-level/third-level (...)

UPD: I found solution here - https://stackoverflow.com/questions/40716985/laravel-create-hierarchical-route-for-category

May
23
4 months ago
Activity icon

Replied to City Filter Database Design

I have nested checkboxes like this

Country 
        --State
             --City 
Country2 
        --State2 
            --City2

What is a good practice to save that in database if I have summary near 10000 cities in all countries and states? So I can't just save all checkboxes for 1 post if "Country and Country2" checked

Activity icon

Started a new conversation City Filter Database Design

Hi! I need some help with database design for filter by city. So I'm creating a post and this is my checkboxes:

--Country 1 > --State 1 > --City 1 --City 2 ... --State 2 | ... | --Country 2 ...

The logic is - if I check 'Country 1', all nested checkboxes become checked too, and I can find my post by filtering "Country1, or State 1, or City 1/2 ...".

I tryed to create something like Country->hasMany('State'), State->hasMany('City'), but I have too much cities and it's works too much long

What is a good practise to do that?

May
19
4 months ago
Activity icon

Started a new conversation This Version Of ChromeDriver Only Supports Chrome Version 74

Hi! I'm trying to learn how to test laravel and stuck with that error when I running "php artisan dusk"

  1. Tests\Browser\ExampleTest::testBasicExample Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/[email protected]{#29}),platform=Linux 4.15.0-50-generic x86_64)

/var/www/testing/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:154 /var/www/testing/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:326 /var/www/testing/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:126 /var/www/testing/tests/DuskTestCase.php:40 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:192 /var/www/testing/vendor/laravel/framework/src/Illuminate/Support/helpers.php:816 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:193 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:93 /var/www/testing/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:64 /var/www/testing/tests/Browser/ExampleTest.php:22

2 hours of googling not helps

May
13
5 months ago
Activity icon

Replied to Where I Can Save Array For Blade?

I have alphabet array, where I can save it and then use in blade template?

Activity icon

Started a new conversation Where I Can Save Array For Blade?

I want to see somethin like test.php > return $array = [];

template.blade.php > @foreach ($array as $item) @endforeach