
<?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>laravel tutorial Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/laravel-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/laravel-tutorial/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 09 Sep 2017 09:30:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>laravel tutorial Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/laravel-tutorial/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Configure Laravel 5.5 with Bootstrap 4</title>
		<link>https://www.technig.com/configure-laravel-5-5-with-bootstrap-4/</link>
					<comments>https://www.technig.com/configure-laravel-5-5-with-bootstrap-4/#comments</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Sat, 09 Sep 2017 09:30:11 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS Frameworks]]></category>
		<category><![CDATA[CSS Solution]]></category>
		<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Laravel 5]]></category>
		<category><![CDATA[Laravel Framework]]></category>
		<category><![CDATA[laravel tutorial]]></category>
		<category><![CDATA[PHP framework]]></category>
		<category><![CDATA[twitter bootstrap]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=10448</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="480" src="https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="how to configure laravel 5 5 with bootstrap 4" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4.jpg 640w, https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4-86x64.jpg 86w" sizes="(max-width: 640px) 100vw, 640px" /></div>
<p>Finally, Bootstrap 4 has come with a lot of amazing features.  Meanwhile, Laravel 5.5 with LTS version has also released. Laravel 5.5 by default comes with bootstrap version 3. In this article, you will learn how to configure Laravel 5 5 with Bootstrap 4 step by step. Configure Laravel 5 5 with Bootstrap 4 Step [&#8230;]</p>
<p>The post <a href="https://www.technig.com/configure-laravel-5-5-with-bootstrap-4/">Configure Laravel 5.5 with Bootstrap 4</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="480" src="https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="how to configure laravel 5 5 with bootstrap 4" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4.jpg 640w, https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4-300x225.jpg 300w, https://www.technig.com/wp-content/uploads/2017/09/how-to-configure-laravel-5.5-with-bootstrap-4-86x64.jpg 86w" sizes="(max-width: 640px) 100vw, 640px" /></div><p>Finally, <a href="http://getbootstrap.com/" rel="noopener">Bootstrap 4</a> has come with a lot of amazing features.  Meanwhile, Laravel 5.5 with LTS version has also released. Laravel 5.5 by default comes with bootstrap version 3. In this article, you will learn how to configure Laravel 5 5 with Bootstrap 4 step by step.</p>
<h2>Configure Laravel 5 5 with Bootstrap 4</h2>
<p><strong>Step 1. </strong>Create a new Laravel project. You can use Laravel install or composer installer. If you have any trouble with installation or configuration of Laravel, We recommend you to read our<a href="https://www.technig.com/install-laravel-5-using-laravel-installer/"> Laravel tutorials</a> first.</p>
<pre class="lang:php decode:true">laravel new App</pre>
<p><strong>Step 2. </strong>Now let&#8217;s install bootstrap 4 and npm dependencies. By default, Laravel will download bootstrap 3. You can find it in your package.json file.</p>
<figure id="attachment_10454" aria-describedby="caption-attachment-10454" style="width: 611px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/npm-packages-for-laravel-5.5.png"><img decoding="async" class="wp-image-10454" src="http://3.90.216.52/wp-content/uploads/2017/09/npm-packages-for-laravel-5.5.png" alt="npm packages for laravel 5.5" width="611" height="329" srcset="https://www.technig.com/wp-content/uploads/2017/09/npm-packages-for-laravel-5.5.png 957w, https://www.technig.com/wp-content/uploads/2017/09/npm-packages-for-laravel-5.5-300x162.png 300w, https://www.technig.com/wp-content/uploads/2017/09/npm-packages-for-laravel-5.5-768x414.png 768w" sizes="(max-width: 611px) 100vw, 611px" /></a><figcaption id="caption-attachment-10454" class="wp-caption-text">npm packages for Laravel 5.5</figcaption></figure>
<p>Open your cmd or terminal and run the<span style="background-color: #d6d6d6;"><em> npm install</em> </span>command to install the above dependencies. Make sure you are in the application directory.</p>
<figure id="attachment_10455" aria-describedby="caption-attachment-10455" style="width: 633px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/npm-install-command.png"><img decoding="async" class="wp-image-10455" src="http://3.90.216.52/wp-content/uploads/2017/09/npm-install-command.png" alt="npm install command" width="633" height="146" srcset="https://www.technig.com/wp-content/uploads/2017/09/npm-install-command.png 893w, https://www.technig.com/wp-content/uploads/2017/09/npm-install-command-300x69.png 300w, https://www.technig.com/wp-content/uploads/2017/09/npm-install-command-768x177.png 768w" sizes="(max-width: 633px) 100vw, 633px" /></a><figcaption id="caption-attachment-10455" class="wp-caption-text">npm install command</figcaption></figure>
<p><strong>Step 3. </strong>Once npm dependencies installed successfully, let&#8217;s install bootstrap 4. Run the following command.</p>
<pre class="lang:sh decode:true">npm install bootstrap@4.0.0-beta</pre>
<p>It will install bootstrap 4 beta version. Now inside your node_moduls folder, you have two folders for bootstrap files.</p>
<figure id="attachment_10456" aria-describedby="caption-attachment-10456" style="width: 467px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/bootstap-4-and-3-directories.png"><img loading="lazy" decoding="async" class="size-full wp-image-10456" src="http://3.90.216.52/wp-content/uploads/2017/09/bootstap-4-and-3-directories.png" alt="bootstrap 4 and 3 directories" width="467" height="135" srcset="https://www.technig.com/wp-content/uploads/2017/09/bootstap-4-and-3-directories.png 467w, https://www.technig.com/wp-content/uploads/2017/09/bootstap-4-and-3-directories-300x87.png 300w" sizes="(max-width: 467px) 100vw, 467px" /></a><figcaption id="caption-attachment-10456" class="wp-caption-text">Bootstrap 4 and 3 directories</figcaption></figure>
<p>The first one is bootstrap 4 files.</p>
<p><strong>Step 4. </strong>It&#8217;s time to configure the CSS and JavaScript files. You can set all of this configuration in the<em><span style="background-color: #cfcfcf;"> resources/assets</span> </em>directory.</p>
<p>First, let&#8217;s see what changes we can bring to CSS files. Open the sass/app.scss. You file must look like this.</p>
<pre class="theme:sublime-text lang:css decode:true">// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");

// Variables
@import "variables";

// Bootstrap
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
</pre>
<p>It&#8217;s importing fonts, variables from _variables.scss and bootstrap 3 from node_modules. Now we must point the bootstrap to version 4. You can do it like this.</p>
<pre class="theme:sublime-text lang:css decode:true">// Bootstrap
@import "node_modules/bootstrap/scss/bootstrap";
</pre>
<p>The last changes for CSS files are to open _variables.scss file and change the px values to rem. It&#8217;s because bootstrap 4 is not supporting px value anymore.</p>
<figure id="attachment_10458" aria-describedby="caption-attachment-10458" style="width: 636px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/bootstrap-px-to-rem.png"><img loading="lazy" decoding="async" class="size-full wp-image-10458" src="http://3.90.216.52/wp-content/uploads/2017/09/bootstrap-px-to-rem.png" alt="bootstrap px to rem" width="636" height="134" srcset="https://www.technig.com/wp-content/uploads/2017/09/bootstrap-px-to-rem.png 636w, https://www.technig.com/wp-content/uploads/2017/09/bootstrap-px-to-rem-300x63.png 300w" sizes="(max-width: 636px) 100vw, 636px" /></a><figcaption id="caption-attachment-10458" class="wp-caption-text">Bootstrap px to rem</figcaption></figure>
<p>Now open your js/bootstrap.js file.</p>
<figure id="attachment_10459" aria-describedby="caption-attachment-10459" style="width: 586px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/bootstrap-4-and-laravel-files.png"><img loading="lazy" decoding="async" class="wp-image-10459" src="http://3.90.216.52/wp-content/uploads/2017/09/bootstrap-4-and-laravel-files.png" alt="bootstrap 4 and laravel files" width="586" height="254" srcset="https://www.technig.com/wp-content/uploads/2017/09/bootstrap-4-and-laravel-files.png 873w, https://www.technig.com/wp-content/uploads/2017/09/bootstrap-4-and-laravel-files-300x130.png 300w, https://www.technig.com/wp-content/uploads/2017/09/bootstrap-4-and-laravel-files-768x333.png 768w" sizes="(max-width: 586px) 100vw, 586px" /></a><figcaption id="caption-attachment-10459" class="wp-caption-text">Bootstrap 4 and Laravel files</figcaption></figure>
<p>Just change the bootstrap-sass to bootstrap.</p>
<pre class="theme:sublime-text lang:default decode:true"> require('bootstrap');</pre>
<p>Now you are done.</p>
<p><strong>Step 5. </strong>Open your cmd again and run the following command to compile down the bootstrap 4 files successfully.</p>
<pre class="lang:default decode:true">npm run production</pre>
<p>It will compile down all the JavaScript and CSS files to public/CSS and js directory.</p>
<p>Here is the list of other commands. Th production command will minify the code as well.</p>
<figure id="attachment_10460" aria-describedby="caption-attachment-10460" style="width: 614px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/npm-command-list.png"><img loading="lazy" decoding="async" class="wp-image-10460" src="http://3.90.216.52/wp-content/uploads/2017/09/npm-command-list.png" alt="npm command list" width="614" height="186" srcset="https://www.technig.com/wp-content/uploads/2017/09/npm-command-list.png 956w, https://www.technig.com/wp-content/uploads/2017/09/npm-command-list-300x91.png 300w, https://www.technig.com/wp-content/uploads/2017/09/npm-command-list-768x233.png 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-10460" class="wp-caption-text">npm command list</figcaption></figure>
<p>Now you have configured Laravel 5 5 with bootstrap 4. If you view your Laravel app, everything is broken. It&#8217;s because bootstrap team rewrote the bootstrap 4. Everything has changed. Read the <a href="http://getbootstrap.com">documentation </a>to see what has changed.</p>
<h2>Conclusion</h2>
<p>Bootstrap 4 browser support is not very good. For Internet Explorer version, it should be 10+, and other browsers with the latest version will be supported. If you have any issue, feel free to comment it below.</p>
<p>The post <a href="https://www.technig.com/configure-laravel-5-5-with-bootstrap-4/">Configure Laravel 5.5 with Bootstrap 4</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/configure-laravel-5-5-with-bootstrap-4/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10448</post-id>	</item>
	</channel>
</rss>
