<?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: Rohit Urane</title>
    <description>The latest articles on DEV Community by Rohit Urane (@rohiturane).</description>
    <link>https://dev.to/rohiturane</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%2F402673%2F7b3c8fc2-5507-4919-857e-c60900813104.jpeg</url>
      <title>DEV Community: Rohit Urane</title>
      <link>https://dev.to/rohiturane</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rohiturane"/>
    <language>en</language>
    <item>
      <title>Mastering the Eloquent where Condition in Laravel</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Sat, 17 Aug 2024 10:46:38 +0000</pubDate>
      <link>https://dev.to/rohiturane/mastering-the-eloquent-where-condition-in-laravel-44bd</link>
      <guid>https://dev.to/rohiturane/mastering-the-eloquent-where-condition-in-laravel-44bd</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2e5f9j77a8czgvpv51qv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2e5f9j77a8czgvpv51qv.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel's Eloquent ORM (Object-Relational Mapping) is one of its standout features, offering a robust and expressive way to interact with your database. One essential functionality Eloquent provides is the method, that allows developers to filter queries efficiently and intuitively. In this article, we will delve deep into the where condition, exploring its various forms and practical use cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Usage of where
&lt;/h2&gt;

&lt;p&gt;The where method is used to add basic constraints to database queries. Here’s a simple example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$users = User::where('status', 'active')-&amp;gt;get();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we are retrieving all users where the status column is active.&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax
&lt;/h2&gt;

&lt;p&gt;The basic syntax of the where method is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Model::where('column', 'operator', 'value');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;column: The name of the column.&lt;/p&gt;

&lt;p&gt;operator: The comparison operator (e.g., =, &amp;gt;, &amp;lt;, &amp;gt;=, &amp;lt;=, !=). If omitted, = is assumed.&lt;/p&gt;

&lt;p&gt;value: The value to compare the column against.&lt;/p&gt;

&lt;p&gt;You can read more about an article on &lt;a href="https://www.devrohit.com/where-condition-in-laravel" rel="noopener noreferrer"&gt;this post&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>php</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Conduct Effective Keyword Research</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Tue, 16 Jul 2024 13:38:33 +0000</pubDate>
      <link>https://dev.to/rohiturane/how-to-conduct-effective-keyword-research-452f</link>
      <guid>https://dev.to/rohiturane/how-to-conduct-effective-keyword-research-452f</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fij54bwwe6aumnm389rle.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fij54bwwe6aumnm389rle.png" alt="Image description" width="698" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Keyword research is a foundational aspect of SEO (Search Engine Optimization). It involves identifying the words and phrases that people use when searching for information online. By understanding these keywords, you can optimize your content to attract more visitors to your website. This guide will walk you through the process of conducting effective keyword research, ensuring that your SEO efforts are both strategic and successful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Keyword Research is Important
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Increased Traffic: Targeting the right keywords helps you attract more visitors to your site.&lt;/li&gt;
&lt;li&gt;Better Understanding of Your Audience: Keywords reveal what your audience is interested in and looking for.&lt;/li&gt;
&lt;li&gt;Improved Content Strategy: Knowing popular keywords helps you create content that meets your audience's needs.&lt;/li&gt;
&lt;li&gt;Competitive Advantage: Identifying low-competition keywords allows you to rank higher in search results.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Steps to Conduct Effective Keyword Research
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Brainstorm Seed Keywords&lt;br&gt;
Seed keywords are the starting point of your keyword research. These are basic terms related to your business, products, or services. Begin by brainstorming a list of words that you think potential customers might use to find your offerings. For example, if you run a bakery, your seed keywords might include "cupcakes," "bread," and "pastries."&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use Keyword Research Tools&lt;br&gt;
There are several tools available that can help you expand your list of keywords and provide valuable data on each term. Some popular keyword research tools include:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Google Keyword Planner: Offers keyword suggestions and data on search volume and competition.&lt;/li&gt;
&lt;li&gt;Ahrefs: Provides comprehensive keyword analysis, including difficulty scores and click potential.&lt;/li&gt;
&lt;li&gt;SEMrush: Offers insights into keyword trends, competition, and related terms.&lt;/li&gt;
&lt;li&gt;Ubersuggest: A free tool that generates keyword ideas and provides basic metrics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Enter your seed keywords into these tools to discover additional keyword ideas and gather important metrics such as search volume (how often a keyword is searched) and keyword difficulty (how hard it is to rank for a keyword).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analyze Keyword Metrics
When evaluating keywords, consider the following metrics:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Search Volume: Indicates how many times a keyword is searched per month. Higher search volumes can drive more traffic but may also have more competition.&lt;/li&gt;
&lt;li&gt;Keyword Difficulty: Measures how challenging it is to rank for a keyword. Aim for a balance between search volume and difficulty.&lt;/li&gt;
&lt;li&gt;Cost Per Click (CPC): Useful for understanding the commercial value of a keyword, especially if you plan to run paid search campaigns.&lt;/li&gt;
&lt;li&gt;Trends: Use tools like Google Trends to see how keyword popularity changes over time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can read more about the &lt;a href="https://domainmaker.in/blog/post/effective-keyword-research" rel="noopener noreferrer"&gt;article&lt;/a&gt;&lt;/p&gt;

</description>
      <category>keywords</category>
      <category>seo</category>
    </item>
    <item>
      <title>How to use eloquent when in laravel</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Sun, 07 Jul 2024 13:58:18 +0000</pubDate>
      <link>https://dev.to/rohiturane/how-to-use-eloquent-when-in-laravel-3b6b</link>
      <guid>https://dev.to/rohiturane/how-to-use-eloquent-when-in-laravel-3b6b</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0wak0s002no2ssyb08v.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0wak0s002no2ssyb08v.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, We are implementing laravel eloquent when condition. In the filter-out process, we use the if-else condition on request. Check the code below.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

if($request-&amp;gt;filter_by == 'amount')
{
    $query-&amp;gt;where('amount', '&amp;gt;', request('amount', 0));
}

if($request-&amp;gt;filter_by == 'created_at')
{
    $query-&amp;gt;orderBy('created_at', request('order', 'desc'));
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  How to use eloquent when in laravel
&lt;/h2&gt;

&lt;p&gt;You can use the when() method. It is more readable and user-friendly. Check the code below.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

$query = Order::query();

$query-&amp;gt;when(request('filter_by') == 'amount', function($q){
    return $q-&amp;gt;where('amount','&amp;gt;', request('amount',0));
});
$query-&amp;gt;when(request('filter_by') == 'created_at', function($q){
    return $q-&amp;gt;orderBy('created_at', request('order','desc'));
});



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You can pass the third argument to the when method. This closure will only execute if the first argument evaluates as false.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

$query = Order::query();
$query-&amp;gt;when(request('filter_by') == 'amount', function($q){
    return $q-&amp;gt;where('amount','&amp;gt;', request('amount',0));
}, function($q){
    return $q-&amp;gt;orderBy('created_at', request('order','desc'));
})-&amp;gt;get();


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;It's not just a prettier way to write the same "IF" but is also a great way to organize conditional queries.&lt;/p&gt;

&lt;p&gt;You can read more about this type of article on the &lt;a href="https://devrohit.com" rel="noopener noreferrer"&gt;site&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>php</category>
      <category>laravel</category>
    </item>
    <item>
      <title>How to make policy in laravel?</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Mon, 24 Jun 2024 11:41:49 +0000</pubDate>
      <link>https://dev.to/rohiturane/how-to-make-policy-in-laravel-4i36</link>
      <guid>https://dev.to/rohiturane/how-to-make-policy-in-laravel-4i36</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8z01nb9l8i4q1mrphptz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8z01nb9l8i4q1mrphptz.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, We are studying Policy in laravel. The policy helps developers streamline authorization logic and keep their code clean and maintainable. Laravel Policies provide a way to authorize user actions on resources. Policies help centralize authorization logic and make it easy to manage access rules.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to make policy in laravel?
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Create a Policy:
&lt;/h2&gt;

&lt;p&gt;Run the below command, to create a policy class in laravel. It will create an ArticlePolicy class in the app\Policies directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:policy ArticlePolicy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Define Policy Methods:
&lt;/h2&gt;

&lt;p&gt;You can define different methods that perform on posts. You might create methods like view, create, update, and delete. These methods should return a boolean value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function view(User $user, Article $article)
{
    return $user-&amp;gt;id == $post-&amp;gt;user_id;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above method checks articles created by and access users is the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Register Policies:
&lt;/h2&gt;

&lt;p&gt;You should register your policies in the AuthServiceProvider provider. You can add policies to their respective policies.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;protected $policies = [
    Article::class = ArticlePolicy::class,
];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.devrohit.com/policy-in-laravel/"&gt;Read More&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>How do you make your traits in laravel?</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Fri, 17 May 2024 13:29:46 +0000</pubDate>
      <link>https://dev.to/rohiturane/how-do-you-make-your-traits-in-laravel-4okl</link>
      <guid>https://dev.to/rohiturane/how-do-you-make-your-traits-in-laravel-4okl</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq4j4j1c3vuc6vkaqd9yw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq4j4j1c3vuc6vkaqd9yw.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi Guys,&lt;/p&gt;

&lt;p&gt;In this article, We are studying traits in laravel. Traits are a way to reuse code in laravel. You can't instantiate on their own. It provides reusability, flexibility, and adherence to code. After including traits in class, it gives them additional methods. Avoiding the need for duplicate code blocks encourages clean and modular programming.  &lt;/p&gt;

&lt;h2&gt;
  
  
  How to make own traits in laravel application?
&lt;/h2&gt;

&lt;h1&gt;
  
  
  Make a traits file:
&lt;/h1&gt;

&lt;p&gt;You can create a traits folder inside the app directory. Make a ShareTraits file inside the traits folder.&lt;br&gt;
&lt;br&gt;
 &lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
namespace App\Traits;

trait ShareTraits {
    public function share($article) {
        return 'Share the article';
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now, you can use this trait in other classes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
namespace App\Http\Controllers;

use App\Traits\ShareTraits;
use App\Http\Controller;

class Article extends Controller{
    use ShareTraits;

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After Importing traits, we can use the share() method in the controller. You can import this trait into any class. So that access their functions. &lt;/p&gt;

&lt;p&gt;Please check the rest of the article on &lt;a href="https://www.devrohit.com/traits-in-laravel/"&gt;Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
      <category>traits</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Create Custom Facade in laravel?</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Fri, 03 May 2024 09:55:19 +0000</pubDate>
      <link>https://dev.to/rohiturane/how-to-create-custom-facade-in-laravel-10mp</link>
      <guid>https://dev.to/rohiturane/how-to-create-custom-facade-in-laravel-10mp</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flw8ck2x1kps3m0die9xe.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flw8ck2x1kps3m0die9xe.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this article, We are studying facades in laravel. A facade is a design pattern that provides a static interface to classes inside the framework's service container. You can access all the features of laravel with facades. It provides the benefit of a terse, expressive syntax while maintaining more testability and flexibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some of the laravel facades
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Cache: Access the caching system.&lt;/li&gt;
&lt;li&gt;Config: Access the configuration values.&lt;/li&gt;
&lt;li&gt;DB: Interact with the database using Laravel's query builder&lt;/li&gt;
&lt;li&gt;Log: write a log message&lt;/li&gt;
&lt;li&gt;Mail: Access the Mailing system.&lt;/li&gt;
&lt;li&gt;File: Perform file operation&lt;/li&gt;
&lt;li&gt;Route: handle HTTP request&lt;/li&gt;
&lt;li&gt;Storage: handle file system.&lt;/li&gt;
&lt;li&gt;Session: Manage session data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Laravel contains many facades to handle the core functionality of laravel. Also, you can create custom facades that allow you to access them more concisely throughout your application.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to create a custom Facade in Laravel
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Create a helper class
&lt;/h3&gt;

&lt;p&gt;Create a "Message" directory inside the App directory and create a php class inside the directory.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&amp;lt;?php
namespace App\Message;

class WelcomeMessage
{

    public function greet()
    {
        return 'Welcome to Our Platform';
    }
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  Register helper class
&lt;/h3&gt;

&lt;p&gt;You can register a helper class in AppServiceProvider Provider.&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

public function register()
{
    $this-&amp;gt;app-&amp;gt;bind('greeting', function(){
        return new WelcomeMessage();
    });
}


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You can read the article on &lt;a href="https://www.devrohit.com/custom-facade-in-laravel/" rel="noopener noreferrer"&gt;website&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>laravel</category>
      <category>facade</category>
    </item>
    <item>
      <title>What is the use of service providers for laravel</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Mon, 25 Mar 2024 06:31:51 +0000</pubDate>
      <link>https://dev.to/rohiturane/what-is-the-use-of-service-providers-for-laravel-2g17</link>
      <guid>https://dev.to/rohiturane/what-is-the-use-of-service-providers-for-laravel-2g17</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fla9rrhnjcfqhrmi7yyq7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fla9rrhnjcfqhrmi7yyq7.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi guys,&lt;/p&gt;

&lt;p&gt;In this article, We are studying Service Providers. It is the central place of all laravel application bootstrapping. You can be bootstrapping custom classes and laravel core classes, which contain registering service container bindings, event listeners, middleware, and custom routes.&lt;/p&gt;

&lt;p&gt;You can see providers inside the config/app.php file. It contains the Providers array. You can specify your service providers and already contain a set of laravel core service providers and Provider loads on a specific route. You will learn how to write and register your service provider in the laravel application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a Service Provider
&lt;/h2&gt;

&lt;p&gt;All Service Provider extends the Illuminate\Support\ServiceProvider class. Run the below command to make your service provider.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:provider InstallServiceProvider&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It contains a register and boot method. In the register method, you can specify only bind things into the service container. You should not register any event listeners or routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Register method:
&lt;/h2&gt;

&lt;p&gt;You should not register any event listeners, routes, or functionality within the register method of a service container. Instead, only bind things in the container. You can access the $app property, which provides access to the service container.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Providers;

use App\Services\Riak\Connection;
use Illuminate\Support\ServiceProvider;

class RiakServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this-&amp;gt;app-&amp;gt;singleton(Connection::class, function ($app) {
            return new Connection(config('riak'));
        });
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Bindings and Singletons Properties:
&lt;/h2&gt;

&lt;p&gt;You want to register many service providers in a simple binding using bindings and singletons properties. It will automatically check these properties and register their bindings.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

namespace App\Providers;

use App\Contracts\DowntimeNotifier;
use App\Contracts\ServerProvider;
use App\Services\DigitalOceanServerProvider;
use App\Services\PingdomDowntimeNotifier;
use App\Services\ServerToolsProvider;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * All of the container bindings that should registered.
     *
     * @var array
     */
    public $bindings = [
        ServerProvider::class =&amp;gt; DigitalOceanServerProvider::class,
    ];

    /**
     * All of the container singletons that should be registered.
     *
     * @var array
     */
    public $singletons = [
        DowntimeNotifier::class =&amp;gt; PingdomDowntimeNotifier::class,
        ServerProvider::class =&amp;gt; ServerToolsProvider::class,
    ];
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.devrohit.com/service-provider-in-laravel/"&gt;Click here to Read More&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Faster your application with Laravel Debug Bar Package</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Fri, 02 Feb 2024 07:59:57 +0000</pubDate>
      <link>https://dev.to/rohiturane/faster-your-application-with-laravel-debug-bar-package-1l4f</link>
      <guid>https://dev.to/rohiturane/faster-your-application-with-laravel-debug-bar-package-1l4f</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcj84d7ul64296mnsvl3f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcj84d7ul64296mnsvl3f.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hi guys,&lt;/p&gt;

&lt;p&gt;In this article, We are studying laravel debugbar packages. You use the Laravel Debug bar package to debug and profile the toolbar in your application. It contains different features like performs, queries, and exceptions. The Laravel Debug bar is a crucial debugging and profiling toolbar for laravel applications. Use the Laravel Debug bar to simplify the debugging process and enhance your productivity during development. It slows the execution of the application because it has to gather data. It helps to simplify the debugging process, boosting your productivity, and you can deliver high-quality laravel applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Query Inspection:&lt;/strong&gt; quickly study and analyze the execution queries and monitor your model performance.&lt;br&gt;
&lt;strong&gt;Request Profiling:&lt;/strong&gt; you can track and display detailed information on requests, memory usage, execution time, and timeline of events.&lt;br&gt;
&lt;strong&gt;Logging and Exceptions:&lt;/strong&gt; it provides a display panel and investigates log messages and exceptions.&lt;br&gt;
&lt;strong&gt;Timing and benchmarking:&lt;/strong&gt; it shows the execution time of code, helping you identify areas of your applications that might need optimization.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step by Step to step up laravel debug bar
&lt;/h2&gt;
&lt;h2&gt;
  
  
  Install the Laravel Debugbar Package
&lt;/h2&gt;

&lt;p&gt;Run the below command to install the laravel debug bar.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer require barryvdh/laravel-debugbar --dev&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Register the debug bar
&lt;/h2&gt;

&lt;p&gt;You need to register and publish the debug bar in your application. Execute the below command:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://bit.ly/3SmPpPN"&gt;Read More&lt;/a&gt; &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>laravel</category>
    </item>
    <item>
      <title>Mastering YouTube Success: The Art of Generating Effective YouTube Tags</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Mon, 29 Jan 2024 13:43:00 +0000</pubDate>
      <link>https://dev.to/rohiturane/mastering-youtube-success-the-art-of-generating-effective-youtube-tags-1ib8</link>
      <guid>https://dev.to/rohiturane/mastering-youtube-success-the-art-of-generating-effective-youtube-tags-1ib8</guid>
      <description>&lt;h2&gt;
  
  
  Introduction:
&lt;/h2&gt;

&lt;p&gt;In the vast expanse of YouTube, where content reigns supreme, creators vie for attention, and the battle for views is fierce, one element stands out as a game-changer – the strategic use of YouTube tags. In this deep dive into the world of generating effective YouTube tags, we'll unravel the mysteries, explore the nuances, and equip you with the knowledge to elevate your content above the competition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Essence: Decoding YouTube Tags
&lt;/h2&gt;

&lt;p&gt;Defining YouTube Tags:&lt;/p&gt;

&lt;p&gt;YouTube tags, often underestimated, are the invisible thread that connects your video to its potential audience. These are keywords or phrases strategically placed to communicate with YouTube's algorithm, directing it to categorize, recommend, and display your content accurately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Role in the Algorithm:
&lt;/h2&gt;

&lt;p&gt;YouTube's algorithm is a sophisticated beast, and tags serve as its language. Tags provide crucial metadata, guiding the algorithm to understand the context, relevance, and intended audience for your video. In essence, they are the keys to unlocking visibility and engagement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why YouTube Tags Matter Enhancing Searchability :
&lt;/h2&gt;

&lt;p&gt;At the core of YouTube tags' importance lies their ability to enhance searchability. Imagine your video as a needle in the YouTube haystack; well-optimized tags act as a magnet, ensuring your content surfaces when users search for related topics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Guiding Algorithmic Recommendations :
&lt;/h2&gt;

&lt;p&gt;YouTube's recommendation engine is a powerful ally when tags are strategically employed. Tags align your content with the preferences of potential viewers, making your video a prime candidate for recommendation, and broadening your audience reach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Contextual Categorization :
&lt;/h2&gt;

&lt;p&gt;Tags aid in categorizing your content accurately. This not only ensures that your video reaches the right audience but also facilitates a seamless user experience, as viewers are presented with content aligned with their interests.&lt;/p&gt;

&lt;p&gt;For more information, you visit &lt;a href="https://supertools.domainmaker.in/post/mastering-youtube-success-the-art-of-generating-effective-youtube-tags"&gt;Site&lt;/a&gt;&lt;/p&gt;

</description>
      <category>youtube</category>
      <category>tags</category>
      <category>learning</category>
    </item>
    <item>
      <title>Learning the Art of Domain Name Selection for SEO Success</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Sat, 27 Jan 2024 10:14:11 +0000</pubDate>
      <link>https://dev.to/rohiturane/learning-the-art-of-domain-name-selection-for-seo-success-3b2f</link>
      <guid>https://dev.to/rohiturane/learning-the-art-of-domain-name-selection-for-seo-success-3b2f</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabe1mmjms71aftqy431e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabe1mmjms71aftqy431e.jpg" alt="Image description" width="698" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt; &lt;br&gt;
In the vast digital geography, the journey to establish your online presence begins with a  pivotal decision — choosing the perfect domain name. This guide will unveil the art of choosing a domain name that not only resonates with your brand but also aligns seamlessly with SEO strategies,  icing your website stands out in the competitive online arena.  &lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with Keyword Research: 
&lt;/h2&gt;

&lt;p&gt;Before embarking on your domain hunt, conduct a thorough keyword exploration related to your niche. Identify terms that implicit visitors might use to find content or services analogous to yours. These keywords will serve as the foundation for an SEO-friendly domain.  &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Clarity and Applicability: 
&lt;/h2&gt;

&lt;p&gt;Ensure that your domain name is clear, applicable, and reflects the substance of your website. A transparent and applicable domain not only aids in user understanding but also contributes appreciatively to search machine rankings.  &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Keep it Short and Simple: 
&lt;/h2&gt;

&lt;p&gt;Short,  terse domain names aren't only user-friendly but also SEO-friendly. Search machines favor simplicity, and a short domain name is more likely to be memorable for users.  &lt;/p&gt;

&lt;h2&gt;
  
  
  4. Avoid Hyphens and figures:
&lt;/h2&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Hyphens and figures can complicate domain names and make them harder to flashback. likewise, they may be misunderstood when spoken, leading to implicit user crimes. conclude for a clean, hyphen-free, and numerical-free domain for optimal SEO.  &lt;/p&gt;

&lt;h2&gt;
  
  
  5. Choose the Right Domain Extension: 
&lt;/h2&gt;

&lt;p&gt;While. com is the most extensively honored, consider other SEO-friendly extensions. net or. org. Newer extensions like. tech or. blog can also be applicable based on your website's nature.  &lt;/p&gt;

&lt;h2&gt;
  
  
  6. Unique and Brandable: 
&lt;/h2&gt;

&lt;p&gt;Craft a domain that's unique and brandable. A memorable and distinctive name aids in brand recognition and encourages users to revisit. This brand affinity can appreciatively impact SEO  criteria.  &lt;/p&gt;

&lt;h2&gt;
  
  
  7. Use Domain Name Generators: 
&lt;/h2&gt;

&lt;p&gt;Leverage domain name generators to spark creativity and discover unique combinations. These tools give suggestions grounded on your input, offering fresh ideas while considering SEO-friendly elements.  &lt;/p&gt;

&lt;h2&gt;
  
  
  8. Check Availability and History: 
&lt;/h2&gt;

&lt;p&gt;corroborate the vacuity of your chosen domain and probe its history. However, it may carry negative SEO baggage, If a domain has a problematic history. Choose a clean slate for your online adventure.  &lt;/p&gt;

&lt;h2&gt;
  
  
  9. Mobile-Friendly Considerations: 
&lt;/h2&gt;

&lt;p&gt;With the added frequency of mobile hunts, ensure your domain is mobile-friendly. A responsive design and a domain that's easy to class on mobile devices contribute to a positive user experience, impacting SEO rankings.  &lt;/p&gt;

&lt;h2&gt;
  
  
  10. Secure with SSL: 
&lt;/h2&gt;

&lt;p&gt;Security is a ranking factor for hunt machines. Ensure your website's security by carrying an SSL  instrument. A secure website not only instills trust in users but also improves SEO performance.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion  
&lt;/h2&gt;

&lt;p&gt;Selecting an SEO-friendly domain name is a  vital step in establishing a strong online presence. By combining strategic keyword choices, simplicity, and brand-ability, you can produce a domain name that not only resonates with your followership but also aligns with SEO stylish practices. Follow these guidelines, and your domain won't only be the virtual address of your website but also a  crucial player in its hunt machine success. Choose wisely, and watch your online adventure flourish in the competitive digital geography. &lt;/p&gt;

</description>
      <category>seo</category>
      <category>domain</category>
      <category>name</category>
    </item>
    <item>
      <title>Mastering Efficiency: Unleashing the Power of CRUD Operations in Laravel</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Tue, 26 Dec 2023 13:35:41 +0000</pubDate>
      <link>https://dev.to/rohiturane/mastering-efficiency-unleashing-the-power-of-crud-operations-in-laravel-5bk8</link>
      <guid>https://dev.to/rohiturane/mastering-efficiency-unleashing-the-power-of-crud-operations-in-laravel-5bk8</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HK0ucU9F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ovuqa2t97ge3y6014ke.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HK0ucU9F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ovuqa2t97ge3y6014ke.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To manage structured data efficiently by providing the functionality to Create, Read, Update, and Delete records. In this article, We are studying the crud operations in laravel 9 with examples and validating user inputs in laravel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a project on Laravel
&lt;/h2&gt;

&lt;p&gt;Run the below command to create a laravel application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project --prefer-dist laravel/laravel:^9.0 laravel-crud
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Update the env file
&lt;/h2&gt;

&lt;p&gt;Update the database credentials in the .env file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database-name
DB_USERNAME=user-name
DB_PASSWORD=password
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Make a Model and Migration
&lt;/h2&gt;

&lt;p&gt;We are storing information on the database. For that, we make a migration and model using the below command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:model Contact -m
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, you can check /database/migrations directory. Update the current generated file like below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function up()
{
     Schema::create('contacts', function(Blueprint $table){
             $table-&amp;gt;id();
             $table-&amp;gt;string('name');
             $table-&amp;gt;string('email');
             $table-&amp;gt;string('mobile');
             $table-&amp;gt;timestamps();
     })
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can read More details on &lt;a href="https://bit.ly/3tlEgXi"&gt;https://bit.ly/3tlEgXi&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Host your laravel application on Heroku for free.</title>
      <dc:creator>Rohit Urane</dc:creator>
      <pubDate>Sat, 23 Jul 2022 12:05:51 +0000</pubDate>
      <link>https://dev.to/rohiturane/host-your-laravel-application-on-heroku-for-free-cp3</link>
      <guid>https://dev.to/rohiturane/host-your-laravel-application-on-heroku-for-free-cp3</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn6m1hbx38v6qcqxvnstd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn6m1hbx38v6qcqxvnstd.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Host your testing laravel application on Heroku for free.&lt;/p&gt;

&lt;p&gt;Do you want to #host your laravel application on Heroku? You are going with a new setup of the laravel application.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating Laravel application on Local System
&lt;/h2&gt;

&lt;p&gt;First, I am installing the laravel application on the local development system through composer.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project --prefer-dist laravel/laravel herokuApp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Make Procfile inside the root folder of your project
&lt;/h2&gt;

&lt;p&gt;After completing the installation, create a file of the name Procfile and insert the below code. This file is a configuration file for Heroku.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;web: vendor/bin/heroku-php-apache2 public/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Download and login to the Heroku platform from the command line
&lt;/h2&gt;

&lt;p&gt;For that, you need to install Heroku CLI on your system. Go to the Heroku platform and download &amp;amp; install it. Click Here. Run the below command inside your project folder.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;heroku login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will open a browser window to log in to Heroku. If you don't have an account on Heroku, create it first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.devrohit.com/host-laravel-application-on-heroku/" rel="noopener noreferrer"&gt;Read More&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>heroku</category>
      <category>host</category>
      <category>deploymen</category>
    </item>
  </channel>
</rss>
