Van1310

Van1310

Laravel Developer at Byte and Bits At Ahmedabad

Member Since 1 Year Ago

bhavnagar

Experience Points
27,440
Total
Experience

2,560 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
127
Lessons
Completed
Best Reply Awards
10
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 6
27,440 XP
20 Sep
2 days ago
19 Sep
3 days ago

Van1310 left a reply on Api-ms-win-crt-runtime-l1-1-0-dll Missing Laragon

yes i download window 7 service pack 2 64 bit and update my window 7 but same error

Van1310 left a reply on Api-ms-win-crt-runtime-l1-1-0-dll Missing Laragon

@munazzil

yes i try to install service pack 2.0 but cant install and error like

"this service pack does not apply to version of window running on this computer"

Van1310 left a reply on Laravel DataTables Not Working

@phoenix5

because you try php artisan config:cache & clear so your project now its clear not any data save you need to try

composer dump-autoload
php artisan cache:clear

Van1310 left a reply on Api-ms-win-crt-runtime-l1-1-0-dll Missing Laragon

@munazzil i try to all update but same error so any idea how its fix?

Van1310 started a new conversation Api-ms-win-crt-runtime-l1-1-0-dll Missing Laragon

i have window 7 64bit when i install laragon 4.0.16 but i installed then error like api-ms-win-crt-runtime-l1-1-0-dll missing laragon

i already update my window 7 and c++ redistributable install but can't fix it

12 Sep
1 week ago

Van1310 left a reply on Data Can't Update

Ya Thank you all @ftiersch @mstrauss @resin For Amazing Support and helping for us

Van1310 left a reply on Data Can't Update

@resin @ftiersch my website route http://localhost/new/public/round/21

but when i update data to click dropdown then error like not found route 404

Van1310 left a reply on Data Can't Update

yes i try hidden fields with id but error is same like

route not define vendors.bundle.js:1 GET http://localhost/new/public/round/exam/level/21/3 404 (Not Found)

Van1310 left a reply on Data Can't Update

Thank You for reply @ftiersch

i have lots of users so foreach use and particular user id fetch

"exam/level/"+ id + "/" + level

same error http://localhost/new/public/round/exam/level/21/3 404 (Not Found)

Van1310 left a reply on Data Can't Update

@mstrauss

Thanks you for reply i try this but same error vendors.bundle.js:1 GET http://localhost/new/public/round/exam/level/21/3 404 (Not Found)

url: "exam/level/"+id + "/" + level,

Van1310 started a new conversation Data Can't Update

hii i am now data update using ajax but 404 (Not Found) error when data update

here is my blade file

@foreach ($user as $row)
        <input type="hidden" id="uid" value="{{$row->id}}" name="user_id">
    @endforeach                                
    <select class="form-control m-input" name="level_id" id="level">
        @foreach ($level as $row)
                <option value="{{$row->id}}"> {{$row->level}} </option>
            @endforeach
     </select>
     <div id="autosave"></div>

<script type="text/javascript">
        $( "#level" ).change(function() { 
            var id =$("#uid").val();
            var level =$("#level").val();
            console.log(level + " " + id);
            $.ajax({
                    type: "GET",
                    url: "level/"+ id + "/" + level,            
                    success: function(data){
                    console.log(data);
                    $("#updated").val(data);
                    },
            });
        });
</script>

here is my controller file

public function level_update($id, $level)
    {
        \DB::table('examallocates')
                ->where('id','=',$id)
                ->update([
                    'level_id'=>$level]);
                    flash('Exam Updated')->success();
                echo $level;
    }

here is my route file

    Route::get('exam/level/{id}/{level}',
    array('as'=>'level.update','uses'=>'Admin\[email protected]_update'));
10 Sep
1 week ago

Van1310 left a reply on Can't Display My Background Image

@ftiersch

yes try this but not working

Van1310 left a reply on Can't Display My Background Image

@ftiersch

yes my image in public directory

D:\laragon\www\new\public\user\img\slider\lg.jpg

yes my image in public folder in user\img\slider

Van1310 started a new conversation Can't Display My Background Image

when i attach my image in css but cant display

here is my css file

.image{
    background-image: url('user/img/slider/lg.jpg');
}

here is my blade file

<section class="section-login-register parallax-bg half-bg image">
    <span class="overlay" data-hover-color="#000" data-hover-opacity="0.75">
    </span>
</section>

when i try to add background image but cant display in front

i dont know how please help me

09 Sep
1 week ago

Van1310 left a reply on Payumoney Integrate In Laravel 5.5

@jay_chauhan

yes i study and work but how to implement in my project bcoz i can't understand how's its work in my controller and blade file so please give me some brief description or else some example thanks

06 Sep
2 weeks ago

Van1310 left a reply on Payumoney Integrate In Laravel 5.5

yes thanks for reply i try this but i dont understand how to do it when i create blade file and package install but how to set controller and migration also how to integrate whole project please guide me

Van1310 started a new conversation Payumoney Integrate In Laravel 5.5

how to integrate payumoney in laravel 5.5 in my website

i dont understand how its work and i also search google but cant find any packages for laravel to intergrate

please help me out

thank you guys

05 Sep
2 weeks ago

Van1310 started a new conversation Undefined Offset: 30

when i try to excelsheet import error like Undefined offset: 30

in my controller

public function import(Request $request) 
    {
        Excel::import(new FlipcartImport, $request->file('import_file'));

        $file = Excel::download(new FlipcartExport,'flipcartsheet.xlsx');
    return $file;
    }

Import file

public function model(array $row)
    {
        return new Flipcartsheet([
            'BillNo' => $row[0],                            'BillDate' => $row[1],
            'BillType' => $row[2],                      'PartyName' => $row[3],
            'InvoiceType' => $row[4],                   'BillAmount' => $row[5],
            'City' => $row[6],                              'state' => $row[7],
            'BillToBillRequired' => $row[8],         'BookCode' => $row[9],
            'Narration' => $row[10],                    'ProductName' => $row[11],
            'Quantity' => $row[12],                     'Unit' => $row[13],
            'Quantity2' => $row[14],                    'Unit2' => $row[15],
            'Narration' => $row[16],                    'ProductName' => $row[17],
            'Quantity' => $row[18],                     'Unit' => $row[19],
            'Quantity2' => $row[20],                    'Unit2' => $row[21],
            'Quantity3' => $row[22],                    'Unit3' => $row[23],
            'Quantity4' => $row[24],                    'Unit4' => $row[25],
            'LocationName' => $row[26],              'Rate' => $row[27],
            'DiscountPercentage' => $row[28],    'BeforeDiscountAmount' => $row[29],
            'DiscountAmount' => $row[30],          'Amount' => $row[31],
            'LineType' => $row[32],                     'PlaceOfSupply' => $row[33],
            'ReverceChargeApplicable' => $row[34],   
        'GSTINNo' => $row[35]
        ]);
    }

thanks i use maatwebiste excel packages 3.1

03 Sep
2 weeks ago

Van1310 left a reply on Training & Appointment

first of all bike field add one more field called status when someone book your bike 00001 then status field add 1 then dropdown check if status value 1 then cant show bike every user same process just try this

Van1310 left a reply on Error When Making A New Model

ok then please remove unsigned

 $table->bigInteger('user_id');
    $table->bigInteger('permission_id');

Van1310 left a reply on Error When Making A New Model

php artisan make:model Message without -m try this

Van1310 left a reply on Error When Making A New Model

In .env in project

DB_PORT=3306 to DB_PORT=33060

also for the PHP requests to work do DB_HOST=localhost

Van1310 left a reply on A Non-numeric Value Encountered

yes i use maatwebsite package 3.1 but when i import date then error line

'Bill_Date' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row[1])->format('d-m-y'),

'A non-numeric value encountered'

02 Sep
2 weeks ago

Van1310 left a reply on A Non-numeric Value Encountered

i passing data non-numeric (date) value i expecting a date format value

Van1310 started a new conversation A Non-numeric Value Encountered

when i try to import my excel sheet in database then error like 'A non-numeric value encountered'

here is my code

return new Salesregister([
            'Vch_Series' => $row[0],            
            'Bill_Date' => \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($row[1])->format('d-m-y'), 
            'Bill_No' => $row[2],               'Party_Name' => $row[3], 
            'Item_Name' => $row[4],             'Qty' => $row[5],
            'Price' => $row[6],                 'Amount' => $row[7], 
            'Cash_Acc_Amount' => $row[8],       'Credit_Card2_Amount' => $row[9], 
            'Credit_Card3_Amount' => $row[10],  'Amount_Grand_Total' => $row[11], 
      ]);

Van1310 left a reply on Image Not Display In Laravel 5.7

try this

<img src="{{ ( $member->passport != Null ) ? asset('storage/' . $member->passport)}} : {{asset('storage/public/passports/no_image.jpg')}}" class="w3-circle" style="height:106px;width:106px" alt="Passport" / >
31 Aug
3 weeks ago

Van1310 left a reply on How To Update All Option ?

@yezawhein

here is my option table relationship

class Option extends Model
{
        protected $fillable=['qid','option'];
        public function quiz()
        {
                return $this->belongsTo('App\Quiz','qid');
        }
}

here is my quiz table relationship

class Quiz extends Model
{
        protected $table = 'quiz';
        protected $fillable = [
            'level_id','quiz','question_complexity','tie_breaker','marks','author'];

        public function options()
        {
                return $this->hasMany('App\Option');
        }
}

one quiz hasmany options & options belongs to quiz here

Van1310 left a reply on How To Update All Option ?

sorry its my coding partner so its not find solution how to do it , and i also confused how to do it ?

i have two tables but i have four option in array but when i try to update options then only one option can update then other 3 option is same value update so please give some suggestion how to do it

Van1310 started a new conversation How To Update All Option ?

i have two migrations quiz and option when i update a question and option but only update question and first option update in all three option are same value so how to update all option in particalur question

here is my controller file

public function question(Request $request,$id)
    {
        \DB::table('quiz')
                ->where('id','=',$id)
                ->update([
                'question' => $request->get('question'),               
        ]);

        $qid=quiz::where('id','=',$id)->get();
        $option=$request->get('option');
        foreach($option as $option)
        {
            \DB::table('opts')
                ->where('qid','=',$id)
                ->update([
                        'option'=> $options
                ]);
        }
        return back();
}

thanks

Van1310 left a reply on How To Make Text Bold In Laravel Blade Template

ok so can i show your full code

or try to display onther method like this

<span style="font-weight: bold;"> {{ $accepted_invitation->first_name }} </span>
or
<b> {{ $accepted_invitation->first_name }} </b>

Van1310 left a reply on How To Make Text Bold In Laravel Blade Template

try this

<span style="font-weight: bold;"> {!! $accepted_invitation->first_name !!} </span>
or
<b> {!! $accepted_invitation->first_name !!} </b>
30 Aug
3 weeks ago

Van1310 left a reply on Update Data In Two Migrations With One Post Method

can you try this without foreach ?

    \DB::table('options')
    ->where('question_id','=',$id)
    ->update([
        'option'=> $option
    ]);

Van1310 left a reply on Package Boilerplate

can your explain what's the benifit of your packages?

Van1310 started a new conversation Razorpay Popup Button Not Working

i install razorpay packages laravel 5.5

when i click pay buttton dosent work a popup modal

here is my blade file code

<div class="pay">
        <td>
        <button class="razorpay-payment-button btn filled small" id="paybtn" type="button">
            Pay with Razorpay
        </button>
    </td>
</div>

here is my script file

<script>
        function demoSuccessHandler(transaction) {
                $.ajax({
                    method: 'post',
                    url: "{!!route('onlinepayment')!!}",
                    data: {
                            "_token": "{{ csrf_token() }}"
                    },
            complete: function (r) {
                console.log('complete');
                console.log(r);
            }
        })
    }
</script>

<script>
        var options = {
                key: "{{ env('RAZORPAY_KEY') }}",
                amount: '{!! $sum !!}',
                description: 'fees',
                handler: demoSuccessHandler
        }
    </script>

<script>
        window.r = new Razorpay(options);
        document.getElementById('paybtn').onclick = function () {
            r.open()
        }
    </script>

thanks

26 Aug
3 weeks ago

Van1310 started a new conversation How To Add Alert Box When Time Rich Zero In This Script

how to add alert box when time rich zero in script

here is my code

<script>
    function countdown(seconds) {
    seconds = parseInt(sessionStorage .getItem("seconds"))||seconds;

    function tick() {
        seconds--; 
        sessionStorage .setItem("seconds", seconds)
        var counter = document.getElementById("timer");
        var current_minutes = parseInt(seconds/60);
        var current_seconds = seconds % 60;
        counter.innerHTML = current_minutes + ":" + (current_seconds < 10 ? "0" : "") + current_seconds;
        if( seconds > 0 ) {
            setTimeout(tick, 1000);
            } 
        }
    tick();
    }
    var time=countdown({!! json_encode($time) !!});
</script>

thanks

23 Aug
4 weeks ago

Van1310 left a reply on Laravel + Sentry

read this doc may be its help you

https://sentry.io/for/laravel/

Van1310 left a reply on Socialite Facebook Login Problem On Mobile

show me your code or descirbe more

Van1310 left a reply on Ajax Url Not Found

i try this but same error

$.ajax({
        url: "{{ url('dashboard/links/set-item-schema') }}",
        // ...

Van1310 started a new conversation Ajax Url Not Found

After click on button url not found in ajax script

here is my code

$('.btn-apply').click(function () {
        var btn = $(this);
        var tRowId = $(this).parents("tr").attr("data-id");
        var schema_id = $(this).siblings('select').val();

    $.ajaxSetup({
        headers: {
                'X-XSRF-TOKEN': "{{ csrf_token() }}"
            }
     });

    $.ajax({
            url: "url('dashboard/links/set-item-schema')}}",
            data: {link_id: tRowId, item_schema_id: schema_id, _token: "{{ csrf_token() }}", _method: "patch"},
            method: "post",
            dataType: "json",
            success: function (response) {
                //   alert(response.msg);
                btn.hide();
            }
        });
    });

here is my route

Route::resource('/links', 'LinksController');

here is my controller file

public function setItemSchema(Request $request)
    {
        if(!$request->item_schema_id && !$request->link_id)
                return;
        $link = Link::find($request->link_id);
        $link->item_schema_id = $request->item_schema_id;
        $link->save();
        return response()->json(['msg' => 'Link updated!']);
    }

thank you