This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> | |
#add this file in the root folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Http\Middleware\Tenant; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Stancl\Tenancy\Contracts\Tenant; | |
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedByRequestDataException; | |
use Stancl\Tenancy\Middleware\IdentificationMiddleware; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> | |
RewriteEngine On | |
#extra start | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//js function to change iframe markup into a shortcode | |
function iFrameFilterInSummernote(contents){ | |
let rawContents = contents; | |
let matches = rawContents.match(/<iframe(.+)<\/iframe>/); | |
let ifamemarkup = Array.isArray(matches) ? matches[0] : ''; | |
let srcMatches = ifamemarkup.match(/src="(.*?)"/); | |
let ifameSrc = Array.isArray(srcMatches) ? srcMatches[0] : ''; | |
return rawContents.replace(/<iframe(.+)<\/iframe>/, '{iframe} {vsrc}="'+ifameSrc.replace('src="','')+'{/iframe}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ | |
RewriteRule ^(.*) - [E=BASE:%1] | |
RewriteCond %{ENV:REDIRECT_STATUS} ^$ | |
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Turns off the expires headers for Apache | |
<IfModule mod_expires.c> | |
ExpiresActive Off | |
</IfModule> | |
# Disable Caching | |
<IfModule mod_headers.c> | |
Header set Cache-Control "no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'smtp' => [ | |
'transport' => 'smtp', | |
'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | |
'port' => env('MAIL_PORT', 587), | |
'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |
'username' => env('MAIL_USERNAME'), | |
'password' => env('MAIL_PASSWORD'), | |
'timeout' => null, | |
'stream' => [ | |
'ssl' => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Str; | |
class Demo | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('input','#getquoteform textarea[name="assignment"]',function(){ | |
let LongText = $(this).val(); | |
$(this).val(LongText.replace(/[^a-zA-Z ]/g,'')) | |
}); |