## Laravel | Why create a public_html folder and link/move it?

I am using laravel on shared hosting.

Under my domain in my folder is the laravel app.

Now I see online that many people do weird stuff with the laravel public folder, they either move it to a different location or create a sys link, but why?

Isn’t the laravel setup secure? As far as I understand nothing below the public folder can be accessed.

I simply put my laravel app into the domain folder and linked the domain to `laravel/public`.

I even asked my provider and they confirmed it that this is the way to go.

But I am really paranoid about security, why many other people do it differently, maybe they have different setups?

## Is it possible to create an “always on” environment from a SQL Server on premises to a virtual machine on azure?

I’ve been looking for a similar question here and reading about it about ""Add Azure Replica Wizard", but I heard the it doesnt works because it’s a deprecated feature.

I used to have a primary server and a secondary server on premises as always on, but because of costs I had to delete the secondary "replica".

I would like to know if it’s possible to recreate this always on environment, and then have the primary server On Premises, and a replicated environment on a virtual machine on Azure Cloud.

Then if something happens with our primary, automatically the secondary replica on azure will take the work.

## Find number of ways to create sequence \$A\$ of length \$n\$ satisfying \$m\$ conditions

Find number of ways to create sequence $$A$$ of length $$n$$ satisfying $$m$$ conditions. This sequence $$A$$ should consist of only non negative numbers. Each condition is described by three integers $$i,j,k$$ signifying $$max$$($$A_{i}$$,$$A_{j}$$)=$$k$$.
It is guaranteed that each index of the sequence will be there in at least one condition i.e. there will be finite number of such sequences.
The maximum value of $$n$$ will not exceed $$18$$ and maximum value of $$k$$ will not exceed $$2*10^4$$.
I tried it using dynamic programming but the time complexity came out to be exponential. Can you suggest me any better approach which will reduce the time complexity?

## Find number of ways to create sequence \$A\$ of length \$n\$ satisfying \$m\$ conditions

Find number of ways to create sequence $$A$$ of length $$n$$ satisfying $$m$$ conditions. This sequence $$A$$ should consist of only non negative numbers. Each condition is described by three integers $$i,j,k$$ signifying $$max$$($$A_{i}$$,$$A_{j}$$)=$$k$$.
It is guaranteed that each index of the sequence will be there in at least one condition i.e. there will be finite number of such sequences.
The maximum value of $$n$$ will not exceed $$18$$ and maximum value of $$k$$ will not exceed $$10^6$$.
I tried it using dynamic programming but the time complexity came out to be exponential. Can you suggest me any better approach which will reduce the time complexity?

## How do I create a simple form that can edit the text links on an html page?

I'm trying to create a simple personal offline home page with text links that can be edited without the user having to go into the html code.

I have the home page with some blank links done but need some way to edit the links from a form for people who don't understand html.

Thanks for any help!

## How to create tabs like these?

I have a question, I have installed so many themes but I’m still not able to do this

I want to create a tabs like this screenshot https://prnt.sc/tbhoye with icons and good backgrond / tab lookings and inside these tabs I want to insert shortcodes of plugins

For example I want to add a shortcode for my taxi booking plugin and in the next tab I want to add a shortcode of my tours plugin, what are the plugin/themes that supports this way? even If It’s paid, or how to do it myself?

## Create dynamic sql query to select all related data in DB based on entry table and ID

Hope all is well. I am hoping you can help me.

Problem Statement – I’m tasked to create a dynamic SQL statement which will select all related data from a given table where the Identifier is passed. For each table where the relevant data is found i would like the data to be exported onto a separate tab of within excel

If i was doing this manually done this i would perform the following queries and export the data onto each tab;

``Select * from  Mason where id = 12345 Select * from  MasonContacts where Companyid= 12345  Select * from  MasonOpportunities  where Comid = 12345  ``

However given the sheer volume of tables this isn’t viable.

Step 1 : Type in my identifier (in this case my identifier is a field called "Id" in the Table "Mason") The query will always start from this table.

Table Name : Mason Field : Id = "12345"

Step 2 : Search against table "MasonContacts", search against the field "Companyid". Return all columns & records where the field "Companyid = 12345"

Table Name : MasonContacts Field : Companyid

Step 3 : Search against table "Mason Opportunities ", search against the field "Comid". Return all columns & records where the field "Company = 12345"

Table Name : MasonOpportunities Field : Comid

Looking forward to your help

## How to connect a mobile app through the woocommerce API to “Create Order” for a product linked to a vendor

I want to connect a mobile app through the woocommerce API to “Create Order” for a product linked to a vendor such that this will create the sub-order automatically for a given vendor account. The woocommerce API does not provide this capability by default and the "post author" is assigned to the user authorised to make the API call. How do I go about this?

## How do I create a column and display user data from custom registration field

Our registration form has a custom field for Hospital Name. In SQL wp_usermeta the meta_key is user_registration_hospital. I have tested a number of snippets in the functions.php file to add a "Hospital" column to the Users admin table, all of which work. This is one of the snippets that adds the Hospital column:

``function add_user_columns(\$  column) { \$  column['hospital'] = 'Hospital';  return \$  column; ``

} add_filter( ‘manage_users_columns’, ‘add_user_columns’ );

What code do I need to add to the functions.php file to have the Hospital data from wp_usermeta populate the Hospital column?

## how to create user profile pages and display them based on users roles

Example: I have a website with 3 different user roles (amongst others): *developers *designers *contributors

I would like to have profile pages for users and would like to be able to display users on pages based (filtered) by their role. Hope this is clear. I have researched quite a few membership plugins and found that they are just bloated with features and ended up with TMI and no answers/solutions, so if you can help I would appreciate it. Do you know of any plugins suitable of doing that?

Thanx in advance