yuyenkan

yuyenkan

Member Since 2 Years Ago

Experience Points 640
Experience Level 1

4,360 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 0
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.

27 Feb
1 year ago

yuyenkan left a reply on Difference Between Setting ID Directly And Setting Elequent Associate Relation When Saving A Model In Laravel?

The different is, the 2nd method you need to run 1 more query on find employee type then assign the id to parent model.

so if nothing to do with child model, better assign the Id directly.

17 Jan
1 year ago

yuyenkan started a new conversation Laravel API Guest Middleware

I am using Laravel Passport for API, there is some required not authenticated like register

in those controller constructor

public function __construct() {
    $this->middleware('guest:api')->except('logout');
}

but it is always true, I think it may because of the auth never authenticate, how should I do that? or any others method work for this?

02 Oct
1 year ago

yuyenkan started a new conversation Route For Mail.mydomain.com

When I type mail.mydomain.com, it route to home page, how can I disable sub domain and let it route to correct sub domain?

11 May
2 years ago

yuyenkan started a new conversation Laravel/Socialite, InvalidStateException

I am new to Laravel/Socialite, when I receive response return from facebook, I get this error,

InvalidStateException in AbstractProvider.php line 200:

yuyenkan left a reply on Push Notification For Laravel 5.4

those package in github non of them support 5.4

yuyenkan started a new conversation Push Notification For Laravel 5.4

Is there any push notification that support laravel 5.4?

02 May
2 years ago

yuyenkan started a new conversation When Project Without Config:cache, Ajax Request Sometime Go To Error Without Info

When I clear the config cache and run multi call on a same ajax, sometime it return http 500 with only error page title and without any of information. Then if I run a php artisan config:cache, the error is gone, anyone know why it happen?

01 Feb
2 years ago

yuyenkan started a new conversation About Master Page In Master Page

I not sure can this be done or not

master.blade.php

<body>
@section('title')
</body>

Folder1/master.blade.php

@extends('master')

Folder1/home.blade.php

@extends('Folder1.master')
@section('title', 'abc')

Anyone know can this be done?

20 Jan
2 years ago

yuyenkan started a new conversation Question About Eloquent Model

in my class, if I define the column of table

use Illuminate\Database\Eloquent\Model as Model;

class Staff extends Model
{
public $id;
}

then in controller

$staff = new Staff();
$staff->id = 1;
$staff->save();

the data is inserted as NULL in mariaDB, what should I do or is there other way to do it?

30 Dec
2 years ago

yuyenkan left a reply on About Special Character In Cookie Value Changed To Special Html

$value is an array, I use json_encode to convert it to json string, I tried to use dd(json_encode($value)), the output is correct.

Tried yr method, it is not working.

yuyenkan started a new conversation About Special Character In Cookie Value Changed To Special Html

My cookie value is stored as json string, when I modified value of cookie in controller and update with

Cookie::queue('name', json_encode($value), 100)

the value of cookie with changed to %5B%7B%22id%22%3A2%2C%22name%22%3A%abc%22%7D%5D

can it not convert special character?

29 Dec
2 years ago

yuyenkan started a new conversation Create Encrypted Cookie With Javascript

Just want to ask, can laravel encrypted cookie create with javascript? is yes, can show me some example?

yuyenkan left a reply on Recursive Ajax Request With Response Status 500 Sometimes

Aready with

$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } });

28 Dec
2 years ago

yuyenkan started a new conversation Recursive Ajax Request With Response Status 500 Sometimes

[2016-12-28 08:36:50] production.ERROR: exception 'RuntimeException' with message 'The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. key : cipher : AES-256-CBC' in ~\vendor\laravel\framework\src\Illuminate\Encryption\Encrypter.php:44 Stack trace: #0 ~\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php(27): Illuminate\Encryption\Encrypter->__construct(NULL, 'AES-256-CBC') #1 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(746): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}(Object(Illuminate\Foundation\Application), Array) #2 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(644): Illuminate\Container\Container->build(Object(Closure), Array) #3 ~\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(709): Illuminate\Container\Container->make('encrypter', Array) #4 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(864): Illuminate\Foundation\Application->make('Illuminate\Cont...') #5 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(819): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #6 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(790): Illuminate\Container\Container->getDependencies(Array, Array) #7 ~\vendor\laravel\framework\src\Illuminate\Container\Container.php(644): Illuminate\Container\Container->build('App\Http\Middle...', Array) #8 ~\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(709): Illuminate\Container\Container->make('App\Http\Middle...', Array) #9 ~\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(174): Illuminate\Foundation\Application->make('App\Http\Middle...') #10 ~\public\index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response)) #11 {main}

Above is the log for server.

I tried to run a recursive loop of ajax post request with a response text of 0-30, usually it will return internal server error on some of the request.

I checked on the log, the key is missing.

Any ideas what happened? why the key is missing from the ajax request?

08 Dec
2 years ago

yuyenkan started a new conversation How To Run Command In Netbean IDE

Recently learning Laravel using netbean IDE, I saw some command like

composer require barryvdh/laravel-ide-helper

php artisan cashier:table users

php artisan ide-helper:generate

but i don know how I can run them, tried to run in CMD, but the file generate in different location and php artisan ide-helper:generate is not supported.

##Additional

I have 2 composer.json in project, one at root project, and one at vendor.laravel. Which should I update

29 Nov
2 years ago

yuyenkan started a new conversation Class 'App\Providers\Route' Not Found In AppServiceProvider.php

I am new to laravel using with Netbean IDE with _ide_helper in root path, when I trying to use Route in AppServiceProvider boot function, I receive this error.

public function boot() { Route::pattern('id', '[0-9]+'); }

Project structure

  • app

    • Providers

      • AppServiceProvider.php
  • config

    • app.php
  • _ide_helper.php

  • env

  • composer.json