Any idea why Axios why not catch errors 422 or 5xx?

|
Sunil Gautam 2020-06-05 16:59:44
I want that when user open abc.com/xyz than it opens my second laravel site
Roham0010 2020-06-05 17:00:59
Sunil Gautam 2020-06-05 16:59:44
I want that when user open abc.com/xyz than it opens my second laravel site

Just redirect use to the other site or implement api on the other site and use it in first site or use iframe to show the other site in your site

Sunil Gautam 2020-06-05 17:01:48
I didn’t get you
Sunil Gautam 2020-06-05 17:02:16
Second sight is not used for only API it’s complete website
Roham0010 2020-06-05 17:05:35
you can just redirect from abc.com/xyz to your new website
or use iframe to show your new website in your current website
Sunil Gautam 2020-06-05 17:10:47
Is this the only option ?
DesolatorMagno 2020-06-05 17:23:46
You can use a micro services approach, you make a third app that work as a gate and will take care of the routing.
DesolatorMagno 2020-06-05 17:24:30
You could also change what you want and try using subdomain.
flyingdragons 2020-06-05 18:04:39
Sunil Gautam 2020-06-05 16:58:52
Have an other laravel site

Why dont you use subdomain and redirect the user there

rmkmasterdev 2020-06-05 18:51:09
Sunil Gautam 2020-06-05 16:59:44
I want that when user open abc.com/xyz than it opens my second laravel site

Make alias xyz points to the second laravel public folder

amosvictor97 2020-06-05 20:36:15
https://laravel-news.com/eloquent-tips-tricks

20 Laravel Eloquent Tips and TricksLaravel News
Eloquent ORM seems like a simple mechanism, but under the hood, there’s a lot of semi-hidden functions and less-known ways to achieve more with it. In this article, I will show you a few tricks.
MishalLeo 2020-06-05 21:03:14
I’m having problem when i use $request->all() in factory there giving me error of unknown column ‘q’ there no kind on columns in the table so how to fix this anyone
Thanks
MishalLeo 2020-06-05 21:27:44
MishalLeo 2020-06-05 21:03:14
I’m having problem when i use $request->all() in factory there giving me error of unknown column ‘q’ there no kind on columns in the table so how to fix this anyone
Thanks

Anyone knows how to fix this?

Roham0010 2020-06-05 21:29:14
MishalLeo 2020-06-05 21:03:14
I’m having problem when i use $request->all() in factory there giving me error of unknown column ‘q’ there no kind on columns in the table so how to fix this anyone
Thanks

You have to share some code so may somone helps..

Siberfx 2020-06-05 22:09:20
MishalLeo 2020-06-05 21:03:14
I’m having problem when i use $request->all() in factory there giving me error of unknown column ‘q’ there no kind on columns in the table so how to fix this anyone
Thanks

show your code how you use it and in where

Marvixino 2020-06-05 23:22:31
Any idea why Axios why not catch errors 422 or 5xx?
Marvixino 2020-06-05 23:22:42
laravel_discuss-40158.jpg

Sujay 2020-06-05 23:34:38
Where should I include index.php file when deploy website?
Marvixino 2020-06-05 23:41:31
Sujay 2020-06-05 23:34:38
Where should I include index.php file when deploy website?

which index.php … what do you want to do?

flyingdragons 2020-06-05 23:59:20
https://stackcoder.in/posts/upload-file-from-frontend-server-guzzlehttp-to-rest-api-server-in-php-laravel
Upload File From Frontend Server {GuzzleHttp} To REST API Server In PHP {Laravel}

Upload File From Frontend Server {GuzzleHttp} To REST API Server In PHP {Laravel} | StackCoderStackCoder
You will learn to setup Laravel Frontend (Customer Facing), Backend (REST API), file upload from frontend to backend API with PHP GuzzleHttp.
Shubham 2020-06-06 00:35:17
403 error but I have to deploy dashboard
Shubham 2020-06-06 00:35:29
How to do it ? Please help
Yannickshadownet 2020-06-06 01:00:43
hi guy Need Hel
Yannickshadownet 2020-06-06 01:01:28
i try to send mail from my contact form but im getting an error

“””
Expected response code 354 but got code “503”, with message “503-All RCPT commands were rejected with this error:

503-“Your IP: 80.248.75.48 : Your domain gmail.com is not allowed in header

503-From”

503 Valid RCPT command must precede DATA


“””

Yannickshadownet 2020-06-06 01:02:03
How can i fix it?
Yannickshadownet 2020-06-06 01:03:44
ContactMail.php

<?php

namespace AppMail;

use IlluminateBusQueueable;
use IlluminateHttpRequest;
use IlluminateContractsQueueShouldQueue;
use IlluminateMailMailable;
use IlluminateQueueSerializesModels;

class ContactMail extends Mailable
{
use Queueable, SerializesModels;

public $data;

/
* Create a new message instance.
*
* @return void
*/
public function __construct(Request $request)
{
$this->data = $request;
}

/
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject($this->data->subject)
->from($this->data->email,$this->data->name)
->to(‘info@mydomaine.com’,’SA’)
->view(‘SendEmail.envoyerEmail’);
}
}

Yannickshadownet 2020-06-06 01:05:01
ContactmailController

<?php

namespace AppHttpControllers;

use IlluminateHttpRequest;
use AppMailContactMail;
use IlluminateSupportFacadesValidator;
use Mail;
use IlluminateSupportArr;

class ContactmailController extends Controller
{
public function WriteUs(Request $request)
{
$validator = Validator::make($request->all(), [
‘subject’ => ‘bail|required|min:4′,
’email’ => ‘bail|required|email’,
‘message’ => ‘bail|required|min:2’,
‘name’ => ‘bail|required’,

]);
if ($validator->fails()) {
return redirect(‘/Contacts’)
->withErrors($validator)
->withInput();
}
try {
Mail::send(new ContactMail($request));
return redirect()->back()->with(‘message’,’Your message has been sent. Thank you!’);
} catch(Swift_TransportException $e){
if($e->getMessage()) {
dd($e->getMessage());
}
}
}
}

Yannickshadownet 2020-06-06 01:06:47
Mail config .env file

MAIL_DRIVER=smtp
MAIL_HOST=mail.mydomaine.com
MAIL_PORT=465
MAIL_USERNAME=contact@mydomaine.com
MAIL_PASSWORD=**********
MAIL_ENCRYPTION=SSL
MAIL_FROM_ADDRESS=contact@mydomaine.com
MAIL_FROM_NAME=SA

Yannickshadownet 2020-06-06 01:08:28
i have error when i try to send mail from gmail account
Marvixino 2020-06-06 01:08:53
Yannickshadownet 2020-06-06 01:06:47
Mail config .env file

MAIL_DRIVER=smtp
MAIL_HOST=mail.mydomaine.com
MAIL_PORT=465
MAIL_USERNAME=contact@mydomaine.com
MAIL_PASSWORD=**********
MAIL_ENCRYPTION=SSL
MAIL_FROM_ADDRESS=contact@mydomaine.com
MAIL_FROM_NAME=SA

this is too long to post it here, can you use https://pastebin.com/

Pastebin.com – #1 paste tool since 2002!Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
DesolatorMagno 2020-06-06 01:55:31
Yannickshadownet 2020-06-06 01:08:28
i have error when i try to send mail from gmail account

Try using mailtrap first

DesolatorMagno 2020-06-06 01:57:16
So you can know if the problem is specific about Gmail.
It could be that your IP is banned, that you have not configure well the data, that you didn’t disabled second factor, etc.
2020-06-06 02:18:49
Hi
Please am new to laravel
2020-06-06 02:24:15
Please I need someone to guide me I will pay the person
Roham0010 2020-06-06 02:32:59
2020-06-06 02:24:15
Please I need someone to guide me I will pay the person

Ask your question there are always someone to help..

2020-06-06 02:36:03
Roham0010 2020-06-06 02:32:59
Ask your question there are always someone to help..

Okay
Thank you 🙏

Prashant Tim 2020-06-06 05:29:46
I need licence key of
Prashant Tim 2020-06-06 05:29:57
Phpstrom
Prashant Tim 2020-06-06 05:31:56
Anyone
Himanshu Thakkar 2020-06-06 07:38:41
Yannickshadownet 2020-06-06 01:08:28
i have error when i try to send mail from gmail account

Change ur security of gmail to allow less secured apps

Jay_1 2020-06-06 07:58:49
Can anyone help me for fcm push notification????
2020-06-06 07:59:00
This is the only good and trusted platform to start recover your lost funds. . I I’ve been scammed before, but I i was referred to Mrs Julianne Christopher how help me out with his trade.. I contacted her the same day i was told she’s legit.. And invested in $200 to my greatest surprise i was paid in 48 hours.. I’m so happy because Am always getting paid so I decided to always share with y’all…
Instant and fastest withdrawal 💯
Its been rated one of the best investment platform so far, you also get bonus on referrals… I you can contact her.. 👇👇

@Julianne_fx
@Julianne_fx

Jay_1 2020-06-06 07:59:35
How can i setup in my project ?? Any guide
Acird Burn 2020-06-06 09:03:17
anyone here very good with api development i have a doubt with an api
Noorev7 2020-06-06 09:22:07
Hi ,can you guys help
Why this not working
It’s should send notifications for all devices

$user =AppUser::all(‘token’);
$post=Article::where(‘id’,$id)->first(‘title’);
$data = [
“to” => array($user),
“notification” =>
[

“title” => ‘تم اضافة مدونة’,
“body” =>$post->title,
],
“data”=>[
“id”=>$id,
]

Noorev7 2020-06-06 09:23:54
I have tried
array($user)
$user
[$user]
kuzmich321 2020-06-06 09:28:09
TBH it looks like messy
kuzmich321 2020-06-06 09:28:20
Read the docs
huc31n 2020-06-06 09:32:13
Any guide to make a blog with dashboard
huc31n 2020-06-06 09:32:43
Tutorials would be helpful
|