Vandan29

Vandan29

Member Since 3 Months Ago

Experience Points 15,150
Experience Level 4

4,850 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 120
Lessons
Completed
Best Reply Awards 4
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 Jul
3 weeks ago

Vandan29 left a reply on Videos On Mobile Not Working

@ltrain You should buy new phone or factory reset

Buy Iphone xs

Vandan29 left a reply on [Off Topic] Mac Or PC For Development

@scc

Yes, I m working with windows, and is a pain in the ass configure your work flow I should Prefer MAC

Vandan29 left a reply on Which OS Are Most Laravel Developers Using?

@dt

Windows and mac I should prefer Mac

Vandan29 left a reply on What Would You Love To See In Laravel 5.1?

@Ruffle

Sorry Bro I started Learn laravel 5.3

Vandan29 left a reply on Welcome To The New Forum!

@je

I like the new system. esotalk was good but this is great and looks very simple ::::::

Vandan29 left a reply on What Are You Missing?

@je

School Days And Collage lIfe

Vandan29 left a reply on Informal Poll: Routes File

Yes to 'include by default'.

Vandan29 left a reply on Laracasts Refresh

Jalsa che bapuu tara Raj ma

Vandan29 left a reply on Best Laptop For Web Developer?

@eco012390

You should go Macbook pro

Vandan29 left a reply on Laravel Version

You should start your project in 5.7

Vandan29 left a reply on How Can I Display Random Option In My Question Every Time?

In your blade file

     @foreach($query->shuffle() as $data)

Try this

18 Jul
1 month ago

Vandan29 left a reply on Validation.captcha Error When Submit Data

Maka Request

return [
    'g-recaptcha-response' => 'required|captcha'
];

then apply your controller

Vandan29 left a reply on Validation.captcha Error When Submit Data

send controller file

08 Jul
1 month ago

Vandan29 left a reply on Redirecting A Route

@matildah Try this

return \Redirect::route(''restaurant.view',$restaurant->id);

Vandan29 left a reply on How To Pass Input Field Id Pass In Script

@jay_chauhan Thanks but still not working

02 Jul
1 month ago

Vandan29 left a reply on How To Pass Input Field Id Pass In Script

@JAY_CHAUHAN - Thanks but I want dynamic input field I try it this working perfect but when I add new field then sun not work

Vandan29 left a reply on How To Pass Input Field Id Pass In Script

@MSTRAUSS - Thanks but still not working

01 Jul
1 month ago

Vandan29 left a reply on How To Pass Input Field Id Pass In Script

Html Code

    <td></td>
            <td><input type="text" name="name[]" placeholder="Enter your Name" class="form-control name_list"/></td>
             <td><input type="text" name="time[]" placeholder="Enter your Time" class="form-control name_list"/></td>
             <td><input type="text" name="amount[]" id="amount" placeholder="Enter your Amount" class="form-control name_list"/></td>
             <td><button type="button" name="add" id="add" class="btn btn-success">Add More</button></td>

Vandan29 left a reply on How To Pass Input Field Id Pass In Script

@VAN1310 - Thanks But not working

Vandan29 left a reply on Flash Not Work In Laravel 5.5

@VAN1310 - I try this but still not working

Vandan29 left a reply on Flash Not Work In Laravel 5.5

Done I add Some File Then I delete those file After work perfect

Vandan29 left a reply on Where Are You All From?

Ahmedabad, India

Vandan29 started a new conversation How To Pass Input Field Id Pass In Script

IN Laravel same blade file use two script one script was multiple Qty and Amount Second script was add dynamic input field First script work on just first field after I add dynamic field script doesn't work

<script>
        var qty = '#qty';
        var amount = '#amount';
        var theTotal = 0;
        $('input').change(function(){
        theTotal = Number($(qty).val()) * Number($(amount).val());
            $('#tussenstand').val("Total: "+theTotal);        
        });

        var total = $('#tussenstand').val("Total: "+theTotal);
</script>

<script type="text/javascript">
        $(document).ready(function(){
        var postURL = "<?php echo url('addmore'); ?>";
        var i=1;

        $('#add').click(function(){
        i++;
        $('#dynamic_field').append('<tr id="row'+i+'" class="dynamic-added"><td></td><td><input                                                                 type="text" name="name[]" placeholder="Enter your Name" class="form-control name_list" /></td><td><input type="number" name="qty[]" id="qty" class="form-control name_list" /></td><td><input type="number" name="amount[]" id="amount" placeholder="Enter your Amount" class="form-control name_list" /></td><td><input type="text" name="subtotal[]" id="'+total+'" class="form-control" disabled></td><td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');
        });

        $(document).on('click', '.btn_remove', function(){
        var button_id = $(this).attr("id");
        $('#row'+button_id+'').remove();
        });

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

        $('#submit').click(function(){
        $.ajax({
                url:postURL,
                method:"POST",
                data:$('#add_name').serialize(),
                type:'json',
                success:function(data)
                {
                        if(data.error){
                            printErrorMsg(data.error);
                        }else{
                            i=1;
                            $('.dynamic-added').remove();
                            $('#add_name')[0].reset();
                            $(".print-success-msg").find("ul").html('');
                            $(".print-success-msg").css('display','block');
                            $(".print-error-msg").css('display','none');
                            $(".print-success-msg").find("ul").append('<li>Record Inserted Successfully.</li>');
                        }
                }
        });
        });
</script>

html in

Add More
19 Jun
2 months ago
07 Jun
2 months ago

Vandan29 left a reply on Two Value Display In Single Dropdown In Laravel

2 method display two value in single

<select class="form-control m-input" name="branch_id">
        @foreach($branch as $branches)
                <option value="{{$branches->id}}">{{$branches->branch.$branches->branch_info}}</option>
        @endforeach
</select>

Vandan29 left a reply on Two Value Display In Single Dropdown In Laravel

try this

<select class="form-control m-input" name="branch_id">
        @foreach($branch as $branches)
            <option value="{{$branches->id}}">{{$branches->branch}} : {{$branches->branch_info}}</option>
        @endforeach
</select>
30 May
2 months ago

Vandan29 left a reply on Flash Not Work In Laravel 5.5

@TRAY2 - thanks but not working

Vandan29 started a new conversation Flash Not Work In Laravel 5.5

flash message not display include all css file and script file after not working

controller file

 public function store(Request $request){
        $acb = Abc::publish($request);
        flash('hello')->success();
        return redirect()->back();
 }

blade.php

<div class="row">
            <div class="col-md-12">
                @include('flash::message')
    </div>
</div>
22 May
2 months ago

Vandan29 left a reply on How To Duplicate Value Validation In Laravel

add this In Your Request file

public function rules()
        {
            return [
                    'addjob'=>'required|unique:Your table name,field name'
            ];
        }

try this

21 May
2 months ago

Vandan29 left a reply on Laravel Baum/baum Package Error

Done Thanks For the reply

Category Model

class Category extends Model
{

}

Change :-

class Category extends \Baum\Node
{

}
20 May
2 months ago

Vandan29 started a new conversation Laravel Baum/baum Package Error

BadMethodCallException Method toHierarchy does not exist.

Helper.php

function get_category_list()
{
        $categories = Category::all()->toHierarchy();
        $cats = [];

        foreach($categories as $category)
        {
            $cats[$category->id] = $category->name;
            if(!empty($category->children)){
                foreach($category->children as $child)
                {
                    $cats[$child->id]= '—'. $child->name;

                    if(!empty($child->children)){
                            foreach($child->children as $sub_child)
                            {
                                $cats[$sub_child->id]= '——'. $sub_child->name;
                            }
                     }
                }
        }
    }

    return $cats;
}

CategoriesController.php

public function index()
    {
            $category_list = get_category_list();
            $category_list = array('0' => 'None') + $category_list;

            $categories = Category::All()->toHierarchy();

            return view('admin.categories.index')->with([
            'cat_list' => $category_list,
            'categories' => $categories
        ]);
    }
11 May
3 months ago

Vandan29 left a reply on Error On Resource Route

@pawelmysior I was try it but same error

Vandan29 started a new conversation Error On Resource Route

I use resource route but error is coming My route:-

Route::resource('admin/portfolio','PortfolioController');

ErrorException (E_ERROR)

Route [admin.portfolio.create] not defined. (View: 
C:\laragon\www\dynamic\resources\views\admin\layouts\partials\sidebar.blade.php)

Vandan29 left a reply on Not Working Show Function In Laravel 5.7

@msoft Try this store data

<form action="{{url('studentcourceform')}}" method="post">

Route::post('studentcourceform','[email protected]');

$studentcource = Studentcource::create([
            'name' => $request->name,
            'address' => $request->address,
        'telephone' => $request->telephone,
        'cource' => $request->cource
    ]);
10 May
3 months ago

Vandan29 left a reply on Not Working Show Function In Laravel 5.7

Controller file change those line

public function show($id)

    {
        $studentcources = Studentcource::find($id);
        return view('studentcourcedata',compact('studentcources'));
    }

and my route is

            Route::get('studentcourcedata/{id}','[email protected]')->name('studentcourcedata');

try this

Vandan29 left a reply on Problem When Running Seeders Laravel 5.5

check you table name

09 May
3 months ago

Vandan29 left a reply on Problem With Adding Same Id Values In View.blade File

Change Your income_type model

public function income()

{

      return $this->hasMany('App\Income');

}

Try this

Vandan29 left a reply on Where Are You All From?

Ahmedabad, India

Vandan29 left a reply on Not Working Php Artisan Db:seed?

Check your names

Your file name: UserTablesSeeder

You call: UserTableSeeder

You add s after Table

Vandan29 left a reply on Which Method Use In Laravel 5.5 Place Of Dispatchfrom

That's because DoWhatEverCommand::class returns the current class name as a string. For your dispatch method it looks like you need to pass through an instance of the object.. Try:

$this->dispatch(app()->make(DoWhatEverCommand::class), $request);

Vandan29 started a new conversation Which Method Use In Laravel 5.5 Place Of Dispatchfrom

which method use in laravel 5.5 place of dispatch from