Btw how do you deploy laravel api with vuejs i front end?

|
fullyundetectablepayload 2022-02-07 07:37:21
dhaveb 2022-02-07 07:30:32
For Heruko, how do i assign my example.com to that heruko? so i won’t be typing that long url provided by heruko?

You need to add cc in heroku for that

fullyundetectablepayload 2022-02-07 07:46:30
natghi2010 2022-02-06 18:36:25
And the service you are looking for is fcm

Can’t figure out fcm, is there something “easy”

Ojsholly 2022-02-07 07:54:34
dhaveb 2022-02-07 07:30:32
For Heruko, how do i assign my example.com to that heruko? so i won’t be typing that long url provided by heruko?

You can do that from the heroku project settings

dhaveb 2022-02-07 07:56:58
Ojsholly 2022-02-07 07:54:34
You can do that from the heroku project settings

Btw how do you deploy laravel api with vuejs i front end? In the documentation of heruko its example.com/api/

Someone wanted to use api as subdomain like
api.example.com but there was CORS issue.

Ojsholly 2022-02-07 08:11:08
dhaveb 2022-02-07 07:56:58
Btw how do you deploy laravel api with vuejs i front end? In the documentation of heruko its example.com/api/

Someone wanted to use api as subdomain like
api.example.com but there was CORS issue.

Is the API using sanctum for it’s authentication?

dhaveb 2022-02-07 08:28:36
Ojsholly 2022-02-07 08:11:08
Is the API using sanctum for it’s authentication?

Its using Passport

Ojsholly 2022-02-07 08:37:43
Then check the config/cors.php file
Ojsholly 2022-02-07 08:40:46
https://www.twilio.com/blog/handling-cross-origin-resource-sharing-cors-requests-laravel-7

Handling Cross-Origin Resource Sharing (CORS) Requests in Laravel 7Twilio Blog
Learn how to debug and improve your CORS requests in Laravel 7 with the Laravel CORS package
Ojsholly 2022-02-07 08:41:19
That will help you understand how to solve the cors errors and what changes you need to make.
shabeehshakkir 2022-02-07 10:03:04
Any Laravel Freelancers from Kerala ? Please DM
Swati Jain 2022-02-07 10:17:20
Kindly find the active Technical Requirements.

ANDROID APP DEVELOPER(2-4 YEARS EXPERIENCE)

BACK END DEVELOPER(2-5 YEARS EXPERIENCE)

EMAIL CAMPAIGN SPECIALIST(3-5 YEARS EXPERIENCE)

SEO SPECIALIST(2-4 YEARS EXPERIENCE)

WEB ARCHITECT(5-7 YEARS EXPERIENCE)

DATABASE ARCHITECT(5+ YEARS EXPERIENCE)

IT CONSULTANT(5+ YEARS EXPERIENCE)

SOCIAL MEDIA MARKETING MANAGER(3+ YEARS EXPERIENCE)

SOCIAL MEDIA SPECIALIST(3+ YEARS EXPERIENCE)

FRONT END DEVELOPER(3+ YEARS EXPERIENCE)

CAMPAIGN SPECIALIST(2+ YEARS EXPERIENCE)

CAMPAIGN MANAGER(5+ YEARS EXPERIENCE)

PHP DEVELOPER- LARAVEL(2-3 YEARS EXPERIENCE)

UI/UX DESIGNER(2-3 YEARS EXPERIENCE)

GRAPHIC DESIGNER(2-3 YEARS EXPERIENCE)

CHIEF MARKETING OFFICER(5+ YEARS EXPERIENCE)

Kindly revert for clarification, if any. 

Location : Bangalore, Chennai

Interested candidate share your cv yashvi15yts@gmail.com

Chhum Seyla 2022-02-07 10:50:33
laravel_discuss-107334.jpg
hi all dear can you tell me why in laravel write {{___(‘E-Mail Address’)}}? and Why we don’t write like this E-Mail Address?
2022-02-07 10:52:46
Chhum Seyla 2022-02-07 10:50:33
hi all dear can you tell me why in laravel write {{___(‘E-Mail Address’)}}? and Why we don’t write like this E-Mail Address?

incase of translation

2022-02-07 10:55:50
Chhum Seyla 2022-02-07 10:50:33
hi all dear can you tell me why in laravel write {{___(‘E-Mail Address’)}}? and Why we don’t write like this E-Mail Address?

https://laravel.com/docs/8.x/localization#defining-translation-strings

Chhum Seyla 2022-02-07 10:56:27
Thank you brother
dharmik4 2022-02-07 11:22:03
laravel_discuss-107338.jpg

dharmik4 2022-02-07 11:22:45
anyone ??
Amir_Khaledian 2022-02-07 11:29:38
dharmik4 2022-02-07 11:22:45
anyone ??

whats in your route request and route.php

dharmik4 2022-02-07 11:29:54
Route::post(‘check’,[AdminController::class,’check’])->name(‘auth.check’);
Amir_Khaledian 2022-02-07 11:30:53
do you import AdminController in route.php?
dharmik4 2022-02-07 11:31:03
yes
Amir_Khaledian 2022-02-07 11:31:51
dharmik4 2022-02-07 11:31:03
yes

please screenshot from error and roue.php

dharmik4 2022-02-07 11:32:03
function check(Request $request){
//Validate requests
$request->validate([
’email’=>’required|email’,
‘password’=>’required|min:5|max:12′
]);

$adminInfo = Admin::where(’email’,’=’, $request->email)->first();
$status = Admin::where(‘status’,’=’, ‘1’)->first();
if (!$status) {
return back()->with(‘fail’,’Your Account is De-Activate, Kindly Contact Admin’);
}

if(!$adminInfo){
return back()->with(‘fail’,’We do not recognize your email address’);
}else{
//check password
if(Hash::check($request->password, $adminInfo->password)){
$request->session()->put(‘LoggedAdmin’, $adminInfo->id);
return redirect(‘admin/dashboard’);

}else{
return back()->with(‘fail’,’Incorrect password’);
}
}
}

Valli Senthil 2022-02-07 11:32:07
Hello Everyone!!!

A Career Changing Learning Curve!!!

Workshop on Graphic Design (Live – Online)

Coming Soon on March Month

Trainer Name : Manjunatheeswaran Duration : 4 hours
Cost : ₹699

Agenda :

1. Digital Painting
• Introduction to Interface
• Painting & Editing Techniques (Background for the Photograph)
2. Poster Creation
• Interface Introduction
• Advertisement Designing
• Poster Designing

Benefits :

1. Lifetime Access to the Course Materials
2. Recorded Videos
3. Participation Certificate

Interested People Register Now

Registration Link : https://meitheetech.com/workshop.php

dharmik4 2022-02-07 11:32:13
error in this function
dharmik4 2022-02-07 11:32:40
laravel_discuss-107349.jpg

Amir_Khaledian 2022-02-07 11:33:04
dharmik4 2022-02-07 11:32:03
function check(Request $request){
//Validate requests
$request->validate([
’email’=>’required|email’,
‘password’=>’required|min:5|max:12′
]);

$adminInfo = Admin::where(’email’,’=’, $request->email)->first();
$status = Admin::where(‘status’,’=’, ‘1’)->first();
if (!$status) {
return back()->with(‘fail’,’Your Account is De-Activate, Kindly Contact Admin’);
}

if(!$adminInfo){
return back()->with(‘fail’,’We do not recognize your email address’);
}else{
//check password
if(Hash::check($request->password, $adminInfo->password)){
$request->session()->put(‘LoggedAdmin’, $adminInfo->id);
return redirect(‘admin/dashboard’);

}else{
return back()->with(‘fail’,’Incorrect password’);
}
}
}

you should import admin model in your controller

Valli Senthil 2022-02-07 11:33:57
laravel_discuss-107351.jpg

dharmik4 2022-02-07 11:34:26
Amir_Khaledian 2022-02-07 11:33:04
you should import admin model in your controller

imported..

Amir_Khaledian 2022-02-07 11:35:14
dharmik4 2022-02-07 11:34:26
imported..

probably your imported path in incorrect

PARVINDER SINGH 2022-02-07 12:05:18
I’m facing this
Syntax error,unexpected ‘static (T_STATIC)
Adetollar 2022-02-07 12:16:39
laravel_discuss-107355.jpg
Photo from Adetola
Adetollar 2022-02-07 12:16:51
Hello everyone,

I am trying to post an array of image, header and description to the database but nothing is happening

It is not posting at all. Can anyone point what I am doing wrong?

Syed Toqeer Abbas 2022-02-07 12:58:00
https://youtu.be/adNdIQq0BvY

Download Udemy Paid Courses for Free | 100% Works | Free Courses 2022YouTube
In this video we will learn how to download free udemy courses.
🛴 Follow me on:
Twitter: https://twitter.com/Toqeer__Abbas
LinkedIn : https://www.linkedin.com/in/toqeer-n-36a349125/
Facebook:https://www.facebook.com/toqeer.abbas.5688
Follow on FB page: https://www.facebook.com/codewithnaqviofficial
Instagram: https://www.instagram.com/toqeerabbas2020/
Kamini Kshirsagar 2022-02-07 13:07:42
Hello everyone,
When I test the add customer API. I always get the error

“message”: “SQLSTATE[HY000]: General error: 1364 Field ‘id’ doesn’t have a default value (SQL: insert into customers (name, contact, address, updated_at, created_at) values (Mayur Kale, 8687989667, Jalgaon, 2022-02-07 09:56:14, 2022-02-07 09:56:14))”,
“exception”: “Illuminate\Database\QueryException”,

Could you please help me to solve this error

|