amidknight

amidknight

Member Since 4 Years Ago

Experience Points
9,610
Total
Experience

390 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
87
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 2
9,610 XP
May
16
2 weeks ago
Activity icon

Replied to Laravel 7.x - Form Errors Undefined

ps. If this were Stack, I would have edited your answer per the additional 10 words or so - then accepted it.

Activity icon

Replied to Laravel 7.x - Form Errors Undefined

@michaloravec: Understood and accepted - per comment:

It didn't actually solve the problem - though it answered the question...not available there.

Also, said I was willing to change if you modify the answer. Up to you.

Just know it wasn't out of malice or anything weird like that.

Activity icon

Replied to Laravel 7.x - Form Errors Undefined

I don't believe I'm using the config:cache command during my deployment process, but good to know. (Just now noticed the links.)

Re "best answer":

I was torn on that. Your answer was lovely and went above and beyond. It didn't actually solve the problem - though it answered the question...not available there. I don't use traditional blade views; so, knowing that, only got me as far as to stop trying to access $errors. Using the session helper, solved the problem overall.

So, if someone's coming in looking for the quick answer - that's it.

Happy to switch - maybe just append to the first paragraph:

The variable errors is visible only in views. To get to the session errors from there you would need to use the session global helper.

...or something like that.

Thanks again. Very well done.

Activity icon

Awarded Best Reply on Laravel 7.x - Form Errors Undefined

Thanks, forgot to add the Request part back in after copying and pasting the blocks.

Why not .env outside of config files? (What's the utility or problem being solved?)

Thanks again, @michaloravec! Switched to the session() helper.

Activity icon

Replied to Laravel 7.x - Form Errors Undefined

Thanks, forgot to add the Request part back in after copying and pasting the blocks.

Why not .env outside of config files? (What's the utility or problem being solved?)

Thanks again, @michaloravec! Switched to the session() helper.

Activity icon

Started a new Conversation Laravel 7.x - Form Errors Undefined

Route::domain(env("SITE"))->group(function() {
       Route::get("/contact", function() {
           if ($errors->any()) {}
       });

       Route::post("/contact", function() {
           $request->validate([]);
       });
}

The get route doesn't display and gives the following error:Undefined variable: errors

I've applied the web middleware to both routes - same. I've applied the web middleware to the domain routes - same. I've tried wrapping both routes in a group and applying the web middleware to the group.

I'm considering modifying the kernel - but this is a pattern I'm thinking of using on multiple sites, but if this won't work, then I would like to find what will.

Apr
20
1 month ago
Activity icon

Awarded Best Reply on Laravel 6 (upgrade From 5.8) Failing To Find Route And 404 Page

Think I discovered what the issues were.

  1. The domain had a number in it and seems to have been causing an issue with MAMP Pro (saw mention of this in a Stack answer.

  2. When I created multiple providers and promoted a more global/abstract to be included I used include_once instead of include, which caused a loss of some of the routes.

Now I appear to be able to have 3 (of 5) providers, each with a different domain group using env(). 2 of them are using files and classes from the 3rd that is the more generic implementation.

Activity icon

Replied to Laravel 6 (upgrade From 5.8) Failing To Find Route And 404 Page

Think I discovered what the issues were.

  1. The domain had a number in it and seems to have been causing an issue with MAMP Pro (saw mention of this in a Stack answer.

  2. When I created multiple providers and promoted a more global/abstract to be included I used include_once instead of include, which caused a loss of some of the routes.

Now I appear to be able to have 3 (of 5) providers, each with a different domain group using env(). 2 of them are using files and classes from the 3rd that is the more generic implementation.

Feb
10
3 months ago
Activity icon

Replied to Best Way To Stream Video In Laravel

@thefriendlyhacker: Curious what came of this inquiry.

Jan
04
4 months ago
Activity icon

Replied to Laravel Valet 404 - Not Found

Sure thing. Not sure what I should be expecting so can't add more than the following.

[email protected] joshbrucedev % valet links
+-----------+-----+-----------------------+---------------------------------------------------+
| Site      | SSL | URL                   | Path                                              |
+-----------+-----+-----------------------+---------------------------------------------------+
| .DS_Store |     | http://.DS_Store.test | /Users/alex/.config/valet/Sites/.DS_Store         |
| link      |     | http://link.test      | /Users/alex/Public/8fold/laravel-amos/base/public |
| media     |     | http://media.test     | /Users/alex/Public/8fold/laravel-amos/base/public |
| software  |     | http://software.test  | /Users/alex/Public/8fold/laravel-amos/base        |
| timer     |     | http://timer.test     | /Users/alex/Public/twitch-things/timers           |
| timers    |     | http://timers.test    | /Users/alex/Public/joshbrucedev                   |
+-----------+-----+-----------------------+---------------------------------------------------+
[email protected] joshbrucedev % php valet link timers
Could not open input file: valet
[email protected] joshbrucedev % valet start
Restarting php...
Restarting nginx...
Valet services have been started.
[email protected] joshbrucedev % php valet link timers
Could not open input file: valet
[email protected] joshbrucedev % 

Thank you for the request. (I'm going to switch back to MAMP Pro in the interim.)

Hope that helps.

Activity icon

Replied to Laravel 6 (upgrade From 5.8) Failing To Find Route And 404 Page

Sorry it's taken a moment was messing around with things.

Not sure what other code would be relevant. Here's more of what I have that's actually working - though not as separate service providers - just separate route files.

class AmosProvider extends ServiceProvider
{
    public function register()
    {
        // Hosts images
        $this->loadRoutesFrom(__DIR__.'/routes-link.php');

        $this->loadRoutesFrom(__DIR__.'/routes-pro.php');
        $this->loadRoutesFrom(__DIR__.'/routes-dev.php');
        $this->loadRoutesFrom(__DIR__.'/routes-media.php');

        $this->loadViewsFrom(__DIR__.'/', "amos");
    }
Route::domain(env('DOMAIN_PRO'))->group(function () {
    Route::get('/', function () {
        return view("amos::default")
            ->with("view",
                UIKit::webView(
                    "",
                    UIKit::featuredPractitioners()->noBottomBorder(),
                    UIKit::appearanceLinks()->noTopBorder()
                )
        );
    })->middleware("web")->name("pro::index");

    Route::prefix('practitioners')->group(function() {
        Route::get("/", function() {
            return UIKit::practitionersPage();
        })->middleware("web");

        Route::get("{username}", function($username) {
            return UIKit::practitionerPage($username);
        })->middleware("web");
    });

    Route::post('/', function (Request $request) {
        return ProProvider::processNewsletterSignUp($request);
    })->middleware("web");

    Route::post('request-invite', function (Request $request) {
        return ProProvider::processInitationRequest($request);
    })->middleware("web");

});

The shortest routes file but pretty much the canonical pattern for all of them.

Not much has changed compared to when I was trying to do each as a separate service provider. The routes would get loaded separately with separate service providers though.

Activity icon

Started a new Conversation Laravel Valet 404 - Not Found

Streaming last night, ran into something where Valet would not serve a site: https://www.twitch.tv/videos/531045091

Not really a server person - more front-end, please pardon the ignorance.

Not sure what to check or how.

The other 5 links I have registered work as expected. Even one with the same exact setup.

Straight HTML (or PHP). Root of the project. Don't believe anything modified. File named index.html (php).