Cyber Monday! Get 25% off for as long as you keep your subscription. New subscribers only.

Ramlashkar

Ramlashkar

Member Since 1 Year Ago

Experience Points
1,500
Total
Experience

3,500 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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 1
1,500 XP
Nov
12
2 weeks ago
Nov
11
2 weeks ago
Activity icon

Replied to Call To A Member Function GetQuery() On Float

resoled by me ok thanks

Activity icon

Replied to Syntax Error, Unexpected 'if' (T_IF), Expecting ')' At 2nd If Statement

'annex_base_freight'=>$result->Serviceability == 'Regular' ? $result->chargablewt*$result->base_frt_chgs : $result->chargablewt*$result->base_odc_frt_chgs, 'annex_rov_chgs' => ($result->rov_chgs/100)$result->declairedval > $result->min_rov_chgs ? ($result->rov_chgs/100)$result->declairedval : $result->min_rov_chgs,

Activity icon

Replied to Where Are You All From?

Mumbai, India

Activity icon

Replied to If Condition Inside The Query,

do as....... $testdet->csat > 0 ? x : y;

Activity icon

Replied to Delete Me Plz

public function destroy($id) { $customer = customer::findOrFail($id); $customer->delete();

    return redirect()->route('customers.index');
}

public function massDestroy(Request $request)
{
    
    customer::whereIn('id', request('ids'))->delete();

    return response(null, Response::HTTP_NO_CONTENT);
}
Activity icon

Started a new Conversation Call To A Member Function GetQuery() On Float

public function query(Annexure $model) {

    $annexures = Annexure::query()
        ->join('annex_items', 'annexures.id', '=', 'annex_items.annexure_id')
        ->select('annexures.*', DB::raw('SUM(annex_items.annex_gross) as row_total'));

    return $annexures;

}
Nov
07
3 weeks ago
Activity icon

Replied to Syntax Error, Unexpected 'if' (T_IF), Expecting ')' At 2nd If Statement

Ok thanks for reply. resolved by me ==

Activity icon

Replied to Syntax Error, Unexpected 'if' (T_IF), Expecting ')' At 2nd If Statement

@sinnbeck want to store array data, not working within array ..

      'annex_base_freight'=>$result->Serviceability = 'Regular' ? $result->chargablewt*$result->base_frt_chgs : $result->chargablewt*$result->base_odc_frt_chgs,
      'annex_rov_chgs' => ($result->rov_chgs/100)*$result->declairedval > $result->min_rov_chgs ? ($result->rov_chgs/100)*$result->declairedval : $result->min_rov_chgs,
Activity icon

Started a new Conversation Syntax Error, Unexpected 'if' (T_IF), Expecting ')' At 2nd If Statement

$annexure = new Annexure(); $annexure->annex_number = $annex_number; $annexure->shipper_id = $shipperid; $annexure->annex_shippername = $s_name; $annexure->annex_created_by = Auth::user()->name; if ($annexure->save()){ $id = $annexure->id; foreach($results as $key =>$result){ $data = array( 'annexure_id'=>$id, 'annex_lrno'=>$result->lrno, 'annex_lrdate'=>$result->date, 'annex_receiver'=>$result->receivername, 'annex_cust_inv_no'=>$result->invoiceno, 'annex_cust_inv_date'=>$result->invoicedate, 'annex_shipment_mode'=>$result->shipmentmode, 'annex_nature'=>$result->natureoffreight, 'annex_service_type'=>$result->servicetype, 'annex_origin'=>$result->from, 'annex_destination'=>$result->to, 'annex_receiver_pin'=>$result->pincode, 'annex_loc_type'=>$result->Serviceability, 'annex_delivery_date'=>$result->deliveryDate, 'annex_delivery_status'=>$result->d_status, 'annex_total_package'=>$result->package, 'annex_owpkges'=>$result->aboveHundredQty, 'annex_owpkgwt'=>$result->aboveHundredWt, 'annex_actual_wt'=>$result->gwt, 'annex_chargeable_wgt'=>$result->chargablewt, 'annex_cust_inv_val'=>$result->declairedval, 'annex_dkt_charges'=>$result->dkt_chgs, 'annex_base_freight'=>$result->chargablewt*$result->base_frt_chgs,

      $rov = $data->rov_chgs/100,
      $min_rov = $data->min_rov_chgs,
      $inv_val = $result->cust_inv_val,
      $max_rov = $rov*$inv_val,

      if ($max_rov > $min_rov) {
        'annex_rov_chgs' = $max_rov;
      } else {
        'annex_rov_chgs' = $min_rov;
      }


      );

      
    AnnexItem::insert($data);
  }
Nov
03
3 weeks ago
Activity icon

Replied to Learning Scripting

I not getting results, i don't know why?

Activity icon

Replied to Learning Scripting

I not getting results, i don't know why?

Activity icon

Started a new Conversation Learning Scripting

$(document).ready(function(){ $('#calculate').click(function(e){ e.preventDefault(); /Ajax Request Header setup/ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } });

$('#calculate').html('Sending..');

$(this).autocomplete({ minLength: 0, source: function( request, response ) { $.ajax({ url: "url", method: 'post', data: $('#annex').serialize(), success: function(data){ $('#calculate').html('calculate'); var array = $.map(data, function (item) { return { label: item[autoType], value: item[autoType], data : item } }); response(array) } }); }, select: function( event, ui ) { var data = ui.item.data; id_arr = $(this).attr('id'); id = id_arr.split(""); elementId = id[id.length-1]; $('#annex_lrid'+elementId).val(data.annex_lrid); $('#annex_lrno_'+elementId).val(data.annex_lrno); } }); }); });

Activity icon

Started a new Conversation Error :Integrity Constraint Violation: 1052 Column 'id'

function example (Request $request){

$data = $request->input('id');

$ids = [];

foreach ($data as $key => $dataIdValue) {
    $ids[] = $dataIdValue;
}
$result = DB::table('shipments')->where('id',$ids)
->join('customers', 'customers.id', '=', 'shipments.customer_id')
->get();

return $result;

}

Oct
31
4 weeks ago
Activity icon

Started a new Conversation Error - Call To Undefined Function

function annexNumber() { $annexures = App\Annexure::all();

  if($annexures->isEmpty())
  {
    $annex = 'KKPL0001';
    return $annex;
  }

  foreach($annexures as $annexure)
  {
    $latest = App\Annexure::latest()->first();

    if($latest->annex_number == true)
    {
      $annex = ('KKPL'.$latest->annex_number) + (1);
      return $annex;
    }
  }
}

public function create()

  $annex_number = annexNumber();

  dd($annex_number);

}
Oct
26
1 month ago
Activity icon

Started a new Conversation How To Simplyfy This For Laravel Google Bar Charts

$month = ['Apr','May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', 'Jan', 'Feb', 'Mar'];

	$regular = shipments::select(\DB::raw("COUNT(id) as count"))->where('servicetype','!=','express')
	->groupBy(\DB::raw("month(created_at)"))
	->pluck('count');

	$express = shipments::select(\DB::raw("COUNT(id) as count"))->where('servicetype','=','express')
	->groupBy(\DB::raw("month(created_at)"))
	->pluck('count');
Sep
17
2 months ago
Activity icon

Replied to Can't Found The Mistake

solved..

missed to redirect

Activity icon

Started a new Conversation Can't Found The Mistake

public function handle($request, Closure $next, $guard = 'franchisee') { if (Auth::guard($guard)->check()) { if (!Auth::guard($guard)->user()->is_active) { Auth::guard($guard)->logout(); return redirect()->route('franchisee.login') ->with('message', trans('global.yourAccountNeedsAdminApproval')); } return redirect()->route('franchisee.dashboard'); }

    return $next($request);
}
Jun
24
5 months ago
Activity icon

Replied to What Is Best Way To Solve This?

@snapey @mvd

-- Laravel Blade--

@foreach($lrs as $lr)

        <input value="0" type="hidden" name="mLrId[]">

        <input type="checkbox" name="mLrId[]" value="{{ $lr->id }}" @if($lr->is_active == 1) checked="checked" @endif>
@endforeach

--Controller---

$rmNo = $request->input('mNumber'); $lrId = $request->input('mLrId');

    $ids = [];

    foreach ($lrId as $key => $lrIdValue) {
        $ids[] = [
            'mLrId' => $lrIdValue,
        ];
    }

    if (! empty($ids)) {            
        Lr::whereIn('id', $ids )->update(['route_number' => $rmNo]);
        Lr::whereIn('id', $ids )->update(['is_active' => 1]);

    } else {
        Lr::whereIn('id', $ids )->update(['route_number' => NULL]);
        Lr::whereIn('id', $ids )->update(['is_active' => 0]);
    }
Jun
23
5 months ago
Activity icon

Replied to What Is Best Way To Solve This?

Thanks @MVD,

but I wants edit old values.

Working and till not resolved

Activity icon

Started a new Conversation What Is Best Way To Solve This?

@php $number = 20; @endphp

      @foreach($lrs as $lr)

      <div><input type="checkbox" name="" value="{{ $lr->id }} {{  ($lr->route_number == $number ? ' checked' : '') }}" id="exampleCheck1"></div>

     @endforeach
Jun
19
5 months ago
Activity icon

Started a new Conversation What Can I Do?

$lrnos = DB::table('l_r_s') ->join('challan_manifesto_routes', 'l_r_s.id', '=', 'challan_manifesto_routes.mLrId') ->join('route_manifests', 'route_manifests.mNumber', '=', 'challan_manifesto_routes.rmNo') ->select('l_r_s.lrno')->where('route_manifests.mNumber', '=', 'challan_manifesto_routes.rmNo') ->get();

Jun
18
5 months ago
Activity icon

Started a new Conversation How To Store Multiple Values?

$chId = $request->input('mChallanId'); $rmNo = $request->input('mNumber'); $lrId = $request->input('mLrId');

    foreach ($$lrId['rows'] as $row) {
        $challan_manifesto_routes = new challanManifestoRoute([
            'mLrId' => $row['mLrId'],
            'chId'  => $chId,
            'rmNo'  => $rmNo,
        ]);

        $challan_manifesto_routes->saveMany();
    }
Activity icon

Replied to DB Query Returns Null?

thanks

Jun
13
5 months ago
Activity icon

Started a new Conversation DB Query Returns Null?

$lrs = DB::table('l_r_s') ->join('shippers', 'l_r_s.shippername', '=', 'shippers.shippername') ->join('receivers', 'l_r_s.id', '=', 'receivers.receivername') ->get();