Showing 401 error, why?

|
berto309 2020-06-27 20:32:51
As for me I don’t touch htacess
berto309 2020-06-27 20:34:27
berto309 2020-06-27 20:25:01
Rename server.php in your Laravel root folder to index.php

Copy the .htaccess file from /public directory to your Laravel root folder

I do 👆 then {{(asset(‘public/blah’) }}

berto309 2020-06-27 20:36:36
If you’re using valet,Laragon. .. U should get a pretty URL
Acird Burn 2020-06-27 20:37:51
berto309 2020-06-27 20:34:27
I do 👆 then {{(asset(‘public/blah’) }}

this works on laravel 5.5 not 6.0

Acird Burn 2020-06-27 20:38:05
i used same method in 5.5
Acird Burn 2020-06-27 20:38:16
it worked
Acird Burn 2020-06-27 20:41:41
in laravel 6.0 not working
berto309 2020-06-27 20:44:45
Thought u said it’s working.. Lol
berto309 2020-06-27 20:45:32
Screen shot your browser console error
berto309 2020-06-27 20:45:48
The path
Acird Burn 2020-06-27 20:46:24
berto309 2020-06-27 20:44:45
Thought u said it’s working.. Lol

i have 2 applications 1 is in laravel 5.5 the laravel 5.5 worked

Acird Burn 2020-06-27 20:46:34
but laravel 6.0 and 7.5
berto309 2020-06-27 20:46:37
Ok
Acird Burn 2020-06-27 20:47:02
laravel_discuss-43155.jpg

Acird Burn 2020-06-27 20:47:35
if i add /public
Acird Burn 2020-06-27 20:47:46
everything works
berto309 2020-06-27 21:03:43
Acird Burn 2020-06-27 20:47:46
everything works

Go to vendorlaravelframeworksrcIlluminateFoundationhelpers.php..

berto309 2020-06-27 21:08:56
laravel_discuss-43159.jpg
edit
R_N_M_O 2020-06-27 21:20:13
is there are any way to Dealing database data update with excel dropdown list ?
Acird Burn 2020-06-27 21:31:08
berto309 2020-06-27 21:03:43
Go to vendorlaravelframeworksrcIlluminateFoundationhelpers.php..

now getting 404 on all pages

berto309 2020-06-27 21:34:30
Really
berto309 2020-06-27 21:34:53
It’s been working for me
berto309 2020-06-27 21:36:27
Or use laravel mix
Acird Burn 2020-06-27 21:53:39
fixed up the error
Acird Burn 2020-06-27 21:53:50
but some js are still not loading
2020-06-27 22:28:00
npm run dev for fontawesome not working
Jihat_developer 2020-06-28 00:55:08
laravel_discuss-43169.jpg
how save public_uploads on public_html on server set?
Jihat_developer 2020-06-28 00:56:09
laravel_discuss-43170.jpg
please help
Jihat_developer 2020-06-28 00:56:36
how change uploads folder laravel on public_html/uploads
VICTOR DADA THE BRAND 2020-06-28 08:11:41
Join Now
sahilbalgotra 2020-06-28 11:03:43
    public function storeGallery(Request $request)
   {

       if ($request->hasFile(‘file’)) {
           $destinationPath = public_path() . “/images/gallery”;
           if (!file_exists($destinationPath)) {
               File::makeDirectory($destinationPath, 0777, true);
           }
           //  dump($destinationPath);
           $originName = $request->file(‘file’)->getClientOriginalName();
           $extension = $request->file(‘file’)->getClientOriginalExtension();
           $fileName = pathinfo($originName, PATHINFO_FILENAME);
           $fileName = $fileName . ‘_’ . time() . ‘.’ . $extension;
           $request->file(‘file’)->move($destinationPath, $fileName);
           $request = new Request($request->all());
           $request->merge([‘image’ => ‘/images/gallery/’ . $fileName]);
       }
       // dd($request->except([‘_token’, ‘file’]));
       if (Home::create($request->except([‘_token’, ‘file’]))) {
           return redirect()->back()->with(‘success’, ‘Gallery added successfully’);
       }
   }

sahilbalgotra 2020-06-28 11:03:54
Need help😭😭😭😭
sahilbalgotra 2020-06-28 11:04:39
Same update function saves image path in database but create not working
sahilbalgotra 2020-06-28 11:06:43
If Dd(); request show image merged in but not saving in database ❓❓❓
Unknownuser009 2020-06-28 12:26:05
https://youtu.be/ZgZ9-rEgG6A

Laravel 6 tutorial #22 file uploadYouTube
In this laravel 6 tutorial we learn how to upload a file or image with store function. we use form to upload data with simple example by anil sidhu

Make Controller and Route for it
Make form and route form it
Write code for upload image
Check file uploaded or not

playlist link is here : https://www.youtube.com/playlist?list=PL8p2I9GklV47fi-yiWkfRpbMV8PPaQDH4

facebook page link is here
https://www.facebook.com/stepbysteplearn/

Checkout and subscribe our new channel for technical news
https://www.youtube.com/channel/UCUu2FA5OO9KpFXL2ZYR0aNg

Unknownuser009 2020-06-28 12:26:26
Try this step
sobirjonovs 2020-06-28 18:14:22
laravel_discuss-43189.jpg

sobirjonovs 2020-06-28 18:14:50
laravel_discuss-43190.jpg

sobirjonovs 2020-06-28 18:15:14
Showing 401 error, why? It was working 2 hours ago………..
sobirjonovs 2020-06-28 18:16:22
im using axios
Bhai C 2020-06-28 19:48:39
Your config might be wrong
Bhai C 2020-06-28 19:49:12
Or clear your cache
Sujay 2020-06-28 21:31:23
Hi all
I successfully install letsencrypt SSL certificate on my site
But when I entered domain like,

https://ourdomain.com

it says
Your connection is not private.

and if I entered
https://www.ourdomain.com

then it works fine
why this happening

Siberfx 2020-06-28 21:32:08
Sujay 2020-06-28 21:31:23
Hi all
I successfully install letsencrypt SSL certificate on my site
But when I entered domain like,

https://ourdomain.com

it says
Your connection is not private.

and if I entered
https://www.ourdomain.com

then it works fine
why this happening

pm me

Roham0010 2020-06-28 21:39:08
Sujay 2020-06-28 21:31:23
Hi all
I successfully install letsencrypt SSL certificate on my site
But when I entered domain like,

https://ourdomain.com

it says
Your connection is not private.

and if I entered
https://www.ourdomain.com

then it works fine
why this happening

Because may you have some none www or https urls used in your HTML

natghi2010 2020-06-28 21:55:06
Sujay 2020-06-28 21:31:23
Hi all
I successfully install letsencrypt SSL certificate on my site
But when I entered domain like,

https://ourdomain.com

it says
Your connection is not private.

and if I entered
https://www.ourdomain.com

then it works fine
why this happening

I think its a question of htaccess

natghi2010 2020-06-28 21:55:41
rename this to .htaccess and paste it in your folder
Marvixino 2020-06-28 22:33:10
auth(‘sanctum’)->user()->getAuthIdentifier()
Auth::id()
Auth::guard(‘sanctum’)->id()All the above returns the current user id logged by sanctum token, which more secure?
2020-06-28 22:53:03
Laravel .net licence json type
Sujay 2020-06-28 23:34:14
Siberfx 2020-06-28 21:32:08
pm me

Hi,

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04

problem is solved by the above link.
By reading this post and running following command,

sudo certbot –apache -d example.com

Thanks, Dude without you and your guidance this is not possible…Cheers🍻

How To Secure Apache with Let’s Encrypt on Ubuntu 16.04 | DigitalOceanDigitalocean
This tutorial will show you how to set up a free TLS/SSL certificate from Let’s Encrypt on a Ubuntu 16.04 server running Apache as web server. TLS certificat…
|