<?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: Bhanu Pratap Singh</title>
    <description>The latest articles on DEV Community by Bhanu Pratap Singh (@bpss2010).</description>
    <link>https://dev.to/bpss2010</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%2F198276%2Fd5f1e029-e969-4778-b9ec-06919713dc4f.gif</url>
      <title>DEV Community: Bhanu Pratap Singh</title>
      <link>https://dev.to/bpss2010</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bpss2010"/>
    <language>en</language>
    <item>
      <title>Laravel Eloquent Mutators and Accessors</title>
      <dc:creator>Bhanu Pratap Singh</dc:creator>
      <pubDate>Sun, 03 Jan 2021 18:15:16 +0000</pubDate>
      <link>https://dev.to/bpss2010/laravel-eloquent-mutators-and-accessors-13jc</link>
      <guid>https://dev.to/bpss2010/laravel-eloquent-mutators-and-accessors-13jc</guid>
      <description>&lt;p&gt;&lt;a href="https://coderuck.com/"&gt;@Coderuck&lt;/a&gt;&lt;br&gt;
&lt;a href="https://coderuck.com/laravel-eloquent-mutators-and-accessors/78"&gt;Laravel Eloquent Mutators and Accessors&lt;/a&gt; allows you to transform Eloquent attribute values when you retrieve or set them on model instances.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://coderuck.com/laravel-eloquent-mutators-and-accessors/78"&gt;Laravel Eloquent Mutators and Accessors&lt;/a&gt; is of the Eloquent ORM in the Laravel web framework.&lt;/p&gt;

&lt;p&gt;In Laravel, mutators and accessors allow you to alter data before it's saved to and fetched from a database.&lt;/p&gt;

&lt;p&gt;Basically through mutators you can alter data before it saved to database and through accessor allows you to alter data after it's fetched from a database. To define an accessor, create a get{Attribute}Attribute method on your model where {Attribute} will be your table column name will be like for example you have first_name as column name then it accessors will be getFirstNameAttribute() and mutators will be setFirstNameAttribute().&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.youtube.com/watch?v=5FaTn7eqsXY"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_iBfPrTR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://img.youtube.com/vi/5FaTn7eqsXY/0.jpg" alt="IMAGE ALT TEXT HERE"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://coderuck.com/"&gt;@Coderuck&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel Create Custom Class</title>
      <dc:creator>Bhanu Pratap Singh</dc:creator>
      <pubDate>Wed, 26 Feb 2020 06:31:53 +0000</pubDate>
      <link>https://dev.to/bpss2010/laravel-create-custom-class-252m</link>
      <guid>https://dev.to/bpss2010/laravel-create-custom-class-252m</guid>
      <description>&lt;p&gt;First we will &lt;a href="http://coderuck.com/"&gt;create custom class&lt;/a&gt; file inside laravel project app/Classes If Classes folder doesn't exist inside app folder then create it manually.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--98lAOyt4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-1_1582697843.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--98lAOyt4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-1_1582697843.PNG" alt="coderuck-laravel-custom-class-1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second step is to create your class file, I have created like SendSms.php inside your app/Classes folder.&lt;/p&gt;

&lt;p&gt;Third step define your class code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--o9e8j90D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-2_1582698099.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--o9e8j90D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-2_1582698099.PNG" alt="coderuck-laravel-custom-class-2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally you have created your custom class now how to access custom class method.?&lt;/p&gt;

&lt;p&gt;Define use App\Classes\SendSms; on the top of your controller.Then only you can able to access custom class method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vfG-ZX6Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-3_1582698376.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vfG-ZX6Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://webadmin.coderuck.com/public/editiorimages/coderuck-laravel-custom-class-3_1582698376.PNG" alt="coderuck-laravel-custom-class-3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://coderuck.com/laravel-create-custom-class/50"&gt;@Other Reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://coderuck.com/"&gt;@Coderuck&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>class</category>
    </item>
    <item>
      <title>Mysql Remove Unique Key From Mysql Table</title>
      <dc:creator>Bhanu Pratap Singh</dc:creator>
      <pubDate>Mon, 17 Feb 2020 12:07:02 +0000</pubDate>
      <link>https://dev.to/bpss2010/mysql-remove-unique-key-from-mysql-table-3jjk</link>
      <guid>https://dev.to/bpss2010/mysql-remove-unique-key-from-mysql-table-3jjk</guid>
      <description>&lt;p&gt;While working with database i came to one situation where at first i have unique key for email in users table but later there come a situation we now i have to remove unique key.&lt;br&gt;
So this is how i &lt;a href="https://coderuck.com/mysql-remove-unique-key-from-mysql-table/48"&gt;made it work&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;SHOW&lt;/span&gt; &lt;span class="nx"&gt;INDEX&lt;/span&gt; &lt;span class="nx"&gt;FROM&lt;/span&gt; &lt;span class="nx"&gt;users&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--628lOmMq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bw0nibx7odppmdtmlspc.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--628lOmMq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/bw0nibx7odppmdtmlspc.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then based on the result returned you have can remove the key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;ALTER&lt;/span&gt; &lt;span class="nx"&gt;TABLE&lt;/span&gt; &lt;span class="nx"&gt;users&lt;/span&gt; &lt;span class="nx"&gt;DROP&lt;/span&gt; &lt;span class="nx"&gt;INDEX&lt;/span&gt; &lt;span class="nx"&gt;users_email_unique&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



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

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BHWKqp8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6nhhf6rzpjtox3293bk5.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BHWKqp8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/6nhhf6rzpjtox3293bk5.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3z4Nqvhy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/z0s8cawr294z8d6tt1jn.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3z4Nqvhy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/z0s8cawr294z8d6tt1jn.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://coderuck.com/mysql-remove-unique-key-from-mysql-table/48"&gt;@Other Reference&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://coderuck.com/"&gt;@Coderuck&lt;/a&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>mysql</category>
    </item>
    <item>
      <title>Apply css that will not include specific class.</title>
      <dc:creator>Bhanu Pratap Singh</dc:creator>
      <pubDate>Thu, 13 Feb 2020 08:40:39 +0000</pubDate>
      <link>https://dev.to/bpss2010/apply-css-that-will-not-include-specific-class-290i</link>
      <guid>https://dev.to/bpss2010/apply-css-that-will-not-include-specific-class-290i</guid>
      <description>&lt;p&gt;Here i wanted to show how i resolve &lt;a href="http://coderuck.com/"&gt;css problem&lt;/a&gt;  which i was facing.&lt;br&gt;
I was stuck in one situation where i just wanted to apply css that will not include specific class.&lt;br&gt;
I know it is making confusion lets take a example.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WIGm70CF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/rivf1n9pak25sfrd7z0n.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WIGm70CF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/rivf1n9pak25sfrd7z0n.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So here second .code css i don't want to apply on element which contain .language-javascript class but i will have .code class.&lt;br&gt;
By this i made it will work.&lt;/p&gt;

&lt;p&gt;You can also check other reference:&lt;a href="http://coderuck.com/"&gt;http://coderuck.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>jQuery noConflict() method.</title>
      <dc:creator>Bhanu Pratap Singh</dc:creator>
      <pubDate>Wed, 12 Feb 2020 06:30:07 +0000</pubDate>
      <link>https://dev.to/bpss2010/jquery-noconflict-method-5og</link>
      <guid>https://dev.to/bpss2010/jquery-noconflict-method-5og</guid>
      <description>&lt;p&gt;What is noConflict()&lt;br&gt;
noConflict() is an inbuilt function in jQuery by which you can resolve conflict situation when you use multiple JavaScript frameworks/libraries.&lt;/p&gt;

&lt;p&gt;Why we use noConflict()&lt;br&gt;
As we know we use $ sign in jquery for defination and for single project we also other JavaScript libraries and frameworks like ReactJs,Angular,Knockout etc.What if other JavaScript frameworks/libraries also use $ sign.?&lt;br&gt;
In that case one of them might not work as excepted so to overcome this situation jQuery introduce noConflict() method.&lt;/p&gt;

&lt;p&gt;Basically noConflict() method releases the hold on the $ shortcut identifier, so that other scripts can use it.&lt;/p&gt;

&lt;p&gt;Some of the example about noConfilt method &lt;a href="http://coderuck.com/jquery-noconflict-method/41"&gt;http://coderuck.com/jquery-noconflict-method/41&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
  </channel>
</rss>
