jewelhuq

jewelhuq

Member Since 4 Years Ago

Experience Points 8,220
Experience Level 2

1,780 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 78
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.

14 Sep
6 days ago

jewelhuq left a reply on How Can I Get Only Team Permissions

I'm sorry we are using laratrust.

jewelhuq started a new conversation How Can I Get Only Team Permissions

Hello, Is there any code available that will only give me permission related to a particular team. The following code is giving me all the permission but I want the permission of a particular team. how can i get it.

 $permissions = User::find($user_id)->permissions()->get();
11 Sep
1 week ago
10 Sep
1 week ago

jewelhuq started a new conversation Auth: LoginusingID Keeping Old User Session Data

Hello, How to get rid of all user session data while login to other account using Auth: LoginusingID

09 Mar
6 months ago

jewelhuq started a new conversation Queue:Restart Problem

php artisan queue:restart gettting the following error

ErrorException : file_put_contents(/var/www/html/blog/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90): failed to open stream: No such file or directory

at /var/www/html/blog/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122 118| * @return int 119| */ 120| public function put($path, $contents, $lock = false) 121| {

122| return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); 123| } 124| 125| /** 126| * Prepend to a file.

Exception trace:

1 file_put_contents("/var/www/html/blog/storage/framework/cache/data/ee/2f/ee2f842aa7bb1f53edf3a2ed2c09a1807ffa6c90", "9999999999i:1552179861;")

What could be the problem?

I have recently switch from php7.2 to php 7.3

04 Mar
6 months ago

jewelhuq left a reply on Need Help Regarding Validation (Allow A-Z,0-9,_,@,.)

I think I found the solution: 'username' => ['required','unique:users','min:4','max:50','regex:/^[[email protected]+]*$/'],

https://regexr.com/ is a good tools for regular express test

jewelhuq left a reply on Need Help Regarding Validation (Allow A-Z,0-9,_,@,.)

@SNAPEY - I want to allow

abc acx100 [email protected] abc_100

that means. _ @ A-Z 0-9

what should be the regex? I tried but it is not working.

jewelhuq started a new conversation Need Help Regarding Validation (Allow A-Z,0-9,_,@,.)

How can we write a regular expression that should only allow character, number, dot and @

Now our rules is as follow

'username' => 'required|unique:users|alpha_num|min:4|max:50',

How can we change it ?

03 Feb
7 months ago

jewelhuq left a reply on Laraforge Payment

They are separate service. Laravel Forge only manage/provision your server.

08 Dec
9 months ago

jewelhuq started a new conversation Getting Error On Production Server

/vendor/laravel/framework/src/Illuminate/Routing/Matching/UriValidator.php

preg_match(): Compilation failed: invalid range in character class at offset 28

namespace Illuminate\Routing\Matching;
 
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
 
class UriValidator implements ValidatorInterface
{
    /**
     * Validate a given rule against a route and request.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    public function matches(Route $route, Request $request)
    {
        $path = $request->path() === '/' ? '/' : '/'.$request->path();
 
        return preg_match($route->getCompiled()->getRegex(), rawurldecode($path));
    }
}
29 Nov
9 months ago

jewelhuq left a reply on Validation In Controller

Change something like this:

$validator = Validator::make($request->all(), [ 'title' => 'required|unique:posts|max:255', 'body' => 'required', ]);

    if ($validator->fails()) {
        return redirect('post/create')
                    ->withErrors($validator)
                    ->withInput();
    }
10 Mar
1 year ago

jewelhuq started a new conversation How To Hide Website Created Language?

For instance, I don't want to let other people know about which server I am using, which language even which framework I am using.

25 Sep
1 year ago

jewelhuq started a new conversation What Is The Best Way To Show Custom Exceptions (laravel 5.4)

I was able to show custom page for 404,403 exception using errors/404.blade php But what is the best way to solve custom exceptions for the page : whoops something went wrong.