dipakrataniagile

dipakrataniagile

Member Since 1 Year Ago

Ahmedabad

Web Developer at Ahmedabad

Experience Points 12,570
Experience Level 3

2,430 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 113
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

10 May
1 week ago

dipakrataniagile left a reply on Finding Out If A Table Is Empty

I believe this will do it:

if ($result->count()) { // do something } As the collection returned by the query builder implements PHP's Countable Interface, this should also work:

if (count($result)) { // do something }

09 May
1 week ago

dipakrataniagile left a reply on Insert Selected Id Into Another Table

It looks like you are using an older PHP version or Laravel version. Can you tell us what versions you use?

08 May
1 week ago

dipakrataniagile left a reply on How To Run A Command On A Specific Day At 9:00 Am?

$schedule->command('reminders:send') ->yearly() ->between('2018', '2020');

06 May
1 week ago

dipakrataniagile left a reply on How To Add Export Buttons To Yajra/laravel-datatables?

Please Check below code which I implement for excel.

var question_sample_report = $('#question_sample_report').dataTable({

            "bLengthChange": false,

            "processing": false,

            "serverSide": true,

            "responsive": true,

            "order": [[1, "asc"]],

            "bStateSave": false, //for load back page where edit action was applied

            dom: 'Bfrtip',

            buttons: [

                {
                    extend: 'excel',
                    title: 'Manage Event Forms',
                    text: 'Export To Excel',
                    className: 'exportbutton',
                    exportOptions: {
                        columns: ':visible:not(.not-export-col)'
                    }
                },
                {
                    extend: 'columnsToggle',
                    columns: show_cols,
                },
            ],
            "oLanguage": {"sInfo": "Showing _START_ to _END_ of _TOTAL_ Manage Event Form(s)", "sSearch": "", "sInfoEmpty": "", "sProcessing": "Please Wait...", "sZeroRecords": "No Record found."},

            "ajax": {
                headers: {
                    'X-CSRF-TOKEN': 'ecJnsY78Kh3jagvTfYP9MKQPOw1sGJqE6uYdDA3n',
                },

                'type': 'POST',

                'url': 'your url',

                error: function (jqXHR, textStatus, errorThrown) {
                    //    console.log('ERRORS: ' + textStatus);
                },

            },

            "bFilter": true,

            "fnRowCallback": function (nRow, aData, iDisplayIndex) {

                var oSettings = question_sample_report.fnSettings();
                $("td:first", nRow).html(oSettings._iDisplayStart + iDisplayIndex + 1);

                return nRow;
            },
            "language": {
                "emptyTable": "No Record found.",
                "search": ""
            },
            "columns": [
                {"data": "id", "searchable": false, "bsortable": false, "class": "table_titlecase_record"},
                {"data": "name","name": "sq.name", "class": "table_titlecase_record"},
                {"data": "form_type", "searchable": false, "bsortable": false, "orderable": false},
                {"data": "action", "class": "table_titlecase_record", "searchable": false, "bsortable": false, "orderable": false},
            ],
            aoColumnDefs: [
                {targets: -1, visible: show_action}
            ]
        });

dipakrataniagile left a reply on How To Add Export Buttons To Yajra/laravel-datatables?

Please Check below code which I implement for excel.

var question_sample_report = $('#question_sample_report').dataTable({ "bLengthChange": false, "processing": false, "serverSide": true, "responsive": true, "order": [[1, "asc"]], "bStateSave": false, //for load back page where edit action was applied dom: 'Bfrtip', buttons: [ { extend: 'excel', title: 'Manage Event Forms', text: 'Export To Excel', className: 'exportbutton', exportOptions: { columns: ':visible:not(.not-export-col)' } }, { extend: 'columnsToggle', columns: show_cols, }, ], "oLanguage": {"sInfo": "Showing START to END of TOTAL Manage Event Form(s)", "sSearch": "", "sInfoEmpty": "", "sProcessing": "Please Wait...", "sZeroRecords": "No Record found."}, "ajax": { headers: { 'X-CSRF-TOKEN': 'ecJnsY78Kh3jagvTfYP9MKQPOw1sGJqE6uYdDA3n', }, 'type': 'POST', 'url': 'your url', error: function (jqXHR, textStatus, errorThrown) { // console.log('ERRORS: ' + textStatus); }, }, "bFilter": true, "fnRowCallback": function (nRow, aData, iDisplayIndex) {

                var oSettings = question_sample_report.fnSettings();
                $("td:first", nRow).html(oSettings._iDisplayStart + iDisplayIndex + 1);

                return nRow;
            },
            "language": {
                "emptyTable": "No Record found.",
                "search": ""
            },
            "columns": [
                {"data": "id", "searchable": false, "bsortable": false, "class": "table_titlecase_record"},
                {"data": "name","name": "sq.name", "class": "table_titlecase_record"},
                {"data": "form_type", "searchable": false, "bsortable": false, "orderable": false},
                {"data": "action", "class": "table_titlecase_record", "searchable": false, "bsortable": false, "orderable": false},
            ],
            aoColumnDefs: [
                {targets: -1, visible: show_action}
            ]
        });
22 Apr
3 weeks ago

dipakrataniagile left a reply on Login Interface Take A Long Time To Display

Goto console. and check your page redirect was not correct. it was redirected many times

dipakrataniagile left a reply on PHP

Yes

dipakrataniagile started a new conversation Work On Maintenance Mode

Hello,

I want to work on my production server site when maintenance is on. means users will not able to access that site on that .they will able to see only maintenance downtime message and as a developer, I can work and debug a problem on the same URL it possible. and how?

16 Apr
1 month ago

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

Check pacakge Details again and its link which i share with you

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

eague\Flysystem\AwsS3v3\AwsS3Adapte

this error is not related to excel or its plugin

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

$file = (new UsersExport)->store('Sales Register 2019 (Cr.xlsx','D');

where is your closing brace ')'?

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

@VANDAN - store function will use in attach. don't use it before that

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

"maatwebsite/excel": "^2.1",

This is my version

you need to find it how to save excel file .use that command it will work

dipakrataniagile left a reply on Laravel SelectRaw

DB::raw('IFNULL(TRIM(e.event_title),"NULL") as EventName')

see above example

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

$transaction_summary_file = Excel::create('North American Transaction Summary') . '', function($excel) use($transaction_record, $export_event_field)

{ //Begin Add Yor Code For Excel //End

      $sendown_mail = Mail::send('emails.birthday_wishes', ['content' => $mail_content], function($message) use (accountatnemail) 
             { 
                      $message->from('[email protected]', 'BK Management'); 
                      $message->to($accountatnemail); $message->replyTo(config('mail.replyTo.address'), config('mail.replyTo.name')); 
                      $message->subject('Subject');
                      $message->attach($transaction_summary_file->store("xlsx", false, true)['full']); });

}

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

yes it's possible I was implemented it

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

$transaction_summary_file = Excel::create('North American Transaction Summary - ' . $checkdate . ' - ' . ucwords(trim($value['country_name'])) . '', function($excel) use($transaction_record, $export_event_field) {

$sendown_mail = Mail::send('emails.birthday_wishes', ['content' => $mail_content], function($message) use ($value, $checkdate, $accountatnemail, $transaction_summary_file) { $message->from('[email protected]', 'BK Management'); $message->to($accountatnemail); $message->replyTo(config('mail.replyTo.address'), config('mail.replyTo.name')); $message->subject('North American Transaction Summary - ' . $checkdate . ' - ' . ucwords(trim($value['country_name'])) . ''); $message->attach($transaction_summary_file->store("xlsx", false, true)['full']); });

}

dipakrataniagile left a reply on How To Send Mail Attachment (csv File) In Laravel

@VANDAN - Why you are downloading excel, just create and attach it in email.

dipakrataniagile left a reply on Database Migrate From MySQL To Azure SQL

@TRAY2 - Thanks Again. which Steps I need to take for migrating

dipakrataniagile left a reply on Modify Email "from" In Laravel 5.1

@JONJIE - Yes. but so of the email are free with their limit.

dipakrataniagile left a reply on Modify Email "from" In Laravel 5.1

@JONJIE - Yes. I had tried. That functionality will work only when you will send email from Gmail account after login. suppose you have personal Gmail account and you want to add your company email account then if that email address is valid then if you will add that email address and when you will send an email to a person then in a form section there will two email shows up and you can select from it.

I implemented third-party email provider sendgrid in my project .it work very fine

dipakrataniagile left a reply on Images Not Saving To Path When I Update My Database?

Try Below One

$ProfileImgPath = base_path() . '/public/uploads/users/';

if (Input::hasFile('photo')) { //To generate rando name of image $fileName = rand(11111, 99999) . str_replace(' ', '_', Input::file('photo')->getClientOriginalName());

        Image::make(Input::file('photo'))->resize(400, 400)->save($ProfileImgPath . $fileName);
    }

dipakrataniagile left a reply on Database Migrate From MySQL To Azure SQL

@TRAY2 - Thank you for your reply . but this tutorial for Azure MySql. I Need For Azure SQL

dipakrataniagile left a reply on Modify Email "from" In Laravel 5.1

@JONJIE - Yes, Bro. If you implemented it With Gmail. Your Gmail email address will be visible in From user. If You want to use your specified email. you may implement third party email like sendgrid.

https://sendgrid.com/docs/for-developers/sending-email/v2-php-code-example/

dipakrataniagile started a new conversation DAtabase Migrate From MySQL To Azure SQL

Hello Friends,

Right now in my project, we are using MySQL Database. Now we want to implement the Azure SQL Database.

This is my current database driver mentioned below:

'default' => env('DB_CONNECTION', 'mysql')

My Question is Which changes in need to apply in the database driver / what value may I set in place of MySQL in DB_Connection value?

Which steps I need to follow for migrate MySQL to Azure SQL. I am new in Azure SQL. Please help me. Thank In Advance.

dipakrataniagile started a new conversation Database Driver For Azure SQL

Hello Friends,

Right now in my project, we are using MySQL Database. Now we want to implement the Azure SQL Database.

This is my current database driver mentioned below:

'default' => env('DB_CONNECTION', 'mysql')

My Question is Which changes in need to apply in the database driver / what value may I set in place of MySQL in DB_Connection value?

Which steps I need to follow for migrate MySQL to Azure SQL. I am new in Azure SQL. Please help me. Thank In Advance.