<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tutsmake</title>
    <description>The latest articles on DEV Community by Tutsmake (@tutsmake).</description>
    <link>https://dev.to/tutsmake</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F333853%2Fa8363a01-922f-4883-a95e-d4dbec1a802c.png</url>
      <title>DEV Community: Tutsmake</title>
      <link>https://dev.to/tutsmake</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tutsmake"/>
    <language>en</language>
    <item>
      <title>chat application using node js and socket.io</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Tue, 06 Feb 2024 05:38:49 +0000</pubDate>
      <link>https://dev.to/tutsmake/chat-application-using-node-js-and-socketio-51b2</link>
      <guid>https://dev.to/tutsmake/chat-application-using-node-js-and-socketio-51b2</guid>
      <description>&lt;p&gt;how to build a real-time chat app with nodejs socket.io:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/GPG92JJyLHc?si=of8lVkpS13z4hVo3%5B%5D(https://youtu.be/GPG92JJyLHc?si=of8lVkpS13z4hVo3)"&gt;https://youtu.be/GPG92JJyLHc?si=of8lVkpS13z4hVo3[](https://youtu.be/GPG92JJyLHc?si=of8lVkpS13z4hVo3)&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Vue 3 Flash Message in Laravel 10</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Fri, 22 Sep 2023 11:59:37 +0000</pubDate>
      <link>https://dev.to/tutsmake/vue-3-flash-message-in-laravel-10-4n06</link>
      <guid>https://dev.to/tutsmake/vue-3-flash-message-in-laravel-10-4n06</guid>
      <description>&lt;h2&gt;
  
  
  Vue 3 Flash Message in Laravel 10
&lt;/h2&gt;

&lt;p&gt;Flash messages are required in Laravel 10 applications to indicate progress, errors, and warnings. You can add flash messages to Laravel 10 Vue.js apps by following these steps: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Laravel 10 app.&lt;/li&gt;
&lt;li&gt;Configure the database to the app.&lt;/li&gt;
&lt;li&gt;Create a model and migration.&lt;/li&gt;
&lt;li&gt;Configure NPM.&lt;/li&gt;
&lt;li&gt;Add routes.&lt;/li&gt;
&lt;li&gt;Create a controller by command.&lt;/li&gt;
&lt;li&gt;Create a Vue component.&lt;/li&gt;
&lt;li&gt;Start Development Server&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read More = &lt;a href="https://www.tutsmake.com/laravel-10-vue-js-flash-message-tutorial/"&gt;Vue 3 Flash Message in Laravel 10&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>vue3</category>
      <category>flash</category>
      <category>messages</category>
    </item>
    <item>
      <title>Laravel 10 Vue 3 JS Authentication Tutorial</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Fri, 22 Sep 2023 06:55:36 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-vue-3-js-authentication-tutorial-4klp</link>
      <guid>https://dev.to/tutsmake/laravel-10-vue-3-js-authentication-tutorial-4klp</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10 Vue 3 JS Authentication Tutorial
&lt;/h2&gt;

&lt;p&gt;Laravel 10 Vue 3 js &amp;amp; UI provides authentication features like login, registration, and password reset. You can use Vue.js to create auth scaffolding in Laravel 10. Here are some steps you can try: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Laravel 10.&lt;/li&gt;
&lt;li&gt;Install Laravel UI.&lt;/li&gt;
&lt;li&gt;Install the Laravel Vue auth scaffolding.&lt;/li&gt;
&lt;li&gt;Install the vitejs/plugin-vue plugin. This plugin provides the dependencies needed to run the Vue.js application on Vite.&lt;/li&gt;
&lt;li&gt;Run the Laravel 10 application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/laravel-10-vue-3-js-login-registration-authentication-example"&gt;Laravel 10 Vue 3 JS Authentication Tutorial&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Add Digital Signature on PDF in Laravel 10</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Fri, 22 Sep 2023 06:22:39 +0000</pubDate>
      <link>https://dev.to/tutsmake/how-to-add-digital-signature-on-pdf-in-laravel-10-40gm</link>
      <guid>https://dev.to/tutsmake/how-to-add-digital-signature-on-pdf-in-laravel-10-40gm</guid>
      <description>&lt;h2&gt;
  
  
  How to Add Digital Signature on PDF in Laravel 10
&lt;/h2&gt;

&lt;p&gt;Adding a digital signature to a PDF in Laravel involves several steps: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Laravel&lt;/li&gt;
&lt;li&gt;Install the Dompdf library&lt;/li&gt;
&lt;li&gt;Configure Laravel DomPDF&lt;/li&gt;
&lt;li&gt;Install the TCPDF library&lt;/li&gt;
&lt;li&gt;Create a controller&lt;/li&gt;
&lt;li&gt;Create a view file&lt;/li&gt;
&lt;li&gt;Create HTML code&lt;/li&gt;
&lt;li&gt;Use TCPDF to render the HTML code into a PDF&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use the elibyy/tcpdf-laravel package to add a digital signature certificate in Laravel 10. TCPDF is an open-source PHP library that supports UTF-8 Unicode and right-to-left languages. &lt;/p&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/laravel-10-digital-signature-pdf-tutorial"&gt;How to Add Digital Signature on PDF in Laravel 10&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>digital</category>
      <category>signature</category>
      <category>pdf</category>
    </item>
    <item>
      <title>Laravel 10 Add Digital Signature in PDF Example Tutorial</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Wed, 20 Sep 2023 14:13:29 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-add-digital-signature-in-pdf-example-tutorial-gal</link>
      <guid>https://dev.to/tutsmake/laravel-10-add-digital-signature-in-pdf-example-tutorial-gal</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10 Add Digital Signature in PDF Example Tutorial
&lt;/h2&gt;

&lt;p&gt;Adding a digital signature to a PDF in Laravel can be done in several steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a Laravel project.&lt;/li&gt;
&lt;li&gt;Install the TCPDF library.&lt;/li&gt;
&lt;li&gt;Configure the package.&lt;/li&gt;
&lt;li&gt;Create a new route.&lt;/li&gt;
&lt;li&gt;Create a new controller class and method.&lt;/li&gt;
&lt;li&gt;Create a blade view.&lt;/li&gt;
&lt;li&gt;Generate the PDF file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can use the elibyy/tcpdf-laravel package to add a digital signature certificate in PDFs in Laravel 10. TCPDF is an open-source PHP library that supports UTF-8 Unicode and right-to-left languages.&lt;/p&gt;

&lt;p&gt;Electronic signatures are legal and binding. The E-Sign Act states that electronic signatures shouldn't be considered invalid simply because they're electronic.&lt;/p&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/laravel-10-digital-signature-pdf-tutorial/"&gt;Laravel 10 Add Digital Signature in PDF Example Tutorial&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel 10 Get Latest Record From Database</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Mon, 18 Sep 2023 12:27:50 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-get-latest-record-from-database-1o34</link>
      <guid>https://dev.to/tutsmake/laravel-10-get-latest-record-from-database-1o34</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10 Get Latest Record From Database
&lt;/h2&gt;

&lt;p&gt;You can use the latest() method in Laravel to get the latest records from a database. The latest() method was introduced in Laravel version 5.3. It uses the created_at column to sort the data.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Here are some examples of using the latest() method:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$lastRecord = User::latest()-&amp;gt;first()
return DB::table('files')-&amp;gt;latest('upload_time')-&amp;gt;first()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/laravel-get-last-latest-record-example&amp;lt;br&amp;gt;%0A[](url)"&gt;Laravel 10 Get Latest Record From Database&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>get</category>
      <category>latest</category>
      <category>record</category>
    </item>
    <item>
      <title>Laravel 10 Get Random Records from Database Tutorial</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Mon, 18 Sep 2023 11:43:22 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-get-random-records-from-database-tutorial-223b</link>
      <guid>https://dev.to/tutsmake/laravel-10-get-random-records-from-database-tutorial-223b</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10 Get Random Records from Database Tutorial
&lt;/h2&gt;

&lt;p&gt;You can use the inRandomOrder() method to get random records in Laravel. This method is available in Laravel 5.2 and later.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Here are some examples of how to use inRandomOrder():&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Post::select('id', 'title', 'slug')-&amp;gt;inRandomOrder()-&amp;gt;get()
$randomComment = Comment::query() -&amp;gt;inRandomOrder() -&amp;gt;first()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/how-to-get-random-records-in-laravel"&gt;Laravel 10 Get Random Records from Database Tutorial&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>get</category>
      <category>random</category>
      <category>record</category>
    </item>
    <item>
      <title>Laravel sqlstate(hy000 error 1045) access denied for user</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Mon, 18 Sep 2023 07:41:11 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-sqlstatehy000-error-1045-access-denied-for-user-1ck4</link>
      <guid>https://dev.to/tutsmake/laravel-sqlstatehy000-error-1045-access-denied-for-user-1ck4</guid>
      <description>&lt;h2&gt;
  
  
  Laravel sqlstate(hy000 error 1045) access denied for user
&lt;/h2&gt;

&lt;p&gt;The Laravel error SQLSTATE[HY000] Access denied for user can occur if you forgot to add the database name, username, and password to your Laravel app. You can fix this by opening the .env file in the Laravel app and adding the database name, username, and password.&lt;/p&gt;

&lt;h2&gt;
  
  
  The error can also occur if:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The password you are using doesn't match what MySQL thinks the password should be for the user you're connecting as.&lt;/li&gt;
&lt;li&gt;A matching MySQL user doesn't exist.&lt;/li&gt;
&lt;li&gt;The user “root” does not have the necessary permissions.&lt;/li&gt;
&lt;li&gt;If you are using the PHP's default web server, you need to restart your server after changing your .env file values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/sqlstatehy000-error-1045-access-denied-for-user-laravel"&gt;Laravel sqlstate(hy000 error 1045) access denied for user&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>sqlstate</category>
      <category>errors</category>
      <category>denied</category>
    </item>
    <item>
      <title>Laravel 10 Get env Variable in Blade Controller</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Sun, 17 Sep 2023 13:18:05 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-get-env-variable-in-blade-controller-25b</link>
      <guid>https://dev.to/tutsmake/laravel-10-get-env-variable-in-blade-controller-25b</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10 Get env Variable in Blade Controller
&lt;/h2&gt;

&lt;p&gt;To get an environment variable in a Laravel controller, you can use the env() helper function. The syntax is:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;env('VARIABLE_NAME')&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
For example, to get the value of APP_NAME, you can use:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$name = env('APP_NAME')&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To get an environment variable in Laravel Blade, you can use the env() function. The syntax is env('VARIABLE_NAME'). If the variable exists, its value will be returned. If the variable doesn't exist, the default value will be returned, which is null by default.&lt;/p&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/how-to-get-env-variable-in-blade-or-controller"&gt;Laravel 10 Get env Variable in Blade Controller&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel 10 Get Current Route Name in Blade &amp; Controller</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Sun, 17 Sep 2023 12:56:34 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-10-get-route-name-in-blade-controller-2c0a</link>
      <guid>https://dev.to/tutsmake/laravel-10-get-route-name-in-blade-controller-2c0a</guid>
      <description>&lt;p&gt;You can get the current route name in Laravel using the route() function. You can pass the route name as an argument to the function, and it will return the route using that name.&lt;/p&gt;

&lt;h2&gt;
  
  
  Laravel 10 Get Current Route Name in Blade &amp;amp; Controller
&lt;/h2&gt;

&lt;p&gt;Here are some examples of getting the current route name in Laravel:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;$routeName = Route::getCurrentRoute()-&amp;gt;getPath(); print($routeName)&lt;/li&gt;
&lt;li&gt;$name = $route-&amp;gt;getName(); dd($name)&lt;/li&gt;
&lt;li&gt;$name = Route::currentRouteName(); dd($name)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/how-to-get-current-route-name-in-laravel"&gt;Laravel 10 Get Current Route Name in Blade &amp;amp; Controller&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel 10|9 Enable &amp; Get Query Log Tutorial</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Sun, 17 Sep 2023 12:41:57 +0000</pubDate>
      <link>https://dev.to/tutsmake/laravel-109-enable-get-query-log-tutorial-46ll</link>
      <guid>https://dev.to/tutsmake/laravel-109-enable-get-query-log-tutorial-46ll</guid>
      <description>&lt;h2&gt;
  
  
  Laravel 10|9 Enable &amp;amp; Get Query Log Tutorial
&lt;/h2&gt;

&lt;p&gt;The getQueryLog() method in Laravel allows you to retrieve database queries that were executed during a request. This can be useful for debugging and analyzing SQL queries.&lt;/p&gt;

&lt;p&gt;To get the query log, you can use the DB::enableQueryLog() method to enable the query log. This method stores all executed queries in the cache. Then, you can use the DB::getQueryLog() method to access the queries.&lt;/p&gt;

&lt;p&gt;You can also log queries by registering a query listener using the DB::listen method. This method can be used in the boot method of an AppServiceProvider class.&lt;/p&gt;

&lt;p&gt;Logging queries can help you debug issues such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Users not getting the expected output&lt;/li&gt;
&lt;li&gt;The application getting a slow response from the database server&lt;/li&gt;
&lt;li&gt;Not getting any output because something is wrong with the query&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Laravel logging is based on "channels". Each channel represents a specific way of writing log information. For example, the single channel writes log files to a single log file, while the slack channel sends log messages to Slack.&lt;/p&gt;

&lt;p&gt;Read More &lt;a href="https://dev.tolaravel-get-query-log-example"&gt;Laravel 10|9 Enable &amp;amp; Get Query Log Tutorial&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>419 Page expired Laravel 10|9 postman, Ajax Post, Form Submit Login</title>
      <dc:creator>Tutsmake</dc:creator>
      <pubDate>Sun, 17 Sep 2023 11:04:50 +0000</pubDate>
      <link>https://dev.to/tutsmake/419-page-expired-laravel-109-postman-ajax-post-form-submit-login-5g0i</link>
      <guid>https://dev.to/tutsmake/419-page-expired-laravel-109-postman-ajax-post-form-submit-login-5g0i</guid>
      <description>&lt;h2&gt;
  
  
  419 Page expired Laravel postman, Ajax Post, Form Submit Login
&lt;/h2&gt;

&lt;p&gt;The 419 page expired error in Laravel can occur when a CSRF token expires or becomes invalid. This error can happen when a user submits a post request with postman, ajax post request. To fix this error, you can try:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Refreshing the page&lt;/li&gt;
&lt;li&gt;Logging out and logging back in again to obtain a new CSRF token&lt;/li&gt;
&lt;li&gt;Clearing your browser cache and cookies&lt;/li&gt;
&lt;li&gt;Restarting your browser&lt;/li&gt;
&lt;li&gt;Restarting your computer&lt;/li&gt;
&lt;li&gt;Trying a different web browser&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The 419 error can also occur due to:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Misconfigured cache&lt;/li&gt;
&lt;li&gt;Permissions&lt;/li&gt;
&lt;li&gt;Improper session settings&lt;/li&gt;
&lt;li&gt;If you are using Ajax requests, you can try adding a CSRF token in the header of the Ajax requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Read More &lt;a href="https://www.tutsmake.com/solved-laravel-419-page-expired/"&gt;419 Page expired Laravel postman, Ajax Post, Form Submit Login&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>ajax</category>
      <category>post</category>
      <category>419pageexpired</category>
    </item>
  </channel>
</rss>
