jeevamugunthan

Web devloper at Travel Insert

Member Since 1 Year Ago

coimbatore

Experience Points
6,520
Total
Experience

3,480 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
2
Lessons
Completed
Best Reply Awards
5
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.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 2
6,520 XP
May
04
1 week ago
Activity icon

Replied to Laravel Barcode Scanner With Milon/barcode

@Snapey can you please help mee

Activity icon

Started a new Conversation Laravel Barcode Scanner With Milon/barcode

hello everyone in my application we use barcode for changing product status, now i generate barcode successfully based on product part_no and i checked with Barcode server which is exe file( https://github.com/haruncpi/barcode-server ) and androind application ( https://play.google.com/store/apps/details?id=com.learn24bd.barcode ) its working fine when i read the barcode, its update the data in excel sheet.

now i want to display the data inside my application input box for update status in database i don't have any idea for doing this please show me the way

or is ther any way to directly upload the data into database when we read the barcode ...?

please do the need full

this is the way below i generate the barcode

{!! DNS1D::getBarcodeHTML($res->part_no, "C128",1.7,44) !!}
Activity icon

Replied to Content-Type: Application/x-www-form-urlencoded; Charset=UTF-8 Set In Laravel Api Using Other Other Domain

@abdulqadir313 need to fix cors issue. in your api side. pass this line in your api header

'Access-Control-Allow-Origin:*'

this error is came from your api side

May
03
1 week ago
Activity icon

Replied to No 'Access-Control-Allow-Origin' Header Is Present On The Requested Resource.

@khin zin zin thinn nee to fix cors issue. in your api side pass this line in your api header

'Access-Control-Allow-Origin:*'
Activity icon

Replied to How To Pass Datas With Excel Import In Laravel

@snapey thanks for your reply its working fine :-)

May
02
2 weeks ago
Activity icon

Awarded Best Reply on Problem With Webpack : [webpack-cli] Error: Cannot Find Module 'webpackbar'

try this

run

npm config get prefix
Activity icon

Started a new Conversation How To Pass Datas With Excel Import In Laravel

Hi, everyone now i import csv file to database in my project its working fine. i want to insert some more columns which is not in excel sheet like customer_id i want to fill this column while importing excel sheet, i given my code below please do the needfull.

controller


    public function import()
    {
         Excel::import(new BillofmaterialImport,request()->file('file'));

        return back();
    }

}

importfile

<?php

namespace App\Imports;

use App\Models\Billofmaterial;
use Maatwebsite\Excel\Concerns\ToModel;
use Maatwebsite\Excel\Concerns\WithStartRow;

class BillofmaterialImport implements ToModel, WithStartRow
{
    /**
     * @return int
     */
    public function startRow(): int
    {
        return 2;
    }
    /**
    * @param array $row
    *
    * @return \Illuminate\Database\Eloquent\Model|null
    */
    public function model(array $row)
    {
        return new Billofmaterial([
            'part_no'     => $row[0],
            'part_description'    => $row[1],
            'version'    => $row[2],
            'st_location'    => $row[3],
            'validity'    => $row[4],
            'cat_description'    => $row[5],
            'qty_required'    => $row[6],
            'packing_group'    => $row[7],
            'sub_group'    => $row[8],
        ]);
    }
}

Apr
29
2 weeks ago
Activity icon

Replied to Test My Website For Ram Usage...

@kusanagi then no problem you can use shared hosting it self

Activity icon

Replied to Cache Always Returns NULL

Cache :: Put()i takes three parameter keys, values and time in minutes to cache the entire application data. For testing purposes, you can paste the following code in your routes:

Cache ::put(key, value , 15);

If you want to check whether the key exists or not before retrieving data, use Has() as defined below:

{
if (Cache::has('key')){
   Cache::get('key');
} else {
   Cache::put('key', $values, 20);
}});

To clear Laravel cache, simply use the forget() function as shown below:

Cache::forget('key');
Apr
26
2 weeks ago
Activity icon

Replied to Test My Website For Ram Usage...

@kusanagi what type of website is yours

If you are using any scripts or cron jobs in your website, you need to use VPN or dedicated server , otherwise you can use shared hosting it self

Apr
23
3 weeks ago
Activity icon

Awarded Best Reply on Calla Function In Laravel

@boyjarv need to inject your controller in view blade like given below

@inject('pro', 'App\Http\Controllers\DashboardController')

then call the function

<?php $appoin='' ;
  $appoin=$pro->getAverageRating();?>

then proceed the code

Activity icon

Replied to Calla Function In Laravel

@boyjarv need to inject your controller in view blade like given below

@inject('pro', 'App\Http\Controllers\DashboardController')

then call the function

<?php $appoin='' ;
  $appoin=$pro->getAverageRating();?>

then proceed the code

Activity icon

Replied to How To Show Record Not Null Parent_id In Foreach

use this whereNotNull('parent_id') in your query

Activity icon

Replied to Get Single Role From User

// get a list of all permissions directly assigned to the user

$permissionNames = $user->getPermissionNames(); // collection of name strings

$permissions = $user->permissions; // collection of permission objects

// get all permissions for the user, either directly, or from roles, or from both

$permissions = $user->getDirectPermissions();

$permissions = $user->getPermissionsViaRoles();

$permissions = $user->getAllPermissions();

// get the names of the user's roles

$roles = $user->getRoleNames(); // Returns a collection

Apr
01
1 month ago
Activity icon

Awarded Best Reply on Email

you need to include a trick in your email in order to know if user has opened/read the email by simply adding for instance including an image on your email with a route defined in your end and passing user id as query param.

<img src="http://www.example.com/user-read-email?user_id=20" />

So whenever the user opens the email img src will fire a call to your url and simply get the user id from the url, and set the flag for that user in db.

Activity icon

Replied to Email

you need to include a trick in your email in order to know if user has opened/read the email by simply adding for instance including an image on your email with a route defined in your end and passing user id as query param.

<img src="http://www.example.com/user-read-email?user_id=20" />

So whenever the user opens the email img src will fire a call to your url and simply get the user id from the url, and set the flag for that user in db.

Activity icon

Replied to Queue Workers Not Clearing Memory After The Jobs Are Done

@sr57 sorry i already mentioned the problem, if the physical memory usage gets full the site not working

and we use shared hosting we have 1GB of physical memory usage, and i don't know the system use swap memory or not

Activity icon

Replied to File Upload

@grozavule can you show me the part of AJAX code

Activity icon

Replied to Queue Workers Not Clearing Memory After The Jobs Are Done

@sr57 i see this in my server. the physical memory usage was gets full i contact my hosting providers regarding this problem, as they told the corn job is the problem

Activity icon

Started a new Conversation Queue Workers Not Clearing Memory After The Jobs Are Done

We use a lot of background processing with workers. One problem that we have noticed that the memory is not cleared after the job finishes with processing.

we use corn jobs for run this php artisan queue:work command for each 30 minutes

Mar
31
1 month ago
Activity icon

Replied to How To Store 10mb To 20mb Data

@martinbean thanks for your reply, can you please attach any example code for storing data on disk

Activity icon

Started a new Conversation How To Store 10mb To 20mb Data

hi, everyone

how can i store 10mb to 20mb data temporarily

we can use session for 5mb to 10mb, but what is the best way to store more than 10mb data

Mar
26
1 month ago
Activity icon

Replied to Laravel Queue

@corvs it runs the php artisan queue:work command for every 30 minutes to run the job for sending emails using database i set the QUEUE_CONNECTION as database

Activity icon

Replied to Laravel Queue

@wakanda okay thanks for your reply tell me if there any other way to solve this?

Activity icon

Replied to Laravel Queue

@wakanda no not specific time for emails, its depends on the user action

Activity icon

Started a new Conversation Laravel Queue

Hi, everyone in my laravel application i create an queue for sending mails its working fine , when i deploy the code in server, i create an cron job for run the php artisan queue:work command in cpanel shared hosting. i can't make supervisor for this because of the hosing plan

but the cron job approach is consuming a lot of RAM,

please anyone tell me is there any other way to do this

Mar
02
2 months ago
Activity icon

Replied to 403 Forbidden Access To This Resource On The Server Is Denied!

Check your folder permissions in server

Feb
19
2 months ago
Activity icon

Started a new Conversation How Can I Pass Get() Link In Laravel Controller

Hi, everyone.

i have an api link which is used for sending sms when i pass the link its throws error

"message": "Call to undefined function App\Http\Controllers\Doctor\get()",
    "exception": "Error",

here is my code

    public function pick_appoinment(Request $request){
        $time=$request['date'];

        $id=$request['id'];
        $appoinment=Appoinment::find($id);

        $user=User::where('id','=',$appoinment->userid)->first();

        $date=$appoinment->a_date;
        $picked=Appoinment::Wheredate('a_date','=',$date)->where('a_time','!=','')->get();
        $times=array();
        foreach ($picked as $p){
            $times[]=$p['a_time'];
        }
        if(in_array($time, $times)){
            return response()->json(['error'=>'this timeing already exists']);
        }
        $appoinment->a_time=$time;
        $appoinment->status=1;
        $appoinment->save();

        $mail_name=$user->username;
        $mail_text="The doctor consulting Appointment with Dr.UMA is confirmed. Its Scheduled at [ ".$appoinment->a_date." ".$appoinment->a_time." ]";
        $details=[
                "email"=>$user->email,
                "mail_name"=>$mail_name,
                "mail_text"=>$mail_text
            ];
        $job= (new SendEmailJob($details))->delay(Carbon::now()->addSeconds(10));
        dispatch($job);

        $sms=get('http://bulksms.cleversoindia.com/api/sendhttp.php?authkey=APIkey&mobiles='.$user->mobile.'&message=Hi,'.$mail_name.''.$mail_text.'&sender=DRUMAS&type=1&route=2');


        return response()->json(['success'=>'Record is successfully added']);
    }

here the variable sms is that link .

Dec
30
4 months ago
Dec
26
4 months ago
Activity icon

Replied to How To Add Overflow Hidden To Body To Prevent Scrolling

show some images of your screen

Activity icon

Replied to Unique Validation On Related Model

@fcode

try this under your validation rules

$question_id=$request['question_id']

'label ' => ['required','unique:options,label ,NULL,id,question_id,'.$question_id],
Nov
16
6 months ago
Activity icon

Replied to Count Divs And Show One Div

Can you please ask your question little bit clearly

Activity icon

Replied to Count Divs And Show One Div

you can add different id for each class make this changes in your for loop

var myPara=document.getElementsByClassName("example");

myPara.setAttribute("id", "id_you_like");
Activity icon

Replied to What Would Your Approach Be?

Simply you can make all companies in one table this is the best way, make all fileds as an column in db table and make each column as nullable

Activity icon

Replied to Count Divs And Show One Div

@kikoldasd can you please explain this little more then show me your values which you want to display

Activity icon

Replied to Count Divs And Show One Div

in jquery use this

$('.specific-class').length

otherwise

document.querySelectorAll('.specific-class').length;
Activity icon

Replied to Laravel Queue:work Setup In Background Cpanel

it is an one time process if you run this commend the mail will send when we trigger, if you want to send emails automatically for example (need to send emails every week first day) you need to set cron job

check this it will helps you

https://medium.com/@rafaelogic/use-laravel-notifications-and-schedule-to-send-email-notification-a1a4c652a816

Activity icon

Replied to Laravel Queue:work Setup In Background Cpanel

@neeraj1005 make it

QUEUE_CONNECTION=database

and run this commend in your cpanel terminal

php artisan queue:work

it should be work

or you can set cron job in your cpanel