මගේ ලරාවල් සයිට් එකේ හෙඩින් එකේ මේ සංකේත ටික ඇවිල්ල තියෙනවා එත් ඇත්තටම ඒ පේජස් වල එහෙම සංකේත නැහැ. හොස්ට්න් ලාගෙන් සපෝට් එක ගත්ත එත් එයාලටත් හොයා ගන්න බැහැ. ලරාවල් දන්න කෙනෙක් උදව් කරන්න මට
Best posts made by foxmolder
-
මොනවද මේ සංකේත ����
Latest posts made by foxmolder
-
RE: මොනවද මේ සංකේත ����
main.blade.php
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="robots" content="{{ option('Metarobots') }}">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff"><link rel="canonical" href="{{ Request::url() }}" />
@yield('meta-content')
<!-- ====== Laravel favicon icon ================== -->
<link rel="apple-touch-icon" sizes="57x57" href="{{ asset('assets/images/favicon/apple-icon-57x57.png') }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ asset('assets/images/favicon/apple-icon-60x60.png') }}">
<link rel="apple-touch-icon" sizes="72x72" href="{{ asset('assets/images/favicon/apple-icon-72x72.png') }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ asset('assets/images/favicon/apple-icon-76x76.png') }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ asset('assets/images/favicon/apple-icon-114x114.png') }}">
<link rel="apple-touch-icon" sizes="120x120" href="{{ asset('assets/images/favicon/apple-icon-120x120.png') }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ asset('assets/images/favicon/apple-icon-144x144.png') }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ asset('assets/images/favicon/apple-icon-152x152.png') }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/images/favicon/apple-icon-180x180.png') }}">
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('assets/images/favicon/android-icon-192x192.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset(option('Favicon')) }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset(option('Favicon')) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset(option('Favicon')) }}">
<link rel="manifest" href="{{ asset('assets/images/favicon/manifest.json') }}">
<!-- ====== Laravel favicon icon================== -->
<title>{{ option('SiteTitle') }}</title>
<!-- =========================================== googleapis =================================== -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600&display=swap" rel="stylesheet">
<!-- =========================================== googleapis =================================== -->
<link href="https://fonts.googleapis.com/css2?family=Lalezar&display=swap" rel="stylesheet">
<!-- =========================================== googleapis =================================== -->
<link href="https://fonts.googleapis.com/css?family=Righteous&display=swap" rel="stylesheet">
<!-- =========================================== base =================================== -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/base.css') }}" />
<!-- =========================================== main =================================== -->
<link rel="stylesheet" href="{{ asset('assets/css/main.css') }}?v={{time()}}" />
<!-- =========================================== uikit =================================== -->
<script src="{{ asset('assets/js/uikit.js') }}"></script>
<!-- =========================================== head =================================== --><span class="display-zero">{{ $Locale = LaravelLocalization::getCurrentLocale() }}</span>
@if($Locale == 'ar')
<link rel="stylesheet" href="{{ asset('assets/css/rtl.css') }}" />
@else
@endif<link rel="stylesheet" href="{{ asset('assets/css/style.css') }}" />
</head>
-
RE: මොනවද මේ සංකේත ����
app.blade.php
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"><!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> <!-- Scripts --> <script src="{{ asset('js/app.js') }}" defer></script> <!-- Fonts --> <link rel="dns-prefetch" href="//fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> <!-- Styles --> <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
-
මොනවද මේ සංකේත ����
මගේ ලරාවල් සයිට් එකේ හෙඩින් එකේ මේ සංකේත ටික ඇවිල්ල තියෙනවා එත් ඇත්තටම ඒ පේජස් වල එහෙම සංකේත නැහැ. හොස්ට්න් ලාගෙන් සපෝට් එක ගත්ත එත් එයාලටත් හොයා ගන්න බැහැ. ලරාවල් දන්න කෙනෙක් උදව් කරන්න මට
-
How to add pagination to the values coming from an API
I am using a php API to get some details and I want to put a pagination on it I have no idea yet about that, below is the details given to us by the API
array (size=3)
0 =>
object(stdClass)[2]
...
1 =>
object(stdClass)[5]
...
2 =>
object(stdClass)[8]
...
public 'cursor' => int 4
public 'hasMore' => boolean true -
laravel multi language routes
How disable laravel multi language routes
ex
example.com/en
example.com/fr
example.com/ar -
RE: Bulk Email AWS SES
import smtplib
import email.utils
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMETextfruits = ["[email protected]","[email protected]", ]
for RECIPIENT in fruits:Replace [email protected] with your "From" address.
This address must be verified.
SENDER = '[email protected]' SENDERNAME = 'ex.com'
Replace [email protected] with a "To" address. If your account
is still in the sandbox, this address must be verified.
RECIPIENT = '[email protected]'
Replace smtp_username with your Amazon SES SMTP user name.
USERNAME_SMTP = ""
Replace smtp_password with your Amazon SES SMTP password.
PASSWORD_SMTP = ""
(Optional) the name of a configuration set to use for this message.
If you comment out this line, you also need to remove or comment out
the "X-SES-CONFIGURATION-SET:" header below.
CONFIGURATION_SET = "ConfigSet"
If you're using Amazon SES in an AWS Region other than US West (Oregon),
replace email-smtp.us-west-2.amazonaws.com with the Amazon SES SMTP
endpoint in the appropriate region.
HOST = "email-smtp.us-east-2.amazonaws.com" PORT = 587
The subject line of the email.
SUBJECT = ' '
The email body for recipients with non-HTML email clients.
BODY_TEXT = ("" "" "" )
The HTML body of the email.
BODY_HTML = """<html> </html> """
Create message container - the correct MIME type is multipart/alternative.
msg = MIMEMultipart('alternative') msg['Subject'] = SUBJECT msg['From'] = email.utils.formataddr((SENDERNAME, SENDER)) msg['To'] = RECIPIENT
Comment or delete the next line if you are not using a configuration set
msg.add_header('X-SES-CONFIGURATION-SET',CONFIGURATION_SET)
Record the MIME types of both parts - text/plain and text/html.
part1 = MIMEText(BODY_TEXT, 'plain') part2 = MIMEText(BODY_HTML, 'html')
Attach parts into message container.
According to RFC 2046, the last part of a multipart message, in this case
the HTML message, is best and preferred.
msg.attach(part1) msg.attach(part2)
Try to send the message.
try: server = smtplib.SMTP(HOST, PORT) server.ehlo() server.starttls() #stmplib docs recommend calling ehlo() before & after starttls() server.login(USERNAME_SMTP, PASSWORD_SMTP) server.ehlo() server.sendmail(SENDER, RECIPIENT, msg.as_string()) server.close()
Display an error message if something goes wrong.
except Exception as e: print ("Error: ", e) else: print ("Email sent!")