Software Engineer at froiden
Member Since 10 Months Ago
Raipur
2,860 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
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.
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.
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.
thanks @tisuchi , but this article is not enough to understand. Can you suggest something else.
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.
Replied to 500 Error. Internal Server Error.
Hi @snapey ,
Thanks for your response. My problem has been resolved. i was missing some permissions.
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.
Replied to 500 Error. Internal Server Error.
@bugsysha i have tried everything whatever got on google but my problem is still remain same. :(
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.
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 :)
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-
composer install
via cpanel terminal. (i did it right because it made vendor folder on project root)php artisan migrate --seed
. It's working fine.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
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.
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.
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-
Any Suggestions?
Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?
@automica , ThankYou. I will let you know.
Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?
The project is already developed. Just need proctoring module to be added. But no leads yet.
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.
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?
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.
Replied to Does Anybody Give Me An Idea To Making Proctoring System In Laravel?
Absolutely nothing. :(
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.
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>
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>
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?
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.
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');
EXPECTED OUTPUT -
RELATIONS- waitlists has many waitlist_services , waitlist_services has many waitlist_service_times.
Any help would be appreciated.
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?
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.
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))