JAY_CHAUHAN

JAY_CHAUHAN

Member Since 1 Month Ago

bhavnagar, Gujarat

Web Developer at Nitsan Technology

Experience Points 1,120
Experience Level 1

3,880 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 8
Lessons
Completed
Best Reply Awards 0
Best Reply
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.

14 May
1 month ago

JAY_CHAUHAN left a reply on OrwhereNotNull

yes it is possible, first of all simple you fetch the all year and store into a one array called $yearArr.

Then after make a one loop with $yearArr and in this loop you fire your RAW query

like

    $result = DB::table('users')
            ->where('id', $user->id)
            ->update(['active' => true]);

something like for more details for RAW query look this https://laravel.com/docs/5.8/queries

Then after check "$result" by using $result->isEmpty(); method (insort you check if your result is null)

then this continue with loop and fetch again until your year is going on.

I hope you understand and solve this issue.

13 May
1 month ago

JAY_CHAUHAN left a reply on How To Use Storage::download()

@michalis

try this one

return Storage::disk('public')->download($file->path);

JAY_CHAUHAN left a reply on How To Use Storage::download()

@michalis please send me what contains a $link[0]->download_link

This is some id or anything text

also send where is your file in storage folder (extact location like storage->public->abc.txt etc) .

JAY_CHAUHAN left a reply on How To Pass Id Into Middleware In Laravel

when you enter in controller the first check

Determining If The Current User Is Authenticated

To determine if the user is already logged into your application, you may use the check method on the Auth facade, which will return true if the user is authenticated:

use Illuminate\Support\Facades\Auth;

if (Auth::check()) { // The user is logged in... }

try this,

JAY_CHAUHAN left a reply on How To Use Storage::download()

It may caching issue, clear the laravel cache by following command

php artisan cache:clear

php artisan route:cache

php artisan config:cache

php artisan view:clear

i hope this will work for you.

08 May
1 month ago

JAY_CHAUHAN left a reply on How To Login From 2 Different Tables?

My suggestion is to make new table called "user_master" and store your crendetial fields like email, password etc...

add one "user_type" field in user_master table to define the user type (like student and teacher).

so this makes a common login form for both user (student and teacher).

when any user authenticate then match that credential with user_master table, after that you identify the user by its "user_type" field and redirect to perticular screen.

03 May
1 month ago

JAY_CHAUHAN left a reply on Best SEO For Laravel??

Hello,

I find something for you if it is helpfull,

  1. Before getting started with how do SEO for a Laravel website first ?? check full details in URL : https://websiteseochecker.com/blog/laravel-seo-optimization-updated-2019-seo-for-laravel/

  2. Setting your meta tag and place good content. check full details in URL : https://laravel.io/forum/02-27-2014-seo-optimization