<?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>Amardeep Dubey, Author at scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/author/amardeep/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/author/amardeep/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Tue, 12 Oct 2021 12:29:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Remove Duplicate Records from MySQL Server</title>
		<link>https://www.scmgalaxy.com/tutorials/remove-duplicate-records-from-mysql-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/remove-duplicate-records-from-mysql-server/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Tue, 12 Oct 2021 12:29:31 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9467</guid>

					<description><![CDATA[<p>The post <a href="https://www.scmgalaxy.com/tutorials/remove-duplicate-records-from-mysql-server/">Remove Duplicate Records from MySQL Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
DELETE S1 FROM table_name AS S1  
INNER JOIN table_name AS S2   
WHERE S1.id &gt; S2.id AND S1.email = S2.email;  
</pre></div><p>The post <a href="https://www.scmgalaxy.com/tutorials/remove-duplicate-records-from-mysql-server/">Remove Duplicate Records from MySQL Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/remove-duplicate-records-from-mysql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Secure Your Apache Server</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Fri, 10 Sep 2021 06:35:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8917</guid>

					<description><![CDATA[<p>1.Enable automatic updates Given that the LAMP stack is based on Linux and that the entire open-source community is working [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/">How to Secure Your Apache Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">1.Enable automatic updates</h2>



<p class="wp-block-paragraph">Given that the LAMP stack is based on Linux and that the entire open-source community is working to enhance it, it is also deemed secure. All security updates and patches are accessible as an automatic unattended install on an Ubuntu VPS as soon as they are released in the Ubuntu repos, so make sure you configure your system to automatically install them if you are concerned about security.If you don&#8217;t enable this option on your server and don&#8217;t manually install the latest upgrades and patches, you&#8217;re placing your server at risk of being hacked.</p>



<p class="wp-block-paragraph">Install the unattended-upgrades package to enable automatic unattended upgrades.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install unattended-upgrades
</pre></div>


<p class="wp-block-paragraph">Edit the <strong>/etc/apt/apt.conf.d/50unattended-upgrades</strong> file to specify which package categories should be upgraded automatically.</p>



<h2 class="wp-block-heading">2. Configure firewall</h2>



<p class="wp-block-paragraph">Another very important aspect of overall security is having a properly set firewall. ufw is Ubuntu&#8217;s default firewall configuration tool, and it&#8217;s turned off by default. You can use the following commands to enable ufw:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo ufw enable
</pre></div>


<p class="wp-block-paragraph">Allow essential services like OpenSSH and Apache to be accessed:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo ufw allow 22
sudo ufw allow 80
sudo ufw allow 443
</pre></div>


<p class="wp-block-paragraph">It&#8217;s simple to grant access to other services. Simply change the port number in the samples above to the port number of the service you wish to enable access to, and you&#8217;re done. Even if the machine is rebooted, the firewall rules will remain active.</p>



<h2 class="wp-block-heading">3. Disable unused services</h2>



<p class="wp-block-paragraph">If you have active services which you are not using, you can simply disable them. For example, if you have service like Dovecot up and running on your server and you are not using it at all, stop and disable the service using the following commands:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl stop dovecot.service
sudo systemctl disable dovecot.service
</pre></div>


<h2 class="wp-block-heading">4. Install Fail2ban</h2>



<p class="wp-block-paragraph">Fail2ban is a service that scans log files for excessive login failures and blocks the IP address that is displaying malicious behaviour. If you don&#8217;t use two-factor or public/private authentication techniques on services like OpenSSH, this service comes in handy. Run the following command to install Fail2ban:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install fail2ban
</pre></div>


<p class="wp-block-paragraph">Make a copy of the default configuration file so you can make modifications without worrying about system updates overwriting them:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

</pre></div>


<p class="wp-block-paragraph">Edit the <strong><em>jail.local</em> </strong>file:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo nano /etc/fail2ban/jail.local
</pre></div>


<p class="wp-block-paragraph">The <strong>[sshd]</strong> block should look something like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&#x5B;sshd]

enabled  = true
port     = ssh
filter   = sshd
logpath  = /var/log/auth.log
maxretry = 5
bantime = 600
</pre></div>


<p class="wp-block-paragraph">To make the modifications take effect, save the file and restart <strong>Fail2ban:</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart fail2ban.service
</pre></div>


<p class="wp-block-paragraph">Enable <strong>Fail2ban</strong> on system boot:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl enable fail2ban.service
</pre></div>


<h2 class="wp-block-heading">5. Hide Apache sensitive information</h2>



<p class="wp-block-paragraph">The default Apache setup exposes a great deal of sensitive data that can be used against the service. It&#8217;s critical to keep this information secret, therefore make a configuration file for your new settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo nano /etc/apache2/conf-available/custom.conf
</pre></div>


<p class="wp-block-paragraph">Copy and paste the following text:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
ServerTokens Prod
ServerSignature Off
TraceEnable Off
Options all -Indexes
Header unset ETag
Header always unset X-Powered-By
FileETag None
</pre></div>


<p class="wp-block-paragraph">If it isn&#8217;t already enabled, enable the Apache headers module:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo a2enmod headers
</pre></div>


<p class="wp-block-paragraph">Enable the following settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo a2enconf custom.conf
</pre></div>


<p class="wp-block-paragraph">To make the modifications take effect, restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<h2 class="wp-block-heading">6. Install and enable mod_security</h2>



<p class="wp-block-paragraph">Mod security is a web application firewall (WAF) that may be added to Apache as a separate module. It can be used to protect a web server from a variety of threats, including SQL injections, session hijacking, cross-site scripting, and malicious user agents. Run the instructions following to install and enable mod security:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install libapache2-modsecurity2
sudo a2enmod security2
</pre></div>


<p class="wp-block-paragraph">You should setup the module and enable the OWASP ModSecurity Core Rule Set after it has been installed (CRS).</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
</pre></div>


<p class="wp-block-paragraph">Then, open the <strong>/etc/modsecurity/modsecurity.conf</strong> file and edit/add the following settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
SecRuleEngine On
SecResponseBodyAccess Off
SecRequestBodyLimit 8388608
SecRequestBodyNoFilesLimit 131072
SecRequestBodyInMemoryLimit 262144
</pre></div>


<p class="wp-block-paragraph">Save and close the file. Remove the current CRS and download the OWASP CRS by using the following commands:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo rm -rf /usr/share/modsecurity-crs
sudo git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git /usr/share/modsecurity-crs
cd /usr/share/modsecurity-crs
sudo mv crs-setup.conf.example crs-setup.conf
</pre></div>


<p class="wp-block-paragraph">Edit the<strong> security2.conf</strong> file in <strong>/etc/apache2/mods-enabled/security2.conf.</strong> It should resemble the following:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;IfModule security2_module&gt;
	SecDataDir /var/cache/modsecurity
	IncludeOptional /etc/modsecurity/*.conf
	IncludeOptional &quot;/usr/share/modsecurity-crs/*.conf&quot;
	IncludeOptional &quot;/usr/share/modsecurity-crs/rules/*.conf
&amp;lt;/IfModule&gt;
</pre></div>


<p class="wp-block-paragraph">Finally, to make the modifications take effect, restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<h2 class="wp-block-heading">7. Install and enable mod_evasive</h2>



<p class="wp-block-paragraph">Mod evasive is an Apache module that can prevent DoS (Denial of Service), DDoS (Distributed Denial of Service), and brute-force assaults on the web server. Run the following command to install mod evasive on your server:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install libapache2-mod-evasive
</pre></div>


<p class="wp-block-paragraph">Open the default configuration file <em><strong>/etc/apache2/mods-enabled/evasive.conf</strong></em> and edit the settings to look like those below:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;IfModule mod_evasive20.c&gt;
	DOSPageCount        5
	DOSSiteCount        50
	DOSPageInterval     1
	DOSSiteInterval     1
	DOSBlockingPeriod   600
	DOSLogDir           &quot;/var/log/mod_evasive&quot;
&amp;lt;/IfModule&gt;
</pre></div>


<p class="wp-block-paragraph">The file should be saved and closed. Make a folder for the log files:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo mkdir /var/log/mod_evasive
sudo chown -R www-data: /var/log/mod_evasive
</pre></div>


<p class="wp-block-paragraph">Restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/">How to Secure Your Apache Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux security</title>
		<link>https://www.scmgalaxy.com/tutorials/linux-security/</link>
					<comments>https://www.scmgalaxy.com/tutorials/linux-security/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Thu, 09 Sep 2021 11:47:42 +0000</pubDate>
				<category><![CDATA[Hacking & Security]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8883</guid>

					<description><![CDATA[<p>User accounts Since the beginning of the course, all the examples presented were run using a user account. A user [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-security/">Linux security</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">User accounts</h2>



<ul class="wp-block-list"><li>Since the beginning of the course, all the examples presented were run</li><li>using a user account.</li><li>A user account consists of a username and a password. This identifies the</li><li>user on the system and, hence, maintains security and accountability.</li><li>Linux also creates groupsfor each user account. A group may contain one or</li><li>more users, all of them sharing the same permissions.</li><li>The system administrator account, sometimes called the superuser, is the</li><li>root. This is the most important account on the system. It must be owned by</li><li>as a few users as possible because of the vast powers it provides.</li></ul>



<h2 class="wp-block-heading">The /etc/passwd file</h2>



<ul class="wp-block-list"><li>This is one of the most important and highly protected system file. It contains various information about the user accounts on the system.</li><li>Each user account information is contained on a single line. A colon (:) is used to separate different fields from each other. Let&#8217;s have a quick look at each one in turn:<ul><li>Username: the string that the user uses for identification. It is a friendly name that is chosen by the system administrator (root) to identify the user. By convention, it is all lowercase characters, it may contain numbers (but cannot start with one), special characters dash (-), udnerscore (_), and – in some distros – the dollar sign ($) at the end.</li><li>Password: a secret group of characters that should be known only to it&#8217;s owner. The /etc/passwd file places an x in this field, indicating that the encrypted password is stored in /etc/shadow file (more on that later).</li></ul></li></ul>



<h2 class="wp-block-heading">UID and GID</h2>



<ul class="wp-block-list"><li><strong>UID: </strong>it is short for user id. This is a unique number that identifies the user account on the system. As a matter of fact, Linux security system does not care about the username of the user account; it works by examining the its UID to provide the appropriate permissions and access rights. Since there are user accounts that are reserved for system accounts, those are assigned UID numbers from 0 (which is the root account) up till 500 (they reach 1000 in some systems). The higher numbers are assigned to normal (non-system) user accounts.</li><li><strong>GID: </strong>short for group id, it is the unique number that identifies a group account. A group contain one or more users that share similar access rights. The main purpose of the existence of groups is to provide certain users with access to specific files and directories while preventing others. Think of a directory on which a team of users are working. Putting those users in a group ensures that all of them will have the same permissions.</li></ul>



<h2 class="wp-block-heading">The comment and the home directory</h2>



<ul class="wp-block-list"><li>The comment field normally includes the user&#8217;s real name. For example, when a username is jdoe, the real name in the comment could be John Doe. It may also contain other personal information like the phone number, address and others.</li><li>The home directory field contains the path to the user&#8217;s home directory. Only the user is the owner of his/her home directory. At the command line, a home directory can be referred to as tilde ~. For example, cd ~ will make you navigate to your home directory.</li></ul>



<h2 class="wp-block-heading">The default shell</h2>



<ul class="wp-block-list"><li>We have mentioned before that bash is not the only shell available for Linux. There are other shells that are available for Linux like ksh, zsh, tsh and so on. The shell field contains the path to the binary file of the specific shell. For example, /bin/bash.</li><li>The default shell is a matter of choice. A user can change hi/her default shell.</li><li>Since all users (including system accounts) must have a default shell. But system accounts – by nature – do not (and should not) have login access to the system. Accordingly, the default shell of such accounts is set to /sbin/nologin. Setting the default shell to /bin/nologin prints a friendly message explaining that logins with this account are not available. Setting it to /bin/false denies login without displaying that message.</li></ul>



<h2 class="wp-block-heading">The /etc/shadow file</h2>



<ul class="wp-block-list"><li>You might think that a file named /etc/passwd should be the one containing the hashed passwords of the users on the system.</li><li>Actually this was the case long ago. But for security reasons, and since /etc/passwd file must be readiable by all users on the system to be able to authenticate them, the hashed password was removed from that file and placed in a more secured file: /etc/shadow .This file has higher level of protection and access restrictions.</li><li>It contains the following information:<ul><li><strong>The salt:</strong> this is a random input that helps make the password more protected</li><li><strong>The hash:</strong> the result of an irreversible mathematical operation. It is performed on the password and the salt combined. To authenticate a user, a hash is computed for the entered password, with the salt input added to it. If both hashes are identical the user is authenticated.</li><li><strong>Password history:</strong> these are some variables that help increase user security. For example, the password must be changed after a specific number of days (configured by the system administrator).</li></ul></li></ul>



<h2 class="wp-block-heading">/etc/shadow fields</h2>



<ul class="wp-block-list"><li><strong>The username: </strong>this is the username of the user and not the UID. It is what links /etc/passwd with /etc/shadow</li><li><strong>The password:</strong> the salted hash of the user password. If this field contains as asterisk or an exclamation mark, this means that the account is locked.</li><li><strong>Last password change:</strong> this is the date of the last password change. The UNIX timestamp is used here. UNIX timestamp is a date/time measurement method. It is the amount of time that passed since POSIX time (1/1/1970 at midnight). This field contains the number of days that passed since POSIX time.</li><li>The number of days till a password can be changed. This is another security measure that prevents users from changing their passwords (as per policy) and then quickly setting it back to the original one.</li><li>The number of days before a user must change the current password. This is sometimes referred to as password age.</li><li>The number of warning days before a password expires. During those days, a warning message will be displayed to the users whose account will expire soon.</li><li><strong>Days between expiration and deactivation:</strong> if configured, the account can be deactivated after it’s expired. The difference is that when the account expires, the password is not erased and the account can be activated again by the system administrator or by the user logging in and changing the password. But if the account is deactivated, the password is deleted and only the system administrator can reactivate the account.</li><li><strong>Expiration date:</strong> the date when the account expires, expressed as the number of days since POSIX time.</li><li><strong>Special flag:</strong> this field is currently not used. It is reserved for future use.</li><li>Notice that some day fields may contain either -1 or 9999, which effectively means that the relevant feature is disabled</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-security/">Linux security</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/linux-security/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete Referance of Blade in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-referance-of-blade-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-referance-of-blade-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 06:04:15 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8307</guid>

					<description><![CDATA[<p>What is Blade? Blade is the simple, yet powerful templating engine that is included with Laravel. Unlike some PHP templating [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-blade-in-laravel/">Complete Referance of Blade in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is Blade?</h2>



<p class="wp-block-paragraph">Blade is the simple, yet powerful templating engine that is included with Laravel. Unlike some PHP templating engines, Blade does not restrict you from using plain PHP code in your templates.</p>



<p class="wp-block-paragraph">Blade template files use the <strong>.blade.php</strong> file extension and are typically stored in the resources/views directory</p>



<h2 class="wp-block-heading">Blade Template</h2>



<p class="wp-block-paragraph"><strong>Displaying Data &#8211;</strong> You may display data that is passed to your Blade views by wrapping the variable in curly braces.</p>



<p class="wp-block-paragraph">Blade&#8217;s <strong>{{ }}</strong> echo statements are automatically sent through PHP&#8217;s htmlspecialchars function to prevent XSS attacks.</p>



<p class="wp-block-paragraph"><strong>Example:-</strong> {{$name}}</p>



<p class="wp-block-paragraph"><strong>Calling Function – </strong>You may also echo the results of any PHP function by wrapping the function name in curly braces.</p>



<p class="wp-block-paragraph"><strong>Example:- </strong>{{ time( ) }}</p>



<p class="wp-block-paragraph"><strong>Note &#8211;</strong> You can put any PHP code you wish inside of a Blade echo statement.</p>



<h2 class="wp-block-heading">Comment</h2>



<p class="wp-block-paragraph">Blade also allows you to define comments in your views. However, unlike HTML comments, Blade comments are not included in the HTML returned by your application.</p>



<p class="wp-block-paragraph">{<strong>{&#8211; This comment will not be present in the rendered HTML &#8211;}}</strong></p>



<h2 class="wp-block-heading"><strong>Conditional Directives</strong></h2>



<p class="wp-block-paragraph"><strong>If Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/1dc49d98fb96650060717ef9d300c07c.js"></script>



<p class="wp-block-paragraph"><strong>If.. Else.. Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/bc2ac61bedf000d683da066c370ae2d1.js"></script>



<p class="wp-block-paragraph"><strong>If… elseif… else… Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/51f31ee34fefdef3c2aeaa5a49d55095.js"></script>



<p class="wp-block-paragraph"><strong>Empty Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/09d918ae478796a4b210faaadd4bad5b.js"></script>



<h2 class="wp-block-heading">Authentication Directives</h2>



<p class="wp-block-paragraph"><strong>Auth Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/cdab379e8c5d2a42c38638c9551b9313.js"></script>



<p class="wp-block-paragraph"><strong>Guest Directive</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/32822b659731374f1a816c434ab365ef.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-blade-in-laravel/">Complete Referance of Blade in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-referance-of-blade-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete Referance of Controller in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-referance-of-controller-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-referance-of-controller-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Wed, 25 Aug 2021 06:51:57 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8091</guid>

					<description><![CDATA[<p>Controllers Controllers can group related request handling logic into a single class. Instead of defining all of your request handling [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-controller-in-laravel/">Complete Referance of Controller in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Controllers</h2>



<p class="wp-block-paragraph">Controllers can group related request handling logic into a single class. Instead of defining all of your request handling logic as Closures in route files, you may wish to organize this behavior using Controller classes.</p>



<p class="wp-block-paragraph">Controllers are stored in the <strong>app/Http/Controllers</strong> directory.<br>Controller extends the base Controller class included with Laravel.</p>



<h2 class="wp-block-heading">Defining Controller Class</h2>



<p class="wp-block-paragraph"><strong>Run Command:-</strong> php artisan make:controller</p>



<p class="wp-block-paragraph"><strong>Example:-</strong> php artisan make:controller AboutController</p>



<p class="wp-block-paragraph"><strong>Path:-</strong> app/Http/Controllers/AboutController.php</p>



<script src="https://gist.github.com/amardeep-devopsschool/15a376629c13f858bd8359c5c9e94b39.js"></script>



<h2 class="wp-block-heading">Creating Route for Controller Class</h2>



<p class="wp-block-paragraph"><strong>Path of Controller :-</strong> app/Http/Controllers/AboutController.php</p>



<script src="https://gist.github.com/amardeep-devopsschool/44d632b3d371e70440f35f40f6ac314e.js"></script>



<p class="wp-block-paragraph"><strong>Path of Route:-</strong> routes/web.php</p>



<script src="https://gist.github.com/amardeep-devopsschool/0d3d8c15331db796bb1730cbc0d158c6.js"></script>



<p class="wp-block-paragraph"><strong>Syntax:-</strong> Route::get(‘uri’, [ControllerName::class, ‘method_name&#8217;]);</p>



<h2 class="wp-block-heading">Passing Data from Controller to View</h2>



<p class="wp-block-paragraph"> <strong>Path of Controller :-</strong> app/Http/Controllers/AboutController.php </p>



<script src="https://gist.github.com/amardeep-devopsschool/3d0f03f1327d24ebb078cb919b51f10e.js"></script>



<p class="wp-block-paragraph"> <strong>Path of Route:-</strong> routes/web.php </p>



<script src="https://gist.github.com/amardeep-devopsschool/0d3d8c15331db796bb1730cbc0d158c6.js"></script>



<p class="wp-block-paragraph"><strong>Path of View:-</strong> resources/views/aboutme.blade.php</p>



<script src="https://gist.github.com/amardeep-devopsschool/f38fee746c7b3c235802d8956ea1f404.js"></script>



<h2 class="wp-block-heading">Multiple Methods inside Controller</h2>



<p class="wp-block-paragraph">  <strong>Path of Controller :-</strong> app/Http/ControllersAboutController.php  </p>



<script src="https://gist.github.com/amardeep-devopsschool/f98e57f25844f4bcf42b5a85ec1b3493.js"></script>



<p class="wp-block-paragraph">  <strong>Path of Route:-</strong> routes/web.php  </p>



<script src="https://gist.github.com/amardeep-devopsschool/8045c52d46df0bd8a058fffde23e9462.js"></script>



<p class="wp-block-paragraph"> <strong>Path of aboutme blade file:-</strong> resources/views/aboutme.blade.php </p>



<script src="https://gist.github.com/amardeep-devopsschool/775978b9200e5f83ed8bbd8ac0e2043d.js"></script>



<p class="wp-block-paragraph">  <strong>Path of aboutyou blade file:-</strong> resources/views/aboutyou.blade.php  </p>



<script src="https://gist.github.com/amardeep-devopsschool/5a16ef08d76f565583a296418274cca5.js"></script>



<h2 class="wp-block-heading">Single Action Controller</h2>



<p class="wp-block-paragraph">If you would like to define a controller that only handles a single action, you may place a single __invoke method on the controller.</p>



<p class="wp-block-paragraph"> <strong>Run Command:-</strong> php artisan make:controller ShowAbout &#8211;invokable</p>



<p class="wp-block-paragraph">   <strong>Path of Controller :-</strong> app/Http/Controllers/ShowAboutController.php   </p>



<script src="https://gist.github.com/amardeep-devopsschool/674ebf9cd36c07883fcf6b0790667f56.js"></script>



<p class="wp-block-paragraph">   <strong>Path of Route:-</strong> routes/web.php   </p>



<script src="https://gist.github.com/amardeep-devopsschool/bcd8b912c4906124db62ee07907b3281.js"></script>



<p class="wp-block-paragraph">  <strong>Path of aboutme blade file:-</strong> resources/views/aboutme.blade.php  </p>



<script src="https://gist.github.com/amardeep-devopsschool/775978b9200e5f83ed8bbd8ac0e2043d.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-controller-in-laravel/">Complete Referance of Controller in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-referance-of-controller-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete Reference and Tutorial of HTML5</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-reference-and-tutorial-of-html5/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-reference-and-tutorial-of-html5/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Fri, 20 Aug 2021 07:39:40 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8112</guid>

					<description><![CDATA[<p>An Introduction To HTML. How many types of pages in html? Html tags and its type? Html attribute? Head Tag [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-reference-and-tutorial-of-html5/">Complete Reference and Tutorial of HTML5</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list"><li><a href="https://www.scmgalaxy.com/tutorials/an-introduction-to-html-how-many-types-of-pages-in-html/" target="_blank" rel="noreferrer noopener">An Introduction To HTML. How many types of pages in html?</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-tags-and-its-type/" target="_blank" rel="noreferrer noopener">Html tags and its type?</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-attribute/" target="_blank" rel="noreferrer noopener">Html attribute?</a></li><li><a href="https://www.scmgalaxy.com/tutorials/head-tag/" target="_blank" rel="noreferrer noopener">Head Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-tag/" target="_blank" rel="noreferrer noopener">HTML Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/title-tag/" target="_blank" rel="noreferrer noopener">Title Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/body-tag/">Body Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/6988-2/" target="_blank" rel="noreferrer noopener">Br Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-headings/" target="_blank" rel="noreferrer noopener">Heading Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-paragraph-tag/" target="_blank" rel="noreferrer noopener">Paragraph Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-tag-tag/" target="_blank" rel="noreferrer noopener">Sub Tag and Super Tag</a></li><li><a href="https://www.scmgalaxy.com/tutorials/html-horizontal-rules/" target="_blank" rel="noreferrer noopener">Horizontal Rules</a></li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-reference-and-tutorial-of-html5/">Complete Reference and Tutorial of HTML5</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-reference-and-tutorial-of-html5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete Reference of view in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-reference-of-view-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-reference-of-view-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Thu, 19 Aug 2021 00:30:12 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7449</guid>

					<description><![CDATA[<p>What is View? Views contain the HTML served by your application and separate your application logic from your presentation logic. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-reference-of-view-in-laravel/">Complete Reference of view in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is View?</h2>



<p class="wp-block-paragraph">Views contain the HTML served by your application and separate your application logic from your presentation logic. Views are stored in the<strong> resources/views</strong> directory.</p>



<h2 class="wp-block-heading">Creating View</h2>



<p class="wp-block-paragraph"><strong>resources/views/aboutme.blade.php</strong></p>



<script src="https://gist.github.com/amardeep-devopsschool/1c8f6e644e831ff34f0245a3216ffc60.js"></script>



<h2 class="wp-block-heading">Create Route for View</h2>



<p class="wp-block-paragraph"><strong>Syntax:-</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Route::get(‘uri’, function(){return view(‘view_name’)});

</pre></div>


<p class="wp-block-paragraph"><strong>Example:-</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Route::get(‘about&#039;, function () {
    return view(‘aboutme&#039;);
});

</pre></div>


<p class="wp-block-paragraph">If your route only needs to return a view, you may use the Route::view method.<br><strong>Syntax:-</strong> Route::view(‘uri’, ‘view_name’);<br><strong>Example:-</strong> Route::view(‘about’, ‘aboutme’)</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-reference-of-view-in-laravel/">Complete Reference of view in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-reference-of-view-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to add placeholder to select2.js</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Sat, 14 Aug 2021 06:49:46 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[select2]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7935</guid>

					<description><![CDATA[<p>Single select placeholders Multi-select placeholders Using placeholders with AJAX Select2 supports placeholders for all configurations, including AJAX. You will still [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/">How to add placeholder to select2.js</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Single select placeholders</h2>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="829" height="162" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95.png" alt="" class="wp-image-7936" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95.png 829w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95-300x59.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-95-768x150.png 768w" sizes="(max-width: 829px) 100vw, 829px" /></figure>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;select class=&quot;js-example-placeholder-single js-states form-control&quot;&gt;
  &amp;lt;option&gt;&amp;lt;/option&gt;
&amp;lt;/select&gt;

</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;.js-example-placeholder-single&quot;).select2({
    placeholder: &quot;Select a state&quot;,
    allowClear: true
});
</pre></div>


<h2 class="wp-block-heading">Multi-select placeholders</h2>



<figure class="wp-block-image size-full"><img decoding="async" width="868" height="112" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96.png" alt="" class="wp-image-7937" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96.png 868w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96-300x39.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-96-768x99.png 768w" sizes="(max-width: 868px) 100vw, 868px" /></figure>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;select class=&quot;js-example-placeholder-multiple js-states form-control&quot; multiple=&quot;multiple&quot;&gt;&amp;lt;/select&gt;
</pre></div>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&quot;.js-example-placeholder-multiple&quot;).select2({
    placeholder: &quot;Select a state&quot;
});
</pre></div>


<h2 class="wp-block-heading">Using placeholders with AJAX</h2>



<p class="wp-block-paragraph">Select2 supports placeholders for all configurations, including AJAX. You will still need to add in the empty <code>&lt;option></code> if you are using a single select.</p>



<p class="wp-block-paragraph">When using Select2 <strong>in single-selection mode</strong>, the placeholder option will be passed through the <code>templateSelection</code> callback if specified. You can use some additional logic in this callback to check the <code>id</code> property and apply an alternative transformation to your placeholder option:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
$(&#039;select&#039;).select2({
  templateSelection: function (data) {
    if (data.id === &#039;&#039;) { // adjust for custom placeholder values
      return &#039;Custom styled placeholder text&#039;;
    }

    return data.text;
  }
});
</pre></div><p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/">How to add placeholder to select2.js</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-add-placeholder-to-select2-js/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Compare select2 and Choices.js&#8217;s popularity and activity</title>
		<link>https://www.scmgalaxy.com/tutorials/compare-select2-and-choices-jss-popularity-and-activity/</link>
					<comments>https://www.scmgalaxy.com/tutorials/compare-select2-and-choices-jss-popularity-and-activity/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Fri, 13 Aug 2021 05:37:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7876</guid>

					<description><![CDATA[<p>Select2.js Choices.js</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/compare-select2-and-choices-jss-popularity-and-activity/">Compare select2 and Choices.js&#8217;s popularity and activity</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Select2.js</strong></p>



<figure class="wp-block-image size-full"><img decoding="async" width="576" height="198" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-90.png" alt="" class="wp-image-7877" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-90.png 576w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-90-300x103.png 300w" sizes="(max-width: 576px) 100vw, 576px" /></figure>



<p class="wp-block-paragraph"><strong>Choices.js</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="578" height="193" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-91.png" alt="" class="wp-image-7878" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-91.png 578w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-91-300x100.png 300w" sizes="auto, (max-width: 578px) 100vw, 578px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="521" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-92-1024x521.png" alt="" class="wp-image-7879" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-92-1024x521.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-92-300x153.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-92-768x391.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-92.png 1174w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/compare-select2-and-choices-jss-popularity-and-activity/">Compare select2 and Choices.js&#8217;s popularity and activity</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/compare-select2-and-choices-jss-popularity-and-activity/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to redirect non-www URLs to www?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-redirect-non-www-urls-to-www/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-redirect-non-www-urls-to-www/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Fri, 06 Aug 2021 12:54:36 +0000</pubDate>
				<category><![CDATA[Htaccess]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7511</guid>

					<description><![CDATA[<p>To redirect your website from non-www to www, add the following lines in your website’s .htaccess file: Replace yourdomain.com with your actual domain name.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-redirect-non-www-urls-to-www/">How to redirect non-www URLs to www?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">To redirect your website from <strong>non-www </strong>to<strong> www</strong>, add the following lines in your website’s .htaccess file:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com &#x5B;NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 &#x5B;L,R=301]
</pre></div>


<p class="wp-block-paragraph">Replace <strong>yourdomain.com</strong> with your actual domain name.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-redirect-non-www-urls-to-www/">How to redirect non-www URLs to www?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-redirect-non-www-urls-to-www/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Laravel and Create Project</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-install-laravel-and-create-project/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-install-laravel-and-create-project/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 12:50:23 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7326</guid>

					<description><![CDATA[<p>How to Install Laravel Download the Laravel installer using Composer : Then use laravel new command will create a fresh [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-laravel-and-create-project/">How to Install Laravel and Create Project</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><span style="text-decoration: underline;">How to Install Laravel</span></h3>



<ul class="wp-block-list"><li>Download the Laravel installer using Composer<strong> :</strong></li></ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
composer global require laravel/installer
</pre></div>


<ul class="wp-block-list"><li>Then use laravel new command will create a fresh Laravel installation in the  directory you specify</li></ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
laravel new projectname
</pre></div>


<ul class="wp-block-list"><li>Install Laravel by issuing the Composer create-project command</li></ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
composer create-project --prefer-dist laravel/laravel projectname
</pre></div><p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-laravel-and-create-project/">How to Install Laravel and Create Project</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-install-laravel-and-create-project/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Laravel?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-laravel-2/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-laravel-2/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Mon, 02 Aug 2021 12:32:44 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7272</guid>

					<description><![CDATA[<p>Laravel is a free, open-source PHP based Web Framework for building High End Web Applications, following the Model View Controller [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-laravel-2/">What is Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Laravel is a free, open-source PHP based Web Framework for building High End Web Applications, following the Model View Controller architectural pattern and based on Symfony.<br>It is created by Taylor Otwell.<br>Laravel Source Code : <a href="https://github.com/laravel/framework">https://github.com/laravel/framework</a></p>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Advantages of Laravel</span></h3>



<ul class="wp-block-list"><li>Open Source</li><li>Collection of tools</li><li>Save Time</li><li>Improve Productivity</li><li>Robust and Easy</li><li>Security of the Application</li><li>Authentication</li><li>Routing</li><li>Templating</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-laravel-2/">What is Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-laravel-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Complete Referance of MVC Design Pattern</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-referance-of-mvc-design-pattern/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-referance-of-mvc-design-pattern/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Wed, 28 Jul 2021 12:29:24 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[mvc]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6962</guid>

					<description><![CDATA[<p>Model View Controller (MVC) The MVC is an architectural pattern that separates an application into three main logical components Model, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-mvc-design-pattern/">Complete Referance of MVC Design Pattern</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><span style="text-decoration: underline;">Model View Controller (MVC)</span></h3>



<p class="wp-block-paragraph">The <strong>MVC</strong> is an architectural pattern that separates an application into three main logical components Model, View, and Controller.<br>Each of these component has their own role in a Project.<br><strong>MVC</strong> model was first introduced in 1987 in the Smalltalk programming language.<br>More than 80% of all web app frameworks rely on the Model View Controller architecture.</p>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Model</span></h3>



<p class="wp-block-paragraph">The model is responsible for getting data from a database, packaging it in data objects that can be understood by other components, and delivering those objects, most of which will happen in response to input from the controller.</p>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">View</span></h3>



<p class="wp-block-paragraph">It represents how data should be presented to the application user. User can read or write the data from view.<br>Basically it is responsible for showing end user content, we can say it is user interface.<br>It may consists of <strong>HTML, CSS, JS.</strong></p>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Controller</span></h3>



<p class="wp-block-paragraph">The user can send request by interacting with view, the controller handles these requests and sends to Model then get appropriate response from the Model, sends response to View.<br>It may also have required logics.<br>It works as a mediator between View and Model.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="923" height="522" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-17.png" alt="" class="wp-image-7155" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-17.png 923w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-17-300x170.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/07/image-17-768x434.png 768w" sizes="auto, (max-width: 923px) 100vw, 923px" /></figure>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Why use MVC?</span></h3>



<ul class="wp-block-list"><li>Organized Code</li><li>Independent Block</li><li>Reduces the complexity of web applications</li><li>Easy to Maintain</li><li>Easy to modify</li></ul>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Basic Structure</span></h3>



<ul class="wp-block-list"><li>Assets<ul><li>CSS</li><li>Images</li><li>JS</li></ul></li><li>Config<ul><li>Database Config File</li></ul></li><li>Controllers</li><li>Model</li><li>Views</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-referance-of-mvc-design-pattern/">Complete Referance of MVC Design Pattern</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-referance-of-mvc-design-pattern/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is a Web Framework, Why do we use Web Frameworks?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-a-web-framework-why-do-we-use-web-frameworks/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-a-web-framework-why-do-we-use-web-frameworks/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 15:44:57 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[Web Framework]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6907</guid>

					<description><![CDATA[<p>What is a Web Framework? A Web Framework (WF) or Web Application Framework (WAF) which helps to build Web Applications.Web [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-web-framework-why-do-we-use-web-frameworks/">What is a Web Framework, Why do we use Web Frameworks?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading"><span style="text-decoration: underline;">What is a Web Framework?</span></h3>



<p class="wp-block-paragraph">A Web Framework (WF) or Web Application Framework (WAF) which helps to build Web Applications.<br>Web frameworks provide tools and libraries to simplify common web development operations. This can include web services, APIs, and other resources.<br>Web frameworks help with a variety of tasks, from templating and database access to session management and code reuse.<br>More than 80% of all web app frameworks rely on the Model View Controller architecture.</p>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Why do we use Web Frameworks?</span></h3>



<ul class="wp-block-list"><li>Collection of tools</li><li>No need to start from scratch</li><li>Save Time</li><li>Improve Productivity</li><li>Clean Code</li><li>Reusable Code</li><li>Testing</li><li>Debugging</li></ul>



<h3 class="wp-block-heading"><span style="text-decoration: underline;">Some Web Framework</span></h3>



<ul class="wp-block-list"><li>Laravel</li><li>Codeigniter</li><li>Zend</li><li>Django</li><li>Spring</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-a-web-framework-why-do-we-use-web-frameworks/">What is a Web Framework, Why do we use Web Frameworks?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-a-web-framework-why-do-we-use-web-frameworks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
