amit028

Software Engineer at froiden

Member Since 10 Months Ago

Raipur

Experience Points
2,140
Total
Experience

2,860 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
11
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.

  • Community Pillar

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

Level 1
2,140 XP
Jan
16
1 day ago
Activity icon

Started a new Conversation STRIPE Collect Payments Then Pay Out In Laravel

does somebody has implemented Collect payments then pay out feature in laravel?

I have gone throught documents (https://stripe.com/docs/connect/collect-then-transfer-guide) but it is quite confusing.

Please help me out.

Activity icon

Replied to IsoFormat Error In Laravel

right, it was composer issue. Thanks @tisuchi

Jan
06
1 week ago
Activity icon

Started a new Conversation IsoFormat Error In Laravel

Hello Guys,

I am getting this error

Translator does not implement Symfony\Component\Translation\TranslatorInterface and Symfony\Component\Translation\TranslatorBagInterface. Carbon\Translator has been given. (View: checkout_page.blade.php)

on checkout_page.blade.php page, this syntax is used -

{{ \Carbon\Carbon::createFromFormat('Y-m-d', $date)->isoFormat('dddd, MMMM Do') }}

Any suggestion to solve this issue?

Note - the problem lies on isoFormat(), because when i remove that line, page is working fine.

Dec
17
1 month ago
Activity icon

Started a new Conversation DOM-PDF Is Not Supporting Chinese

DOM-PDF is not supporting Chinese

Activity icon

Started a new Conversation Sinhala Font Not Working In Dom Pdf

sinhala font not working in dom pdf

Dec
15
1 month ago
Activity icon

Started a new Conversation Custom Table Field In FormBuilder

Hello Everyone,

I am using formBuilder (https://formbuilder.online) in laravel project. Now i needed to use table (wanna draw a table with form builder), but unfortunatly, there is no option for tables.

But, they have one page in their doc (https://formbuilder.online/docs/formBuilder/options/templates/) for custom field where we can define our own custom designs. so can anyone have any idea that how can implement table here.

Thanks in advance.

Nov
22
1 month ago
Activity icon

Replied to How To Use Gitlab CI/CD So That It Any Changes On Master Branch Will Automatically Reflect On Live Site

thanks @tisuchi , but this article is not enough to understand. Can you suggest something else.

Nov
21
1 month ago
Activity icon

Awarded Best Reply on 500 Error. Internal Server Error.

Thank you very much guys for your answers. I got the solution. I ran following command via terminal and now it's working fine.

composer install php artisan optimize:clear

secondly, i gave 755 permission to storage folder and their sub folders.

lastly, gave 755 permission to my project (www.sampleproject.xyz) instead of 777.

Activity icon

Replied to 500 Error. Internal Server Error.

Hi @snapey ,

Thanks for your response. My problem has been resolved. i was missing some permissions.

Activity icon

Replied to 500 Error. Internal Server Error.

Thank you very much guys for your answers. I got the solution. I ran following command via terminal and now it's working fine.

composer install php artisan optimize:clear

secondly, i gave 755 permission to storage folder and their sub folders.

lastly, gave 755 permission to my project (www.sampleproject.xyz) instead of 777.

Nov
13
2 months ago
Activity icon

Replied to 500 Error. Internal Server Error.

@bugsysha i have tried everything whatever got on google but my problem is still remain same. :(

Nov
12
2 months ago
Activity icon

Replied to 500 Error. Internal Server Error.

Thank you for suggestion @bugsysha , but i want to host it on cpanel for now as i don;t have any other hosting plans right now.

Activity icon

Started a new Conversation How To Use Gitlab CI/CD So That It Any Changes On Master Branch Will Automatically Reflect On Live Site

Hello All,

I wanted to implement something like scenario explained below-

I have one repository on gitlab, and i wanted to use master branch codes to my site somewhere hosted on cpanel. So that any changes on master branch will directly reflect on my live hosted site.

I read somewhere that this could be implemented with the help of gitlab CI/CD but when i go though the documentation, i didn't understand anything.

Can anyone suggest me any short article or documentation which will help me to understand gitlab CI/CD documentation?

Thanks in advance :)

Activity icon

Started a new Conversation 500 Error. Internal Server Error.

Hello All,

PROBLEM DEFINITION -

I'm using laravel 7 with php version > 7 (i have tried 7.0, 7.1, 7.2, 7.3) . After doing all the development on local server, when i uploaded my project on cpanel, it is giving me this error message - "Sorry, that didn’t work. Please try again or come back later. 500 Error. Internal Server Error.". I have tried everything which i know is necessary to run laravel programs on server but still not figured out what problem my site is having.

For your information, i have tried this things after upload my project on server-

  • Given permission 777 to project, storage, apps, logs, framework, debugger folders for instance (i know permission 755 is enough to run laravel but just to run project i have given 777)
  • Run command composer install via cpanel terminal. (i did it right because it made vendor folder on project root)
  • Ensure i have .env file with correct database credentials on it.
  • Run php artisan migrate --seed . It's working fine.
  • checking my site on http://mysite.xyz/public/

Also, i'm using webpack but don't have any idea that how do i can run command npm run dev on cpanel?

Any Idea/Suggestions, what i'm missing? Thanks

Oct
30
2 months ago
Activity icon

Started a new Conversation Auto Format All Files Using Phpcs

Hello All,

I wanted to format all my contoller's code with a single phpcs command. But i'm not getting any suitable code/command to do it. I have one command which is used to format single file's code -

phpcbf --standard=PSR2 App/Providers/HelperServiceProvider.php

Does anybody has any idea about it?

Any help would be highly appreciated.

Oct
06
3 months ago
Activity icon

Started a new Conversation Use Form Builder Data In Another Field

Hello All,

I have a form builder (https://formbuilder.online/) which saves as json data in table. If i use that form and fill data, that data also saves in json format (refer form_data column data after save form). So my question is How can i use that/those data in another part of software?

**TABLE STRUCTURE - **

[before save form data]

table_name = form_builder_template

table_column_name = form_data

[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text"}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text"}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text"}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text"}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text"}]

[after save data]

table_name = form_builder table_column_name = form_data

[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text","userData":["AAA"]}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text","userData":["BBB"]}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text","userData":["CCC"]}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text","userData":["DDD"]}]
[{"type":"text","required":false,"label":"Text Field","className":"form-control","name":"text-1598897549353","access":false,"subtype":"text","userData":["EEE"]}]

So, I want to use userData AAA, BBB, CCC, DDD, EEE as a option in select in some another part of software.

Any help would be highly appreciated.

Sep
30
3 months ago
Activity icon

Started a new Conversation Compress Uploaded Image Not Resize In Laravel

Hello All,

I want to compress uploaded image without resizing it. There are several laravel packages available which provides image manipulation but none of them have the feature which i needed.

There are many online tools available which provides feature which i am talking about. Like i upload 3MB png image and after compress it gives me less than 3MB image depanding on image (Sometimes it doesn't compress much).

Some of websites are-

  1. compressjpeg.com
  2. tinyjpg.com and many more.

Any Suggestions?

Sep
15
4 months ago
Activity icon

Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?

@automica

The project is already developed. Just need proctoring module to be added. But no leads yet.

Activity icon

Awarded Best Reply on Request File Validation Fails Not Redirecting To View Page In Which Form Is Submitting.

Thank You @mvd

Yes, i have just corrected the rules. But the problem is that page is not redirecting to view file again instead of giving this message-

{"message":"The given data was invalid.","errors":{"email":["The email has already been taken."]}}

any suggestions? Thanks in advance.

Sep
09
4 months ago
Activity icon

Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?

@automica Right. Could you ping me in mail for further details?

Sep
07
4 months ago
Activity icon

Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?

@automica , I'm looking for this feature in professional project. I am bit aware of its complexity. If you got any information about any existing systems in, Please tag me here. Thanks in advance.

Sep
05
4 months ago
Sep
04
4 months ago
Activity icon

Started a new Conversation Does Anybody Give Me An Idea To Making Proctoring System In Laravel?

I am working on online exam system where i need to implement advanced proctoring system where invigilator has an access of camera's of all candidates giving exams (it will something look like Zoom's Gallery view) (Please consider any third party subsciption if require).

Any suggestion would be highly appreciated and Thanks in advance.

Aug
28
4 months ago
Activity icon

Replied to Laravel-dompdf Thai Language Not Working

Thank you @sinnbeck ,

It worked. This is the working code -

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Laravel</title>
        <style>
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: bold;
            src: local('Quattrocento Sans Bold'), local('QuattrocentoSans-Bold'),url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNew.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: bold;
            src: local('Quattrocento Sans Bold'), local('QuattrocentoSans-Bold'), url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewBold.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: bold;
            src: local('Quattrocento Sans Bold'), local('QuattrocentoSans-Bold'), url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewBoldItalic.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: bold;
            src: local('Quattrocento Sans Bold'), local('QuattrocentoSans-Bold'), url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewItalic.ttf') }}") format('truetype');
        }

        body {
            font-family: 'THSarabunNew';
        }
        </style>
    </head>
    <body>
        <h1>
            แดชบอร์ด   {{-- NOW WORKING --}}
        </h1>
         
        <p>
            แดชบอร์ด    {{-- WORKING --}}
        </p>
    </body>
</html>

Activity icon

Replied to Laravel-dompdf Thai Language Not Working

Hello @sinnbeck ,

The problem is little bit weird. Text is not rendering because of h1 tag, but if i am writing same text within p or span tags, then it is working. I have 30+ pages where i am using dompdf. Any idea why it is happening.

Working code

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Laravel</title>
        <style>
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: normal;
            src: url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNew.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: normal;
            src: url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewBold.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: normal;
            src: url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewBoldItalic.ttf') }}") format('truetype');
        }
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: normal;
            src: url("{{ asset('http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/THSarabunNewItalic.ttf') }}") format('truetype');
        }

        body {
            font-family: 'THSarabunNew';
        }
        </style>
    </head>
    <body>
        <h1>
            แดชบอร์ด    // not working
        </h1>
         
        <p>
            แดชบอร์ด   //working
        </p>
    </body>
</html>

Activity icon

Replied to Laravel-dompdf Thai Language Not Working

Yes, I tried but didn't work.

For your information, i have copied /fonts folder within public, resources and storage directories just in case if it works.

this is font link - http://164.115.33.174/awards_opdc/assets/fonts/THSarabunNew/

And those fonts are linked correct because if i am downloading that font on button click then it is downloading means it is linked correctly, right?

Activity icon

Started a new Conversation Laravel-dompdf Thai Language Not Working

Hello Guys,

I'm using barryvdh/laravel-dompdf version 0.8.6. When i'm trying to print THAI language, instead of showing thai text it is showing ????? . I tried with font THSarabunNew.ttf but doesn't work. This is my code -

ROUTE -

Route::get('/print', function () {
    $pdf = PDF::loadView('print');
    return @$pdf->stream();
})->name('print');

VIEW (print.blade.php)

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Laravel</title>
        <style>
        @font-face {
            font-family: 'THSarabunNew';
            font-style: normal;
            font-weight: normal;
            src: url("{{ asset('fonts/THSarabunNew.ttf') }}") format('truetype');
        }
        body {
            font-family: 'THSarabunNew';
        }
        </style>
    </head>
    <body>
        <h1>
            แดชบอร์ด
        </h1>
    </body>
</html>

Any suggestion would be highly appreciated.

Activity icon

Replied to Trying To Get All Values From GroupBy

Thank you @silencebringer

It worked. :)

Aug
26
4 months ago
Activity icon

Started a new Conversation Trying To Get All Values From GroupBy

Hello Guys,

PROBLEM DEFINITION - i have 3 tables, namely - waitlists, waitlist_services, waitlist_service_times. I am joining these 3 tables like this -

$waitlist = Waitlist::with('waitlist_services')->select('waitlist_service_times.day', 'employee_sub_categories.id as emp_sub_cat_id', 'waitlist_services.service_request_id', 'waitlist_service_times.waitlist_services_id', 'waitlist_services.id as waitlist_ser_id', 'waitlist_services.waitlist_id' ,'waitlists.id', 'waitlists.date_joined', 'waitlists.priority', 'client_intakes.first_name', 'client_intakes.last_name', 'client_intakes.client_dob', 'waitlist_service_times.start_time','waitlist_service_times.end_time','waitlist_service_times.or_start_time','waitlist_service_times.or_end_time', 'employee_sub_categories.sub_cat_name')
            ->join('client_intakes', 'client_intakes.id', 'waitlists.client_intakes_id')
            ->join('waitlist_services', 'waitlists.id', 'waitlist_services.waitlist_id')
            ->join('waitlist_service_times', 'waitlist_services.id', 'waitlist_service_times.waitlist_services_id')
            ->join('employee_sub_categories', 'employee_sub_categories.id', 'waitlist_services.service_request_id');

$waitlist = $waitlist->groupBy('waitlists.id');
$waitlist = $waitlist->get();

CURRENT OUTPUT - if remove line $waitlist = $waitlist->groupBy('waitlists.id');

| waitlist_id | service_request_id's | day's |

| 1 | 1 | Monday |

| 1 | 2 | Tuesday |

EXPECTED OUTPUT -

| waitlist_id | service_request_id's | day's |

| 1 | 1,2 | Monday, Tuesday |

RELATIONS- waitlists has many waitlist_services , waitlist_services has many waitlist_service_times.

Any help would be appreciated.

Jul
21
5 months ago
Activity icon

Replied to Request File Validation Fails Not Redirecting To View Page In Which Form Is Submitting.

CONTROLLER-

public function store_company(RegisterCompany $request) {

}

this one you wanted to see? By the way i'm using a separate request file for validation. And complete code i have mentioned in very first question of this page. Please read again and then also you need to know something else and please let me know.

So my question is to why Request validation failture not redirecting me to view file?

Activity icon

Replied to Request File Validation Fails Not Redirecting To View Page In Which Form Is Submitting.

Thank You @mvd

Yes, i have just corrected the rules. But the problem is that page is not redirecting to view file again instead of giving this message-

{"message":"The given data was invalid.","errors":{"email":["The email has already been taken."]}}

any suggestions? Thanks in advance.

Activity icon

Started a new Conversation Request File Validation Fails Not Redirecting To View Page In Which Form Is Submitting.

PROBLEM

I am submitting a form using and for validation i'm using Request file. There i have given validation for email that it should be unique. When i am trying to insert same email it is showing error which is good but i wanted to redirect it back to view. This is my code

CONTROLLER-

public function store_company(RegisterCompany $request) {

}

REQUEST FILE -

namespace App\Http\Requests\Company;

use App\GoogleCaptchaSetting;

use App\Http\Requests\CoreRequest;

use App\Rules\Captcha;

class RegisterCompany extends CoreRequest {

public function rules()
{
    $google_captcha = GoogleCaptchaSetting::first();

    $rules =  [
        'business_name' => 'required',
        'email' => 'required|email',
        'contact' => 'required',
        'address' => 'required',
        'name' => 'required',
        'password' => 'required|min:6'
        ];

        if($google_captcha->status == 'active' && $google_captcha->v2_status == 'active' )
        {
            $rules['g-recaptcha-response'] = new Captcha();
        }

        return $rules;
}

}

ERROR -

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '[email protected]' for key 'users_email_unique' (SQL: insert into users (name, email, password, company_id, updated_at, created_at) values ([email protected], [email protected], $2y$10$odzYOR9Ox7SaB6KEfRFC3ulhbjOSb9.VFh58S1iSbsVaCKVoRRl1q, 106, 2020-07-21 08:37:10, 2020-07-21 08:37:10))