<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Source Code Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/source-code/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/source-code/</link>
	<description>Code Solution</description>
	<lastBuildDate>Fri, 10 Feb 2023 03:41:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>

<image>
	<url>https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-32x32.png</url>
	<title>Source Code Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/source-code/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to create JavaScript Quiz Example</title>
		<link>https://codeplaners.com/how-to-create-javascript-quiz-example/</link>
					<comments>https://codeplaners.com/how-to-create-javascript-quiz-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 10 Feb 2023 03:40:06 +0000</pubDate>
				<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JavaScript Quiz]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1459</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you How to create JavaScript Quiz Example. This article will give you simple example of How to create JavaScript Quiz Example. you will How to create JavaScript Quiz Example. In this article, we will implement a How to create JavaScript Quiz Example. So, let’s follow few steps to &#8230; <a href="https://codeplaners.com/how-to-create-javascript-quiz-example/" class="more-link">Continue reading<span class="screen-reader-text"> "How to create JavaScript Quiz Example"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-javascript-quiz-example/">How to create JavaScript Quiz Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you How to create JavaScript Quiz Example. This article will give you simple example of How to create JavaScript Quiz Example. you will How to create JavaScript Quiz Example. In this article, we will implement a How to create JavaScript Quiz Example. </p>
<p>So, let’s follow few steps to create example of How to create JavaScript Quiz Example.</p>
<h3 class="step_code">Example</h3>
<p><strong>index.html</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;Codeplaners Quiz&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot;&gt;

&lt;/head&gt;
&lt;body&gt;
	&lt;div class=&quot;wrapper&quot;&gt;
           &lt;div class=&quot;question&quot; id=&quot;questionBox&quot;&gt;
           	
           &lt;/div&gt;
           
           &lt;div class=&quot;options&quot;&gt;
           	  &lt;ul id=&quot;ul&quot;&gt;
           	  	  &lt;li id=&quot;op1&quot; onclick=&quot;button(this)&quot;&gt;&lt;/li&gt;
           	  	  &lt;li id=&quot;op2&quot; onclick=&quot;button(this)&quot;&gt;&lt;/li&gt;
           	  	  &lt;li id=&quot;op3&quot; onclick=&quot;button(this)&quot;&gt;&lt;/li&gt;
           	  	  &lt;li id=&quot;op4&quot; onclick=&quot;button(this)&quot;&gt;&lt;/li&gt;
           	  &lt;/ul&gt;
           &lt;/div&gt;
           &lt;div class=&quot;score&quot;&gt;
           	   &lt;div class=&quot;next&quot;&gt;
           	   	  &lt;button type=&quot;button&quot; onclick=&quot;next()&quot; id=&quot;button&quot;&gt;Next&lt;/button&gt;
           	   &lt;/div&gt;
           	   &lt;div class=&quot;score-card&quot;&gt;
           	   	  Score : &lt;span id=&quot;scoreCard&quot;&gt;0&lt;/span&gt;
           	   &lt;/div&gt;
               &lt;div class=&quot;back&quot;&gt;
                  &lt;button type=&quot;button&quot; onclick=&quot;back()&quot; id=&quot;button&quot;&gt;Back&lt;/button&gt;
               &lt;/div&gt;
                &lt;div class=&quot;restart&quot;&gt;
                  &lt;button type=&quot;button&quot; onclick=&quot;restart()&quot; id=&quot;button&quot;&gt;Restart&lt;/button&gt;
               &lt;/div&gt;
           &lt;/div&gt;


	&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  function restart(){
    location.reload();
  }
&lt;/script&gt;


&lt;script type=&quot;text/javascript&quot;&gt;
     
   var ul=document.getElementById('ul');
   var btn=document.getElementById('button');
   var scoreCard=document.getElementById('scoreCard');
   var quizBox=document.getElementById('questionBox');
  var op1=document.getElementById('op1');
  var op2=document.getElementById('op2');
  var op3=document.getElementById('op3');
  var op4=document.getElementById('op4');

  

      var app={
                questions:&#x5B;
                          {q:'What does the abbreviation HTML stand for?', options:&#x5B;'Hyper Text Markup Language','High Text Markup Language','Hyper Tabular Markup Language','None of these'],answer:1},
                          {q:'Correct HTML tag for the largest heading is ?',options:&#x5B;'h4','h1','h8','h9'],answer:2},

                          {q:'How many sizes of headers are available in HTML by default?',options:&#x5B;'5','1','3','6'],answer:4},

                          {q:'What is the smallest header in HTML by default?',options:&#x5B;'h1','h6','h3','h4'],answer:2},

                          {q:'How do you select an element with id &quot;demo&quot;?', options:&#x5B;'*demo','#demo','demo','.demo'],answer:2},
                         
                          ],
                index:0,
                load:function(){
                     if(this.index&lt;=this.questions.length-1){
                        quizBox.innerHTML=this.index+1+&quot;. &quot;+this.questions&#x5B;this.index].q;      
                        op1.innerHTML=this.questions&#x5B;this.index].options&#x5B;0];
                        op2.innerHTML=this.questions&#x5B;this.index].options&#x5B;1];
                        op3.innerHTML=this.questions&#x5B;this.index].options&#x5B;2];
                        op4.innerHTML=this.questions&#x5B;this.index].options&#x5B;3];
                           this.scoreCard();
                        }
                        else{

                        quizBox.innerHTML=&quot;Quiz Over......!!!&quot;      
                        op1.style.display=&quot;none&quot;;
                        op2.style.display=&quot;none&quot;;
                        op3.style.display=&quot;none&quot;;
                        op4.style.display=&quot;none&quot;;
                        btn.style.display=&quot;none&quot;;
                        }
                },
                 next:function(){
                    this.index++;
                    this.load();
                 },

                  back:function(){
                    this.index--;
                    this.load();
                 },
                check:function(ele){
                   
                         var id=ele.id.split('');
                         
                         if(id&#x5B;id.length-1]==this.questions&#x5B;this.index].answer){
                          this.score++;
                          ele.className=&quot;correct&quot;;
                          ele.innerHTML=&quot;Correct&quot;;
                          this.scoreCard();
                         }
                         else{
                          ele.className=&quot;wrong&quot;;
                          ele.innerHTML=&quot;Wrong&quot;;
                         }
                },
                notClickAble:function(){
                       for(let i=0;i&lt;ul.children.length;i++){
                            ul.children&#x5B;i].style.pointerEvents=&quot;none&quot;;
                       }
                },

                clickAble:function(){
                       for(let i=0;i&lt;ul.children.length;i++){
                            ul.children&#x5B;i].style.pointerEvents=&quot;auto&quot;;
                            ul.children&#x5B;i].className=''

                       }
                },
                score:0,
                scoreCard:function(){
                  scoreCard.innerHTML=this.questions.length+&quot;/&quot;+this.score;
                }
 
           }


           window.onload=app.load();

           function button(ele){
                 app.check(ele);
                 app.notClickAble();
           }

         function  next(){
              app.next();
              app.clickAble();
         } 

             function  back(){
              app.back();
              app.clickAble();
         } 

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong>style.css</strong></p>
<pre class="brush: css; title: ; notranslate">
 body{
  background-color: #fff;
  margin:0;
  padding:0;
}
*{
  box-sizing: border-box;
  font-family: sans-serif;
}

.wrapper{
  height: 450px;
  width: 650px;
  background-color: white;
  margin:50px auto;
  border-radius: 8px;
  margin-top: 150px;

}

.wrapper .question{
  padding: 15px;
  background-color:#673ab7;
  border-radius: 8px;
  color:#ffffff;
  font-size:20px;
  float: left;
  width: 100%;

}
.wrapper .options{
  float: left;
  width: 100%;
}

.wrapper .options ul{
  list-style: none;
  padding: 0px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wrapper .options ul li{
  display: inline-block;
  background-color:#000;
  width: 47%;
  padding: 15px;
  border-radius:8px;
  margin-top: 25px;
  font-size: 15px;
  color:#ffffff;
  box-shadow: 0px 3px 0px grey;
  cursor: pointer;
  outline: none;
  text-align: center;
}
.wrapper .options ul li:active{
  box-shadow: 0px 3px 0px transparent;  

}
.wrapper .options ul li.correct{
  background-color: #0fd40f;
  box-shadow: 0px 3px 0px #03a503;
}

.wrapper .options ul li.wrong{
  background-color: #e91e1e;
  box-shadow: 0px 3px 0px #cb0b0b;
}

.wrapper .score{
  float: left;
  width: 100%;
  padding:25px 0px;
}

.wrapper .score .next{
  width: 35%;
  float: right;
}
.wrapper .score .next button{
  padding: 15px 80px;
  color:white;
  background-color:#00b0ff;
  border:none;
  border-radius:8px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0px 3px 0px #00b0ff;
  outline: none;
}
.wrapper .score .next button:active{
box-shadow: 0px 3px 0px transparent;  
}



.wrapper .score .back{
  width: 35%;
  float: center;
}
.wrapper .score .back button{
  padding: 15px 80px;
  color:white;
  background-color:#00b0ff;
  border:none;
  border-radius:8px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0px 3px 0px #00b0ff;
  outline: none;
}
.wrapper .score .back button:active{
box-shadow: 0px 3px 0px transparent;  
}


.wrapper .score .restart{
  width: 1%;
  float: right;
  margin-top: 30px;
}
.wrapper .score .restart button{
  padding: 15px 64px;
  color:white;
  background-color:red;
  border:none;
  border-radius:8px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0px 3px 0px #c97a06;
  outline: none;

}
.wrapper .score .restart button:active{
box-shadow: 0px 3px 0px transparent;  
}



.wrapper .score .score-card{
  width: 30%;
  float: right;
}
.wrapper .score .score-card{
  font-size: 20px;
  color:black;
  line-height: 50px;
  text-transform: uppercase;

}
.wrapper .score .score-card span{
  background-color: #4caf50;
  padding: 5px 15px;
  border-radius: 8px;
  color:#ffffff;

}
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-javascript-quiz-example/">How to create JavaScript Quiz Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-create-javascript-quiz-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Select Option Redirect URL On Submit Using Javascript</title>
		<link>https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/</link>
					<comments>https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 01 Nov 2021 11:07:08 +0000</pubDate>
				<category><![CDATA[Bootstrap]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Laravel 8]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[redirect url]]></category>
		<category><![CDATA[select option redirect url]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1353</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you select option redirect url on submit example. This article will give you simple example of select option redirect url on submit example. you will select option redirect url on submit example. In this article, we will implement a select option redirect url on submit example. So let’s &#8230; <a href="https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/" class="more-link">Continue reading<span class="screen-reader-text"> "Select Option Redirect URL On Submit Using Javascript"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/">Select Option Redirect URL On Submit Using Javascript</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you select option redirect url on submit example. This article will give you simple example of select option redirect url on submit example. you will select option redirect url on submit example. In this article, we will implement a select option redirect url on submit example. </p>
<p>So let’s follow few step to create example of select option redirect url on submit example.</p>
<h3 class="step_code">Example</h3>
<pre class="brush: php; title: ; notranslate">
&lt;html&gt;
   &lt;head&gt;
      &lt;title&gt;Select Option Redirect URL On Submit Example&lt;/title&gt;
      &lt;style&gt;
         input, select
         {
         width: 280px;
         margin: 19px;
         height: 45 px;
         padding: 10px;
         }
      &lt;/style&gt;
   &lt;/head&gt;
   &lt;body&gt;
      &lt;form  id=&quot;comment-form1&quot; name=&quot;contact-form1&quot;  onsubmit=&quot;return mysubmit();&quot;&gt;
         &lt;select  id=&quot;option&quot; class=&quot;chosen&quot; &gt;
            &lt;option selected disabled&gt;Select Bank&lt;/option&gt;
            &lt;option value=&quot;https://codeplaners.com/&quot;&gt;Sanwebcorner Demo&lt;/option&gt;
            &lt;option value=&quot;https://mbrwebsolution.com/&quot; &gt;Sanwebcorner Main Page&lt;/option&gt;
            &lt;option value=&quot;https://mbrwebsolution.com/contact-us&quot; &gt;Single page&lt;/option&gt;
         &lt;/select&gt;
         &lt;br/&gt;
         &lt;input name=&quot;submit&quot; type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;&lt;br&gt;
      &lt;/form&gt;
      &lt;script&gt;
         document.getElementById('comment-form1').addEventListener('submit',(e)=&gt;{
          e.preventDefault();
          window.location = (document.getElementById('option').value);
         })
      &lt;/script&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;/section&gt;
   &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/">Select Option Redirect URL On Submit Using Javascript</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/select-option-redirect-url-on-submit-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel 8 Create Unique Slug Example</title>
		<link>https://codeplaners.com/laravel-8-create-unique-slug-example/</link>
					<comments>https://codeplaners.com/laravel-8-create-unique-slug-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 30 Oct 2021 08:13:05 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Laravel 8]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[unique slug]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1350</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you laravel 8 create unique slug example. This article will give you simple example of laravel 8 create unique slug example. you will laravel 8 create unique slug example. In this article, we will implement a laravel 8 create unique slug example. So let’s follow few step to &#8230; <a href="https://codeplaners.com/laravel-8-create-unique-slug-example/" class="more-link">Continue reading<span class="screen-reader-text"> "Laravel 8 Create Unique Slug Example"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-create-unique-slug-example/">Laravel 8 Create Unique Slug Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you laravel 8 create unique slug example. This article will give you simple example of laravel 8 create unique slug example. you will laravel 8 create unique slug example. In this article, we will implement a laravel 8 create unique slug example. </p>
<p>So let’s follow few step to create example of laravel 8 create unique slug example.</p>
<h3 class="step_code">Slug Example</h3>
<p><strong>app/Models/Pages.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;

class Pages extends Model
{

	/**
	 * The attributes that are mass assignable.
	 *
	 * @var array
	 */
	protected $fillable = &#x5B;
		'title', 'contant', 'slug'
	];


    protected static function boot()
    {
        parent::boot();
        static::created(function ($post) {
            $post-&gt;slug = $post-&gt;createSlug($post-&gt;title);
            $post-&gt;save();
        });
    }

    private function createSlug($title){
        if (static::whereSlug($slug = Str::slug($title))-&gt;exists()) {
            $max = static::whereTitle($title)-&gt;latest('id')-&gt;skip(1)-&gt;value('slug');
            if (is_numeric($max&#x5B;-1])) {
                return preg_replace_callback('/(\d+)$/', function ($mathces) {
                    return $mathces&#x5B;1] + 1;
                }, $max);
            }
            return &quot;{$slug}-2&quot;;
        }
        return $slug;
    }
}

</pre>
<p><strong>Controller Code:</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
  
namespace App\Http\Controllers;
  
use App\Models\Pages;
use Illuminate\Http\Request;
  
class PageController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $page = Pages::create(&#x5B;
            &quot;title&quot; =&gt; &quot;Laravel CRUD&quot;
        ]);
        dd($page);
    }
}
</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php; title: ; notranslate">
Laravel-CRUD
Laravel-CRUD-2
Laravel-CRUD-3
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-create-unique-slug-example/">Laravel 8 Create Unique Slug Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/laravel-8-create-unique-slug-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel 8 Multi Auth (Authentication) Example</title>
		<link>https://codeplaners.com/laravel-8-multi-auth-authentication-example/</link>
					<comments>https://codeplaners.com/laravel-8-multi-auth-authentication-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 26 Oct 2021 06:12:27 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Laravel 8]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1345</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you laravel 8 multi auth (authentication) example. This article will give you simple example of how to create multi login in laravel 8. you will laravel 8 multi authentication example. In this article, we will implement a laravel 8 multi auth (authentication) example. So let’s follow few step &#8230; <a href="https://codeplaners.com/laravel-8-multi-auth-authentication-example/" class="more-link">Continue reading<span class="screen-reader-text"> "Laravel 8 Multi Auth (Authentication) Example"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-multi-auth-authentication-example/">Laravel 8 Multi Auth (Authentication) Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you laravel 8 multi auth (authentication) example. This article will give you simple example of how to create multi login in laravel 8. you will laravel 8 multi authentication example. In this article, we will implement a laravel 8 multi auth (authentication) example. </p>
<p>So let’s follow few step to create example of laravel 8 multi auth (authentication) example.</p>
<p><strong>Preview:-</strong><br />
<img decoding="async" style="border: 3px solid #ff5722;" alt="Laravel 8 Multi Auth (Authentication) Example" src="https://codeplaners.com/wp-content/uploads/2021/10/adminscreen.png"></p>
<p><img decoding="async" style="border: 3px solid #ff5722;" alt="Laravel 8 Multi Auth (Authentication) Example" src="https://codeplaners.com/wp-content/uploads/2021/10/user.png"></p>
<h3 class="step_code">Step 1: Laravel 8 Install </h3>
<pre class="brush: php; title: ; notranslate">
composer create-project --prefer-dist laravel/laravel blog
</pre>
<h3 class="step_code">Step 2: Database Configuration </h3>
<p><strong>.env</strong></p>
<pre class="brush: php; title: ; notranslate">
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database name(blog)
DB_USERNAME=database username(root)
DB_PASSWORD=database password(root)
</pre>
<h3 class="step_code">Step 3: Migration and Model</h3>
<p>database/migrations/000_create_users_table.php</p>
<pre class="brush: php; title: ; notranslate">
public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table-&gt;id();
            $table-&gt;string('name');
            $table-&gt;string('email');
            $table-&gt;timestamp('email_verified_at')-&gt;nullable();
            $table-&gt;boolean('is_admin')-&gt;nullable();
            $table-&gt;string('password');
            $table-&gt;rememberToken();
            $table-&gt;timestamps();
        });
    }
</pre>
<p><strong>app/Models/User.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

namespace App\Models;

use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;

class User extends Authenticatable
{
    use HasApiTokens, HasFactory, Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var string&#x5B;]
     */
    protected $fillable = &#x5B;
        'name',
        'email',
        'is_admin',
        'password',
    ];

    /**
     * The attributes that should be hidden for serialization.
     *
     * @var array
     */
    protected $hidden = &#x5B;
        'password',
        'remember_token',
    ];

    /**
     * The attributes that should be cast.
     *
     * @var array
     */
    protected $casts = &#x5B;
        'email_verified_at' =&gt; 'datetime',
    ];
}

</pre>
<p>Now we need to run migration.</p>
<p>so let&#8217;s run bellow command:</p>
<pre class="brush: php; title: ; notranslate">
php artisan migrate
</pre>
<h3 class="step_code">Step 4: Create Auth </h3>
<p><strong>Laravel 8 UI Package</strong></p>
<pre class="brush: php; title: ; notranslate">
composer require laravel/ui 
</pre>
<p><strong>Generate auth</strong></p>
<pre class="brush: php; title: ; notranslate">
php artisan ui bootstrap --auth 
</pre>
<pre class="brush: php; title: ; notranslate">
npm install
</pre>
<pre class="brush: php; title: ; notranslate">
npm run dev
</pre>
<h3 class="step_code">Step 5: Create IsAdmin Middleware </h3>
<p>In this step, we tend to need to form admin middleware that may permits solely admin access users to it routes. therefore let&#8217;s produce admin user with following steps.</p>
<pre class="brush: php; title: ; notranslate">
php artisan make:middleware IsAdmin
</pre>
<p><strong>app/Http/middleware/IsAdmin.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class IsAdmin
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if(auth()-&gt;user()-&gt;is_admin == 1){
            return $next($request);
        }

        return redirect(‘home’)-&gt;with(‘error’,&quot;You don't have admin access.&quot;);
    }
}

</pre>
<p><strong>app/Http/Kernel.php</strong></p>
<pre class="brush: php; title: ; notranslate">
protected $routeMiddleware = &#x5B;
        'auth' =&gt; \App\Http\Middleware\Authenticate::class,
        'auth.basic' =&gt; \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'cache.headers' =&gt; \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' =&gt; \Illuminate\Auth\Middleware\Authorize::class,
        'guest' =&gt; \App\Http\Middleware\RedirectIfAuthenticated::class,
        'password.confirm' =&gt; \Illuminate\Auth\Middleware\RequirePassword::class,
        'signed' =&gt; \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' =&gt; \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' =&gt; \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
        'is_admin' =&gt; \App\Http\Middleware\IsAdmin::class,
    ];
</pre>
<h3 class="step_code">Step 6: Create Route</h3>
<p><strong>routes/web.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

use Illuminate\Support\Facades\Route;


use App\Http\Controllers\HomeController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the &quot;web&quot; middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

 Route::get('/home', &#x5B;App\Http\Controllers\HomeController::class, 'index'])-&gt;name('home');

Route::get('admin/home', &#x5B;HomeController::class, 'adminHome'])-&gt;name('admin.home')-&gt;middleware('is_admin');

</pre>
<h3 class="step_code">Step 7: Add Method on HomeController</h3>
<p><strong>app/Http/Controllers/HomeController.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class HomeController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this-&gt;middleware('auth');
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function index()
    {
        return view('home');
    }

    public function adminHome()
    {
        return view('adminHome');
    }
}

</pre>
<h3 class="step_code">Step 8: Create Blade file </h3>
<p><strong>resources/views/home.blade.php</strong></p>
<pre class="brush: php; title: ; notranslate">
@extends('layouts.app')

@section('content')
&lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row justify-content-center&quot;&gt;
        &lt;div class=&quot;col-md-8&quot;&gt;
            &lt;div class=&quot;card&quot;&gt;
                &lt;div class=&quot;card-header&quot;&gt;{{ __('Dashboard') }}&lt;/div&gt;

                &lt;div class=&quot;card-body&quot;&gt;
                    @if (session('status'))
                        &lt;div class=&quot;alert alert-success&quot; role=&quot;alert&quot;&gt;
                            {{ session('status') }}
                        &lt;/div&gt;
                    @endif
                    You are normal user.
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
@endsection

</pre>
<p><strong>resources/views/adminHome.blade.php</strong></p>
<pre class="brush: php; title: ; notranslate">
@extends('layouts.app')

@section('content')
&lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row justify-content-center&quot;&gt;
        &lt;div class=&quot;col-md-8&quot;&gt;
            &lt;div class=&quot;card&quot;&gt;
                &lt;div class=&quot;card-header&quot;&gt;{{ __('Dashboard') }}&lt;/div&gt;

                &lt;div class=&quot;card-body&quot;&gt;
                    @if (session('status'))
                        &lt;div class=&quot;alert alert-success&quot; role=&quot;alert&quot;&gt;
                            {{ session('status') }}
                        &lt;/div&gt;
                    @endif
                    You are Admin.
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
@endsection

</pre>
<h3 class="step_code">Step 9: Update on LoginController </h3>
<p><strong>app/Http/Controllers/Auth/LoginController.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php



namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = '/home';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this-&gt;middleware('guest')-&gt;except('logout');
    }

    public function login(Request $request)
    {
        $input = $request-&gt;all();

        $this-&gt;validate($request, &#x5B;
            'email' =&gt; 'required|email',
            'password' =&gt; 'required',
        ]);

        if(auth()-&gt;attempt(array('email' =&gt; $input&#x5B;'email'], 'password' =&gt; $input&#x5B;'password'])))
        {
            if (auth()-&gt;user()-&gt;is_admin == 1) {
                return redirect()-&gt;route('admin.home');
            }else{
                return redirect()-&gt;route('home');
            }
        }else{
            return redirect()-&gt;route('login')
                -&gt;with('error','Email-Address And Password Are Wrong.');
        }

    }
}

</pre>
<h3 class="step_code">Step 10: Create Seeder </h3>
<pre class="brush: php; title: ; notranslate">
php artisan make:seeder CreateUsersSeeder
</pre>
<p><strong>database/seeds/CreateUsersSeeder.php</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
  
use Illuminate\Database\Seeder;
use App\Models\User;
   
class CreateUsersSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $user = &#x5B;
            &#x5B;
               'name'=&gt;'Admin',
               'email'=&gt;'admin@codeplaners.com',
                'is_admin'=&gt;'1',
               'password'=&gt; bcrypt('12345678'),
            ],
            &#x5B;
               'name'=&gt;'User',
               'email'=&gt;'user@codeplaners.com',
                'is_admin'=&gt;'0',
               'password'=&gt; bcrypt('12345678'),
            ],
        ];
  
        foreach ($user as $key =&gt; $value) {
            User::create($value);
        }
    }
}
</pre>
<p><strong>Now let&#8217;s run seeder:</strong></p>
<pre class="brush: php; title: ; notranslate">
php artisan db:seed --class=CreateUsersSeeder
</pre>
<p>Ok, now we are ready to run.</p>
<pre class="brush: php; title: ; notranslate">
php artisan serve
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-multi-auth-authentication-example/">Laravel 8 Multi Auth (Authentication) Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/laravel-8-multi-auth-authentication-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel 8 Generate Dynamic URL</title>
		<link>https://codeplaners.com/laravel-8-generate-dynamic-url/</link>
					<comments>https://codeplaners.com/laravel-8-generate-dynamic-url/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 08 Oct 2021 00:26:33 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Laravel 8]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1329</guid>

					<description><![CDATA[<p>Hello, Today, i we will show you laravel 8 generate dynamic URL. This article will give you simple example of laravel 8 generate dynamic URL. you will laravel 8 generate dynamic URL. In this article, we will implement a laravel 8 generate dynamic URL. So let’s follow few step to create example of laravel 8 &#8230; <a href="https://codeplaners.com/laravel-8-generate-dynamic-url/" class="more-link">Continue reading<span class="screen-reader-text"> "Laravel 8 Generate Dynamic URL"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-generate-dynamic-url/">Laravel 8 Generate Dynamic URL</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello,</p>
<p>Today, i we will show you laravel 8 generate dynamic URL. This article will give you simple example of laravel 8 generate dynamic URL. you will laravel 8 generate dynamic URL. In this article, we will implement a laravel 8 generate dynamic URL. </p>
<p>So let’s follow few step to create example of laravel 8 generate dynamic URL.</p>
<h3 class="step_code">Example</h3>
<pre class="brush: php; title: ; notranslate">
&lt;?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Product;

class TestController extends Controller
{
    /**
     * Write Your Code..
     *
     * @return string
    */
    public function index()
    {
        $product = Product::find(1);
        dd(url(&quot;/product/{$product-&gt;id}&quot;));
    }
}
</pre>
<p><strong>Output:</strong></p>
<pre class="brush: xml; title: ; notranslate">
&quot;http://localhost:8000/product/1&quot;
</pre>
<h3 class="step_code">Get Current URL:</h3>
<p>If no path is provided to the address helper, a Illuminate\Routing\UrlGenerator instance is came back, enabling you to access info concerning this URL:</p>
<pre class="brush: php; title: ; notranslate">
// Get the current URL without the query string...
echo url()-&gt;current();

// Get the current URL including the query string...
echo url()-&gt;full();

// Get the full URL for the previous request...
echo url()-&gt;previous();
</pre>
<p>So,you can generate of those ways might also be accessed via the URLfacade:</p>
<pre class="brush: php; title: ; notranslate">
use Illuminate\Support\Facades\URL;

echo URL::current();
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/laravel-8-generate-dynamic-url/">Laravel 8 Generate Dynamic URL</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/laravel-8-generate-dynamic-url/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Password Requirements jQuery Plugin Example</title>
		<link>https://codeplaners.com/password-requirements-jquery-plugin-example/</link>
					<comments>https://codeplaners.com/password-requirements-jquery-plugin-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 23:29:50 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1291</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you password requirements jQuery plugin example. This article will give you simple example of password requirements jQuery plugin example. you will password requirements jQuery plugin example. So let’s follow few step to create example of password requirements jQuery plugin example. Example: &#60;!DOCTYPE html&#62; &#60;html&#62; &#60;head&#62; &#60;meta charset=&#34;utf-8&#34;&#62; &#60;meta &#8230; <a href="https://codeplaners.com/password-requirements-jquery-plugin-example/" class="more-link">Continue reading<span class="screen-reader-text"> "Password Requirements jQuery Plugin Example"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/password-requirements-jquery-plugin-example/">Password Requirements jQuery Plugin Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you password requirements jQuery plugin example. This article will give you simple example of password requirements jQuery plugin example. you will password requirements jQuery plugin example. So let’s follow few step to create example of password requirements jQuery plugin example.</p>
<p><img decoding="async" style="border: 3px solid #ff5722;" alt="Password Requirements jQuery Plugin Example" class="lazyloaded" src="https://codeplaners.com/wp-content/uploads/2021/08/Password-Requirements.png"></p>
<h3 class="step_code">Example:</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
	&lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;
	&lt;title&gt;Password Requirements jQuery Plugin Example&lt;/title&gt;
	&lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css&quot;&gt;
	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://www.jqueryscript.net/demo/validate-password-requirements/css/jquery.passwordRequirements.css&quot;&gt;
&lt;/head&gt;
&lt;style type=&quot;text/css&quot;&gt;
	.main-section{
		margin-top:150px;
	}
&lt;/style&gt;
&lt;body&gt;
	&lt;div class=&quot;container&quot;&gt;
		&lt;div class=&quot;col-md-6 col-sm-offset-3 text-center main-section&quot;&gt;
			&lt;h3&gt;Password Requirements jQuery Plugin Example&lt;/h3&gt;
			&lt;br&gt;
			&lt;input type=&quot;password&quot; class=&quot;pr-password form-control&quot; placeholder=&quot;Enter Password&quot;&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;script src=&quot;https://code.jquery.com/jquery-1.12.4.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://www.jqueryscript.net/demo/validate-password-requirements/js/jquery.passwordRequirements.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
    $(document).ready(function (){
        $(&quot;.pr-password&quot;).passwordRequirements({});
    });
&lt;/script&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/password-requirements-jquery-plugin-example/">Password Requirements jQuery Plugin Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/password-requirements-jquery-plugin-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to allow only numbers in InputText In Jquery</title>
		<link>https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/</link>
					<comments>https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 23:20:05 +0000</pubDate>
				<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1288</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you how to allow only numbers in InputText in jquery. This article will give you simple example of how to allow only numbers in InputText in jquery. you will how to allow only numbers in InputText in jquery. So let’s follow few step to create example of how &#8230; <a href="https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/" class="more-link">Continue reading<span class="screen-reader-text"> "How to allow only numbers in InputText In Jquery"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/">How to allow only numbers in InputText In Jquery</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you how to allow only numbers in InputText in jquery. This article will give you simple example of how to allow only numbers in InputText in jquery. you will how to allow only numbers in InputText in jquery. So let’s follow few step to create example of how to allow only numbers in InputText in jquery.</p>
<h3 class="step_code">Example:</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;How to allow only numbers in InputText In Jquery&lt;/title&gt;
  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
   
&lt;div class=&quot;container&quot;&gt;
  &lt;h1&gt;How to allow only numbers in InputText In Jquery&lt;/h1&gt;
         
      &lt;label&gt;Enter Value:&lt;/label&gt;
      &lt;input type=&quot;text&quot; name=&quot;myValue&quot; class=&quot;allow-numeric&quot; &gt;
      &lt;span class=&quot;error&quot; style=&quot;color: red; display: none&quot;&gt;* Input digits (0 - 9)&lt;/span&gt;
    
&lt;/div&gt;
    
&lt;script type=&quot;text/javascript&quot;&gt;
    
    $(document).ready(function() {
      $(&quot;.allow-numeric&quot;).bind(&quot;keypress&quot;, function (e) {
          var keyCode = e.which ? e.which : e.keyCode
               
          if (!(keyCode &gt;= 48 &amp;&amp; keyCode &lt;= 57)) {
            $(&quot;.error&quot;).css(&quot;display&quot;, &quot;inline&quot;);
            return false;
          }else{
            $(&quot;.error&quot;).css(&quot;display&quot;, &quot;none&quot;);
          }
      });
    });
     
&lt;/script&gt;
      
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/">How to allow only numbers in InputText In Jquery</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-allow-only-numbers-in-inputtext-in-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fullcalendar Js Change Event color Example</title>
		<link>https://codeplaners.com/fullcalendar-js-change-event-color-example/</link>
					<comments>https://codeplaners.com/fullcalendar-js-change-event-color-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 23:06:48 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Fullcalendar]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1284</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you fullcalendar js change event color example. This article will give you simple example of fullcalendar js change event color example. you will fullcalendar js change event color example. So let’s follow few step to create example of fullcalendar js change event color example. Example: &#60;!DOCTYPE html&#62; &#60;html&#62; &#8230; <a href="https://codeplaners.com/fullcalendar-js-change-event-color-example/" class="more-link">Continue reading<span class="screen-reader-text"> "Fullcalendar Js Change Event color Example"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/fullcalendar-js-change-event-color-example/">Fullcalendar Js Change Event color Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you fullcalendar js change event color example. This article will give you simple example of fullcalendar js change event color example. you will fullcalendar js change event color example. So let’s follow few step to create example of fullcalendar js change event color example.</p>
<p><img decoding="async" style="border: 3px solid #ff5722;" alt="Fullcalendar Js Change Event color Example" class="lazyloaded" src="https://codeplaners.com/wp-content/uploads/2021/08/fullcalendar.png"></p>
<h3 class="step_code">Example:</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt;
    &lt;title&gt;Fullcalendar Js Change Event color Example&lt;/title&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.css&quot; /&gt;
&lt;/head&gt;
&lt;style type=&quot;text/css&quot;&gt;
    #calendar {
        width:80%;
        margin: 20px auto;
    }
&lt;/style&gt;
&lt;body&gt;
    &lt;div id=&quot;calendar&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/momentjs/2.14.1/moment-with-locales.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://code.jquery.com/jquery-2.1.4.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    var defaultEvents = &#x5B;
    {
        // Just an event
        title: 'Test Event',
        start: '2021-08-22',
        className: 'scheduler_basic_event',
        color:'#ea2062'
    },
];

// Any value represanting monthly repeat flag
var REPEAT_MONTHLY = 1;
// Any value represanting yearly repeat flag
var REPEAT_YEARLY = 2;
    
$('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    },
        editable: true,
        // defaultDate: '2017-02-16',
        eventSources: &#x5B;defaultEvents],
        dayRender: function( date, cell ) {
        // Get all events
        var events = $('#calendar').fullCalendar('clientEvents').length ? $('#calendar').fullCalendar('clientEvents') : defaultEvents;
    }
});
&lt;/script&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/fullcalendar-js-change-event-color-example/">Fullcalendar Js Change Event color Example</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/fullcalendar-js-change-event-color-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Rotate Image Animation In Jquery</title>
		<link>https://codeplaners.com/rotate-image-animation-in-jquery/</link>
					<comments>https://codeplaners.com/rotate-image-animation-in-jquery/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Aug 2021 22:34:38 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1280</guid>

					<description><![CDATA[<p>Hi Dev, Today, i we will show you rotate image animation in jquery. This article will give you simple example of rotate image animation in jquery. you will rotate image animation in jquery. So let’s follow few step to create example of rotate image animation in jquery. Example: &#60;!DOCTYPE html&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;Rotate Image Animation &#8230; <a href="https://codeplaners.com/rotate-image-animation-in-jquery/" class="more-link">Continue reading<span class="screen-reader-text"> "Rotate Image Animation In Jquery"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/rotate-image-animation-in-jquery/">Rotate Image Animation In Jquery</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Dev,</p>
<p>Today, i we will show you rotate image animation in jquery. This article will give you simple example of rotate image animation in jquery. you will rotate image animation in jquery. So let’s follow few step to create example of rotate image animation in jquery.</p>
<p><img decoding="async" style="border: 3px solid #ff5722;" alt="Rotate Image Animation In Jquery" class="lazyloaded" src="https://codeplaners.com/wp-content/uploads/2021/08/rotateimage.png"></p>
<h3 class="step_code">Example:</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Rotate Image Animation In Jquery&lt;/title&gt;
    &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css&quot;&gt;
    &lt;style&gt;
        .rotateimg{
            font-size: 30px;
            font-weight: bold;
            color: #f85d09;
        }
      
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div class=&quot;rotateimg mx-auto&quot;&gt;
    &lt;div class=&quot;container text-center&quot;&gt;
        &lt;div class=&quot;row&quot;&gt;
            &lt;div class=&quot;col-md-12 mb-3&quot;&gt;
                &lt;p&gt;Rotate Image Animation In Jquery&lt;/p&gt;
                &lt;img src=&quot;https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-192x192.png&quot; width=&quot;100&quot; height=&quot;100&quot;&gt;
            &lt;/div&gt;
            &lt;button class=&quot;btn btn-primary mx-auto mt-4&quot;&gt;Rotate image&lt;/button&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;!-- script --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    var tmpAnimation = 0;
    $(&quot;button&quot;).click(function(){
        var element = $(&quot;img&quot;);
        tmpAnimation = tmpAnimation + 90;
        $({degrees: tmpAnimation - 90}).animate({degrees: tmpAnimation},{
                duration: 2000,
                step: function(now) {
                element.css({
                    transform: 'rotate(' + now + 'deg)'
                });
            }
        });
    });
&lt;/script&gt;
&lt;!-- script end --&gt;    

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/rotate-image-animation-in-jquery/">Rotate Image Animation In Jquery</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/rotate-image-animation-in-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Custom Scrollbar In CSS</title>
		<link>https://codeplaners.com/how-to-custom-scrollbar-in-css/</link>
					<comments>https://codeplaners.com/how-to-custom-scrollbar-in-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 05:41:48 +0000</pubDate>
				<category><![CDATA[HTML&CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[custom scrollbar]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Source Code]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=1247</guid>

					<description><![CDATA[<p>Hi, Today, i we will show you how to custom scrollbar in CSS. This article will give you simple example of how to custom scrollbar in CSS. you will learn how to custom scrollbar in CSS. So let’s follow few step to create example of how to custom scrollbar in CSS. Example: body::-webkit-scrollbar { width: &#8230; <a href="https://codeplaners.com/how-to-custom-scrollbar-in-css/" class="more-link">Continue reading<span class="screen-reader-text"> "How To Custom Scrollbar In CSS"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-custom-scrollbar-in-css/">How To Custom Scrollbar In CSS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi,</p>
<p>Today, i we will show you how to custom scrollbar in CSS. This article will give you simple example of how to custom scrollbar in CSS. you will learn how to custom scrollbar in CSS. So let’s follow few step to create example of how to custom scrollbar in CSS.</p>
<p><img decoding="async" style="border: 3px solid #ff5722;" alt="How To Custom Scrollbar In CSS" class="lazyloaded" src="https://codeplaners.com/wp-content/uploads/2021/08/scrollbar.png"></p>
<h3 class="step_code">Example:</h3>
<pre class="brush: css; title: ; notranslate">
body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: orange;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: blue;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid orange;  /* creates padding around scroll thumb */
}
</pre>
<p>I hope it will assist you…</p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-custom-scrollbar-in-css/">How To Custom Scrollbar In CSS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-custom-scrollbar-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
