Laravel 5.2: How to enable multi session per user in Sentry 2

If you are using Sentry 2 with your favourite Laravel framework then might have a single session per user which is security features. But you may need multi sessions per user. Say you have one account to allow to moderate content in your website from admin panel. And you don’t want to create multiple user …

Laravel 5.2: How to enable multi session per user in Sentry 2 Read More »

How to make the bootstrap modal width dynamic to its content

How to set/make the bootstrap modal width dynamic to its content display:inline-block elements get dynamic width regarding their content Add the following css to your page .modal-dialog { max-width: 100%; width: auto !important; display: inline-block; } Now add the following code to open the modal in center .modal{ text-align: center; }

How To Fix Invalid HELO Name

If you are facing Email sending problem like “Invalid HELO name” or “Helo command rejected: need fully-qualified hostname”. From WHM => Turn off the “Require RFC-compliant HELO” option under “WHM Main >> Service Configuration >> Exim Configuration Manager” Then the first thing first is your hostname. It is your hostname which is not fully-qualified domain …

How To Fix Invalid HELO Name Read More »

Difference between primary key and unique key

Primary Key is used to identify a row (record) in a table, whereas Unique-key is to prevent duplicate values in a column (with the exception of a null entry). By default SQL-engine creates Clustered Index on primary-key if not exists and Non-Clustered Index on Unique-key. Primary key does not include Null values, whereas Unique-key can. …

Difference between primary key and unique key Read More »