patriknemecek

patriknemecek

Member Since 9 Months Ago

Experience Points 2,330
Experience
Level
Lessons Completed 15
Lessons
Completed
Best Reply Awards 1
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

28 Feb
9 months ago

patriknemecek left a reply on Help On Eloquent Return Values

Because this show you Model settings and other stuff. You use it normal, like

foreach($users as $user) {
   echo $user->name;
}

patriknemecek left a reply on How To Get All Route List?

Try this Route::getRoutes();

patriknemecek left a reply on Passing Variables

$this->functionName($variable);

patriknemecek left a reply on How To Get All Route List?

Artisan::call($command, $params);
$output = Artisan::output();
23 Feb
9 months ago

patriknemecek left a reply on Translation Namespace Problem

Yes, still same effect and in views I use helper @lang()

22 Feb
9 months ago

patriknemecek left a reply on Update Error - Creating Default Object From Empty Value

If you call get(), it return list of objects, but not only one, for that you have to use first() or firstOrFail() and save() work fine.

try {
    $regType = RegistrationType::where('conference_id', $id)->firstOrFail();
    $regType->name = $request->registration_type_name;
        $regType->description = $request->registration_type_description;
} catch (\Exception $e) {
    return dump($e->getMessage());
}

patriknemecek left a reply on Profile User View

Try this and rename view name

public function profile($countryCode, $username = null)
{
    // Check multi-countries site parameters
    if (!config('larapen.core.multiCountriesWebsite')) {
        $username = $countryCode;
    }

    // Get User
        
    $this->sUser = User::where('username', $username)->firstOrFail();
    return view('VIEW-NAME', [
    'user' => $this->sUser,
    'isUserSearch' => $this->isUserSearch
    ]);
}

patriknemecek started a new conversation Translation Namespace Problem

Hello, I use nWidart/laravel-modules and my module admin register a translations with namespace admin, when I try in all ServiceProviders of enabled modules in boot function return dd(__('admin::nav.home')); I got translation value, but in Controllers and Views I got only admin::nav.home and I don't know where find this probably re-define of translate namespace

21 Feb
9 months ago

patriknemecek left a reply on Laravel 5.6: Parse Error: Syntax Error, Unexpected '?', Expecting Variable (T_VARIABLE)

Yes you are absolutely right, I didn't thought my Apache2 use PHP 7.0

patriknemecek left a reply on Laravel 5.6: Parse Error: Syntax Error, Unexpected '?', Expecting Variable (T_VARIABLE)

Yes, it is probably problem with PHP, now I tried fresh Laravel install and same error.

patriknemecek left a reply on Laravel 5.6: Parse Error: Syntax Error, Unexpected '?', Expecting Variable (T_VARIABLE)

I use PHP 7.1.9, Laravel 5.6 requires PHP 7.1.3 or higher.

patriknemecek started a new conversation Laravel 5.6: Parse Error: Syntax Error, Unexpected '?', Expecting Variable (T_VARIABLE)

Hello, when I was solve problem with TrustedProxies, I got another error 500 with error message:

local.ERROR: Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) at vendor/symfony/routing/Route.php:53).

Before upgrade all works fine.