What are the requirements to use it?

|
Hasi_boi 2021-02-04 17:02:12
laravel_discuss-69217.jpg
Can anyone kindly help me how to publish modules in public folder like this
Ashok 2021-02-04 17:02:14
they are not sending userid in the api

if (!function_exists(‘getUserID’)) {
function getUserID()
{
$user = Auth::user();
if (!__isEmpty($user)) {
return $user->_id;
}
return null;
}
}

Ghosstttt 2021-02-04 20:24:34
Hello I’m new in laravel
Ghosstttt 2021-02-04 20:24:50
I’ve started a project
Ghosstttt 2021-02-04 20:25:01
Trying to migrate —seed
Ghosstttt 2021-02-04 20:25:24
Got error connection refused
Ghosstttt 2021-02-04 20:26:00
laravel_discuss-69234.jpg

nazmulpcc 2021-02-04 20:26:05
Ghosstttt 2021-02-04 20:25:24
Got error connection refused

This means your database credentials are wrong or you haven’t set it.

Ghosstttt 2021-02-04 20:26:48
laravel_discuss-69236.jpg

nazmulpcc 2021-02-04 20:28:11
Ghosstttt 2021-02-04 20:26:48

Like i said, you need to put your database credentials

w3lifer 2021-02-04 20:30:49
Set password for root user and put it in .env

sudo mysql

ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘toor’;

GistOf 2021-02-04 20:57:34
@iamdevcs ndeip
Kajal7050 2021-02-04 20:57:45
Hey please tell me correct way to remove public from laravel website currently I’m doing server.php to index.php and move. htaccess public to outside my hosting is share hosting
Please tell me correct way thans in advance
Kajal7050 2021-02-04 20:58:37
sorry Thanks in advance
developer_cs 2021-02-04 20:58:50
@GistOf hie mukuru
GistOf 2021-02-04 21:00:22
Kajal7050 2021-02-04 20:57:45
Hey please tell me correct way to remove public from laravel website currently I’m doing server.php to index.php and move. htaccess public to outside my hosting is share hosting
Please tell me correct way thans in advance

It’s easy when you’re on an add-on domain. You just make it get served from the public folder

Kajal7050 2021-02-04 21:03:35
without renaming server.php?
and I have did this in my two website is there any security issues?
GistOf 2021-02-04 21:04:36
Kajal7050 2021-02-04 21:03:35
without renaming server.php?
and I have did this in my two website is there any security issues?

Yes it works without renaming server.php

GistOf 2021-02-04 21:06:31
Alternatively, you can place an .htaccess file in the root folder and have the following lines in it:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/$1 [L]
DesolatorMagno 2021-02-04 21:07:24
Just be sure that what you do won’t have side effects.
Kajal7050 2021-02-04 21:09:03
GistOf 2021-02-04 21:06:31
Alternatively, you can place an .htaccess file in the root folder and have the following lines in it:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/$1 [L]

Thank I didn’t write this .htaccess just move .htaccess from public

Kajal7050 2021-02-04 21:11:02
DesolatorMagno 2021-02-04 21:07:24
Just be sure that what you do won’t have side effects.

some where in stack overflow someone wrote that. env will access if we do like that but I didn’t get .env file

DesolatorMagno 2021-02-04 21:12:08
I remember having problem with file upload, is easier if you do the change at the beginning and not when the system is finished.
Abd_alrahman_Mofid 2021-02-04 21:13:35
Good night guys,

Can I find someone used WhatsApp API direct not by third party like Twilow …etc?
I have some questions like
what are the requirements to use it?
what is the payment mechanism?
how to get the API key?
Note:
I read the documention but there are multi things that are not cleare.
I need to use the API to send some messages from laravel to some persons.
Can you help me, please?
Thanks

Kajal7050 2021-02-04 21:13:56
DesolatorMagno 2021-02-04 21:12:08
I remember having problem with file upload, is easier if you do the change at the beginning and not when the system is finished.

I did after complete my project because clients want to remove public from url I know how to remove public in codeigniter but not in php

Kajal7050 2021-02-04 21:15:07
sorry in laravel
GistOf 2021-02-04 21:16:56
Kajal7050 2021-02-04 21:13:56
I did after complete my project because clients want to remove public from url I know how to remove public in codeigniter but not in php

It’s easier that you think

GistOf 2021-02-04 21:17:56
This line in a .htaccess file may solve your problem:
RewriteRule ^(.*)$ public/$1 [L]
Kajal7050 2021-02-04 21:19:54
GistOf 2021-02-04 21:17:56
This line in a .htaccess file may solve your problem:
RewriteRule ^(.*)$ public/$1 [L]

ok sure I’ll try this next time

Kajal7050 2021-02-04 21:20:47
I don’t have knowledge about. htaccess rules and command
Kajal7050 2021-02-04 21:25:12
Again Thanks @GistOf
GistOf 2021-02-04 21:25:13
Kajal7050 2021-02-04 21:19:54
ok sure I’ll try this next time

Just so you know, my Laravel installations are usually in subfolders inside the public_html (if I’m dealing with cPanel). I don’t move the .htaccess in the public folder. I just create a new one for the root folder. That line above would then look like this:
RewriteRule ^(.*)$ laravel8/public/$1 [L]

GistOf 2021-02-04 21:26:44
The good thing about .htaccess is that it’s not graceful when misconfigured. It’ll let you know in no uncertain terms
Kajal7050 2021-02-04 21:28:50
GistOf 2021-02-04 21:25:13
Just so you know, my Laravel installations are usually in subfolders inside the public_html (if I’m dealing with cPanel). I don’t move the .htaccess in the public folder. I just create a new one for the root folder. That line above would then look like this:
RewriteRule ^(.*)$ laravel8/public/$1 [L]

yes saw some website in git and outside laravel project they also create another index.php and from there they handle request and response

GistOf 2021-02-04 21:29:39
Kajal7050 2021-02-04 21:28:50
yes saw some website in git and outside laravel project they also create another index.php and from there they handle request and response

Interesting

|