hdsavani

Member Since 1 Year Ago

Rajkot - India

Experience Points
5,840
Total
Experience

4,160 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
32
Lessons
Completed
Best Reply Awards
3
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.

Level 2
5,840 XP
Jun
05
4 months ago
Activity icon

Replied to Image Upload With Local Computer File Path In Jquery Laravel

Thank you @johnbraun for reply

But is there any way to create file object from local folder path using jquery. so i can send that object to server?

Activity icon

Started a new conversation Image Upload With Local Computer File Path In Jquery Laravel

I want to make image upload from local computer file path like as bellow: path like: /home/hari/Downloads/31kd91559642042.png path like: C:\Users\Public\Pictures\Sample Pictures\logo.png

So basically, i want to put one text box on my form and user can put file path from his system. file should upload from that path on server.

Thanks

May
27
4 months ago
Activity icon

Replied to Rest API In Laravel

I can suggest you this link to step by step REST API with Laravel 5.8 : https://itsolutionstuff.com/post/build-restful-api-in-laravel-58-exampleexample.html

May
19
4 months ago
Activity icon

Replied to How To Compress Image Size In Laravel

You can easily compress image size, you see this tutorial : https://itsolutionstuff.com/post/laravel-compress-image-before-upload-exampleexample.html I hope it can help you

May
14
5 months ago
Jan
24
8 months ago
Jan
20
8 months ago
Activity icon

Replied to What Is RESTFUL API?

@Flex You have to make it POST Request. Can you try with POST Request?

Jan
17
9 months ago
Activity icon

Replied to Can I Customize Laravel Auth Login?

Yes sure you can overwrite login method like we bellow link example: https://itsolutionstuff.com/post/laravel-5-login-with-username-or-email-exampleexample.html

I hope it can help you...

Jan
15
9 months ago
Jan
09
9 months ago
Activity icon

Replied to Get Nearby Places Google API

When you add dictionacy with place at that time you have to also add latitude and longitude. So you can get near by you using query like as bellow:

DB::raw("6371 * acos(cos(radians(" . $lat . ")) 
        * cos(radians(posts.lat)) 
        * cos(radians(posts.lon) - radians(" . $lon . ")) 
        + sin(radians(" .$lat. ")) 
        * sin(radians(posts.lat))) AS distance")

Simple Full Example: https://itsolutionstuff.com/post/how-to-get-latitude-longitude-from-mysql-in-laravel-5example.html

Jan
08
9 months ago
Activity icon

Replied to How To Work "distinct" In Eloquent Laravel 5.7

You can do like this way:

Profile::distinct('photo_path')->get();
Activity icon

Replied to How To Store Session In Larvel 5.7

i think you can try to use session facade to put and check both:

\Session::put('key', 'value');
\Session::has('key')

You can try this way

Activity icon

Replied to Any Laravel Chat And Comment API?

If you want to create commenting system then you can see this like: https://itsolutionstuff.com/post/laravel-57-comment-system-tutorial-from-scratchexample.html

I hope it can help you

Activity icon

Replied to How To Store Session In Larvel 5.7

You can use facade also:

Session::has('key')

might be works

Activity icon

Replied to Send Mail Automatically Two Weeks Before The Subscription Ends

I think you have to use Conjob for send email automatically before two weeks. You can see how to create cron job in laravel here: https://itsolutionstuff.com/post/example-of-cron-job-in-laravel-5example.html

Activity icon

Replied to Send Mail On Model Created

I think you can use Notification system for send email notification. You can see reference: https://itsolutionstuff.com/post/laravel-57-new-notification-system-tutorial-for-beginnerexample.html

In model you can do it like this way:

public static function boot() {
    parent::boot();

    static::created(function($message) {
        Notification::send($message->user, new MyFirstNotification($message));
    });
}

Might be help you

Jan
03
9 months ago
Activity icon

Replied to Dynamic Drop Down

I think you can follow bellow example and i can say you what changes you need require : https://itsolutionstuff.com/post/how-to-make-simple-dependent-dropdown-using-jquery-ajax-in-laravel-5example.html

You can to write this in controller:

public function myform()
    {
        $states = DB::table("demo_state")->lists("name","id");
        $cities = [];

        if(!empty(request()->state)){
            $cities = DB::table("demo_cities")
                    ->where("state_id",request()->state)
                    ->lists("name","id");           
        }
        return view('myform',compact('states','cities'));
    }

In View File you need to make following changes:

<select name="city" class="form-control" style="width:350px">
@foreach ($cities as $key => $value)
                        <option value="{{ $key }}">{{ $value }}</option>
                    @endforeach
</select?

I hope it can help you

Activity icon

Replied to I Want To Export File To Excel

You can also find best example for import and export excel file in laravel 5.7 : https://itsolutionstuff.com/post/laravel-57-import-export-excel-to-database-exampleexample.html

Aug
31
1 year ago
Activity icon

Started a new conversation No Such Customer: Cus_DW8c96lmiJ6L2e - Laravel Cashier

When create my test account it show me as Exception "no such customer", i want to create customer on stripe with Subscription. My controller method code:

public function orderPost(Request $request)
    {
            $user = User::find(8);
            $input = $request->all();
            $token = $input['stripeToken'];
            
            try {
                $user->newSubscription('main',$input['plane'])->create($token,[
                        'email' => $user->email,
                    ]);
                return back()->with('success','Subscription is completed.');
            } catch (Exception $e) {
                return back()->with('success',$e->getMessage());
            }
            
    }

Activity icon

Replied to Cashier Battle Continues - No Such Customer

Can you share your code how you use "createAsStripeCustomer()" and "create()" , i have same issue now so.

Aug
21
1 year ago
Jul
21
1 year ago
Activity icon

Replied to Laravel Vue.js Infinite Scroll

I think you can find here, Step by Step example of Infinite Scroll Pagination using vue and Laravel 5.6 : https://itsolutionstuff.com/post/laravel-vue-js-infinite-scroll-example-with-demoexample.html

Jul
19
1 year ago
Activity icon

Replied to How To Fix Call To A Member Function GetClientOriginalExtension() On Null In Laravel 5.6

i don's see your blade file code, but I think you have to check this option for multiple image upload: http://www.dropzonejs.com/#config-uploadMultiple

Activity icon

Replied to Using Translations

Yes, you can do this way:

if (\Lang::has('general.token')) {

    // line exists.

} else {

   // line not exist.

}
Activity icon

Replied to How To Add Bearer Access Token To A Request Header From Controller In Laravel

i don't think you can use this way using $request object. but for api, you have to use guzzle i think. maybe you can use this way: https://hdtuto.com/article/guzzle-http-client-get-and-post-request-example-in-laravel-5 and more info : https://github.com/guzzle/guzzle

Maybe it can help you

Jul
18
1 year ago
Activity icon

Replied to Validate Unique Slug

I think you have the issue with getting all input data, Can you try this way?

//PostController

    public function store(Request $request){

      $input = $request->all();
      $input['slug']=str_slug($request['title'],'_');

      $validator = Validator::make($input,[
        'title'   =>  'required|min:10|max:100',
        'body'    =>  'required|min:50',
        'slug'    =>  'unique:posts,slug'
      ]);

      if($validator->fails()){

        $errors = $validator->errors();

        if($errors->has('slug')){
          return response()->json(
            [ 'message'=>'Error por slug repetido',
              'errors' => ['title' => ['El titulo del Post esta repetido']]
            ], 422);
        }
      }

      $validator->validate();

....
Activity icon

Replied to Best Laravel Scaffolding CRUDBooster, Voyage, InfyOm Or What?

I used InfyOm and Voyage both, but I think I can say InfyOm is a good one.

Jul
17
1 year ago
Activity icon

Replied to RedirectTo , To Make It Redirect To The Same Page .

You mean, after registration then I think you can just change here:

protected $redirectTo = '/register';
Activity icon

Replied to Fetching Data From Database To Show In Options In Select2

Actually, I don't have the same example that you want but I think you can use some part of the code from it may be.

Activity icon

Replied to Want To Create API - Standard Way Of Implementation

Here, you will find step by step to create rest API for Mobile App. Link: https://itsolutionstuff.com/post/php-laravel-56-rest-api-with-passport-tutorialexample.html

I hope it can help you...

Jul
16
1 year ago
Activity icon

Replied to Guzzle - Call External API

Do you think you can share your error with a screenshot? So maybe I can help you.

Activity icon

Replied to Redirects In Routes File?

Can you share your routes here OR Can you check did you added middleware on '/' URL ?

Activity icon

Replied to What Is The Best Way For Upload Image And Video?

I don't know a good library for video, but for an image, you can use this i think: https://itsolutionstuff.com/post/laravel-5-ajax-crop-image-before-upload-using-using-croppie-pluginexample.html

I hope it can help you...

Activity icon

Replied to Redirects In Routes File?

I think you can try this way:

if (Auth::check()) {
    return redirect()->route('customer.dashboard');
}
Jul
14
1 year ago
May
29
1 year ago
Activity icon

Replied to Error To Pass Dropdown Value In View To Controller (ajax Call)

You need to do this way i think:

public function productsCat(Request $request)
{
    $search_cat = $request->cat_id;
    $priceCount = !empty($request->price) ? count($request->price) : 0;


    if($search_cat!="" && $priceCount!="0")
    {
        echo "Both are selected!";
    }

    else if($priceCount!="0")
    {
        echo "Only Price has selected!";
    }

    else if($search_cat!="")
    {
       echo "Cat is Selected!";
    }

    else
    {
        echo "<h1 style='text-align: center'>Please select atleast one Filter.</h1>";
    }
}