{"id":138,"date":"2024-10-17T02:05:55","date_gmt":"2024-10-17T02:05:55","guid":{"rendered":"https:\/\/leonet.io\/?p=138"},"modified":"2024-10-17T02:05:57","modified_gmt":"2024-10-17T02:05:57","slug":"crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5","status":"publish","type":"post","link":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/","title":{"rendered":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5"},"content":{"rendered":"\n<p>Laravel es un potente framework PHP que, junto con Bootstrap, puede hacer que el desarrollo de interfaces sea mucho m\u00e1s r\u00e1pido y efectivo. En este tutorial, te ense\u00f1aremos c\u00f3mo crear una plantilla principal en Laravel usando <strong>Bootstrap 5<\/strong> para mejorar el dise\u00f1o y la usabilidad de tu aplicaci\u00f3n. Adem\u00e1s, utilizaremos <strong>Visual Studio Code<\/strong> en <strong>Windows<\/strong> para escribir y organizar nuestro c\u00f3digo.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Requisitos Previos<\/h4>\n\n\n\n<p>Antes de comenzar, aseg\u00farate de cumplir con los siguientes requisitos:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.php.net\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>PHP<\/strong> <\/a>(versi\u00f3n 7.3 o superior).<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">Composer<\/a><\/strong>, el gestor de dependencias para PHP.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/code.visualstudio.com\/download\" target=\"_blank\" rel=\"noreferrer noopener\">Visual Studio Code<\/a><\/strong> como editor de c\u00f3digo.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/git-scm.com\/downloads\/win\">Git Bash<\/a><\/strong> (opcional) para ejecutar comandos en la terminal.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/getbootstrap.com\/docs\/5.0\/getting-started\/download\/\">Bootstrap 5<\/a><\/strong> descargado para el dise\u00f1o de la interfaz.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 1. Instalar Laravel<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.1. Instalar Composer<\/h3>\n\n\n\n<p>Si a\u00fan no has instalado Composer, desc\u00e1rgalo desde <a href=\"https:\/\/getcomposer.org\/download\/\">Composer<\/a> y sigue los pasos del instalador.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1.2. Crear un Proyecto Laravel<\/h3>\n\n\n\n<p>Abre <strong>Git Bash<\/strong> o la terminal de Windows y navega hasta la carpeta donde quieras crear tu proyecto Laravel. Luego ejecuta el siguiente comando para crear una nueva aplicaci\u00f3n Laravel:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">composer create-project --prefer-dist laravel\/laravel MiProyectoBS<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_00-2-1024x577.png?resize=1024%2C577&#038;ssl=1\" alt=\"\" class=\"wp-image-139\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_00-2.png?resize=1024%2C577&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_00-2.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_00-2.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_00-2.png?w=1115&amp;ssl=1 1115w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Este comando crear\u00e1 un nuevo proyecto Laravel en la carpeta <code>MiProyectoDS<\/code>.<\/p>\n\n\n\n<p>Una vez creado el proyecto, navega hasta el directorio del mismo.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd MiProyectoBS<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_01-1-1024x577.png?resize=1024%2C577&#038;ssl=1\" alt=\"\" class=\"wp-image-140\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_01-1.png?resize=1024%2C577&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_01-1.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_01-1.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_01-1.png?w=1115&amp;ssl=1 1115w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1.3. Abrir el proyecto en Visual Studio Code<\/h3>\n\n\n\n<p>Para abrir tu proyecto en <strong>Visual Studio Code<\/strong>, ejecuta el siguiente comando dentro de la carpeta del proyecto:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_02-1-1024x577.png?resize=1024%2C577&#038;ssl=1\" alt=\"\" class=\"wp-image-141\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_02-1.png?resize=1024%2C577&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_02-1.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_02-1.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_02-1.png?w=1115&amp;ssl=1 1115w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Esto abrir\u00e1 tu proyecto Laravel en Visual Studio Code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-142\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_03-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 2. Descargar Bootstrap 5<\/h2>\n\n\n\n<p>Para usar <strong>Bootstrap 5<\/strong> en tu proyecto Laravel, puedes descargar los archivos de Bootstrap directamente desde <a href=\"https:\/\/getbootstrap.com\/\">su p\u00e1gina oficial<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.1. Descargar el c\u00f3digo fuente de Bootstrap<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ve a la p\u00e1gina de <a>descarga de Bootstrap 5<\/a> y haz clic en &#8220;Descargar c\u00f3digo fuente&#8221;.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_04-3-1024x623.png?resize=1024%2C623&#038;ssl=1\" alt=\"\" class=\"wp-image-144\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_04-3.png?resize=1024%2C623&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_04-3.png?resize=300%2C183&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_04-3.png?resize=768%2C468&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_04-3.png?w=1373&amp;ssl=1 1373w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Extrae el archivo ZIP descargado y copia las carpetas <code>css<\/code> y <code>js<\/code> que est\u00e1n dentro de <code>bootstrap-5.x.x-dist<\/code> en la carpeta <code>public<\/code> de tu proyecto Laravel.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_05-1-1024x611.png?resize=1024%2C611&#038;ssl=1\" alt=\"\" class=\"wp-image-145\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_05-1.png?resize=1024%2C611&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_05-1.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_05-1.png?resize=768%2C458&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_05-1.png?w=1062&amp;ssl=1 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2.2. Estructura de archivos<\/h3>\n\n\n\n<p>Coloca los archivos descargados de Bootstrap dentro de la carpeta <code>public<\/code> de tu proyecto Laravel de la siguiente manera:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_06-1-1024x611.png?resize=1024%2C611&#038;ssl=1\" alt=\"\" class=\"wp-image-146\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_06-1.png?resize=1024%2C611&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_06-1.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_06-1.png?resize=768%2C458&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_06-1.png?w=1062&amp;ssl=1 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Esto permitir\u00e1 que tu aplicaci\u00f3n tenga acceso a los archivos CSS y JavaScript de Bootstrap.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 3. Crear la plantilla principal<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3.1. Crear la carpeta <code>layouts<\/code><\/h3>\n\n\n\n<p>En el directorio <code>resources\/views<\/code>, crea una carpeta llamada <code>layouts<\/code>. Esta carpeta contendr\u00e1 el archivo <code>app.blade.php<\/code>, que ser\u00e1 la <strong>plantilla principal<\/strong> de tu aplicaci\u00f3n.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"760\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1-1024x760.png?resize=1024%2C760&#038;ssl=1\" alt=\"\" class=\"wp-image-154\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1.png?resize=1024%2C760&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1.png?resize=768%2C570&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_07-1.png?w=1048&amp;ssl=1 1048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"765\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1-1024x765.png?resize=1024%2C765&#038;ssl=1\" alt=\"\" class=\"wp-image-155\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1.png?resize=1024%2C765&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1.png?resize=768%2C574&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_08-1.png?w=1044&amp;ssl=1 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3.2. Crear el archivo <code>app.blade.php<\/code><\/h3>\n\n\n\n<p>Dentro de la carpeta <code>layouts<\/code>, crea un archivo llamado <code>app.blade.php<\/code>. Este archivo ser\u00e1 la base de todas las vistas de tu proyecto. Vamos a agregar la estructura HTML b\u00e1sica con la integraci\u00f3n de Bootstrap 5.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"765\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1-1024x765.png?resize=1024%2C765&#038;ssl=1\" alt=\"\" class=\"wp-image-156\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1.png?resize=1024%2C765&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1.png?resize=768%2C573&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-1.png?w=1042&amp;ssl=1 1042w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"765\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2-1024x765.png?resize=1024%2C765&#038;ssl=1\" alt=\"\" class=\"wp-image-157\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2.png?resize=1024%2C765&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2.png?resize=300%2C224&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2.png?resize=768%2C573&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_09-2.png?w=1042&amp;ssl=1 1042w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1-1024x767.png?resize=1024%2C767&#038;ssl=1\" alt=\"\" class=\"wp-image-158\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1.png?resize=1024%2C767&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1.png?resize=768%2C575&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_10-1.png?w=1044&amp;ssl=1 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-159\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_11-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html lang=\"es\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    &lt;meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n    &lt;title>@yield('title', 'Mi Aplicaci\u00f3n')&lt;\/title>\n\n    &lt;!-- Bootstrap CSS -->\n    &lt;link rel=\"stylesheet\" href=\"{{ asset('css\/bootstrap.min.css') }}\">\n\n    &lt;!-- Agrega tus estilos personalizados aqu\u00ed -->\n    &lt;link rel=\"stylesheet\" href=\"{{ asset('css\/app.css') }}\">\n&lt;\/head>\n&lt;body>\n    &lt;!-- Barra de navegaci\u00f3n de Bootstrap -->\n    &lt;nav class=\"navbar navbar-expand-lg navbar-light bg-light\">\n        &lt;div class=\"container-fluid\">\n            &lt;a class=\"navbar-brand\" href=\"{{ url('\/') }}\">Mi Aplicaci\u00f3n&lt;\/a>\n            &lt;button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarNav\" aria-controls=\"navbarNav\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\n                &lt;span class=\"navbar-toggler-icon\">&lt;\/span>\n            &lt;\/button>\n            &lt;div class=\"collapse navbar-collapse\" id=\"navbarNav\">\n                &lt;ul class=\"navbar-nav\">\n                    &lt;li class=\"nav-item\">\n                        &lt;a class=\"nav-link\" href=\"{{ url('\/') }}\">Inicio&lt;\/a>\n                    &lt;\/li>\n                    &lt;li class=\"nav-item\">\n                        &lt;a class=\"nav-link\" href=\"{{ url('\/about') }}\">Acerca de&lt;\/a>\n                    &lt;\/li>\n                    &lt;li class=\"nav-item\">\n                        &lt;a class=\"nav-link\" href=\"{{ url('\/contact') }}\">Contacto&lt;\/a>\n                    &lt;\/li>\n                &lt;\/ul>\n            &lt;\/div>\n        &lt;\/div>\n    &lt;\/nav>\n\n    &lt;!-- Contenido principal -->\n    &lt;main class=\"container my-4\">\n        @yield('content')\n    &lt;\/main>\n\n    &lt;!-- Pie de p\u00e1gina -->\n    &lt;footer class=\"bg-light text-center py-4\">\n        &lt;p>&amp;copy; 2024 Mi Aplicaci\u00f3n. Todos los derechos reservados.&lt;\/p>\n    &lt;\/footer>\n\n    &lt;!-- Bootstrap JavaScript -->\n    &lt;script src=\"{{ asset('js\/bootstrap.bundle.min.js') }}\">&lt;\/script>\n\n    &lt;!-- Scripts personalizados -->\n    &lt;script src=\"{{ asset('js\/app.js') }}\">&lt;\/script>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-160\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_12-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Explicaci\u00f3n de la plantilla:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Barra de navegaci\u00f3n<\/strong>: Utilizamos una barra de navegaci\u00f3n de Bootstrap que incluye enlaces de ejemplo como <code>Inicio<\/code>, <code>Acerca de<\/code> y <code>Contacto<\/code>.<\/li>\n\n\n\n<li><strong>Contenido din\u00e1mico<\/strong>: Usamos <code>@yield('content')<\/code> para definir una secci\u00f3n donde se insertar\u00e1 el contenido din\u00e1mico en las vistas hijas.<\/li>\n\n\n\n<li><strong>Bootstrap<\/strong>: Cargamos el archivo <code>bootstrap.min.css<\/code> y <code>bootstrap.bundle.min.js<\/code> desde la carpeta <code>public<\/code> del proyecto.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 4. Crear una vista que extienda la plantilla principal<\/h2>\n\n\n\n<p>Ahora que tenemos una plantilla principal, crearemos una vista que la extienda.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.1. Crear la vista <code>home.blade.php<\/code><\/h3>\n\n\n\n<p>Dentro de la carpeta <code>resources\/views<\/code>, crea un archivo llamado <code>home.blade.php<\/code> que utilizar\u00e1 la plantilla principal <code>app.blade.php<\/code> para mostrar contenido.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"761\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1-1024x761.png?resize=1024%2C761&#038;ssl=1\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1.png?resize=1024%2C761&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_13-1.png?w=1045&amp;ssl=1 1045w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1.png?resize=768%2C572&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_14-1.png?w=1044&amp;ssl=1 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_15-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@extends('layouts.app')\n\n@section('title', 'Inicio')\n\n@section('content')\n    &lt;div class=\"jumbotron\">\n        &lt;h1 class=\"display-4\">Bienvenido a Mi Aplicaci\u00f3n&lt;\/h1>\n        &lt;p class=\"lead\">Esta es una aplicaci\u00f3n Laravel con Bootstrap 5 integrado.&lt;\/p>\n        &lt;hr class=\"my-4\">\n        &lt;p>Esta p\u00e1gina de inicio usa una plantilla principal para el dise\u00f1o.&lt;\/p>\n        &lt;a class=\"btn btn-primary btn-lg\" href=\"#\" role=\"button\">Aprende m\u00e1s&lt;\/a>\n    &lt;\/div>\n@endsection<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_16-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>En esta vista, extendemos la plantilla principal y llenamos la secci\u00f3n <code>content<\/code> con un <strong>jumbotron<\/strong> de Bootstrap 5.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 5. Definir las rutas<\/h2>\n\n\n\n<p>Para mostrar la vista de inicio, necesitamos definir una ruta en el archivo <code>routes\/web.php<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"761\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1-1024x761.png?resize=1024%2C761&#038;ssl=1\" alt=\"\" class=\"wp-image-167\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1.png?resize=1024%2C761&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_17-1.png?w=1047&amp;ssl=1 1047w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Route::get('\/', function () {\n    return view('home');\n});<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_18-1.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Esta ruta devolver\u00e1 la vista <code>home.blade.php<\/code> cuando accedamos a la URL ra\u00edz (<code>http:\/\/localhost:8000<\/code>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 6. Ejecutar el servidor de Laravel<\/h2>\n\n\n\n<p>Ahora que tienes tu plantilla principal y la vista configuradas, es momento de verlas en acci\u00f3n. En la terminal de Visual Studio Code, ejecuta el siguiente comando para iniciar el servidor de desarrollo de Laravel:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"759\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_19-1-1024x759.png?resize=1024%2C759&#038;ssl=1\" alt=\"\" class=\"wp-image-171\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_19-1.png?resize=1024%2C759&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_19-1.png?resize=300%2C222&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_19-1.png?resize=768%2C570&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_19-1.png?w=1049&amp;ssl=1 1049w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php artisan serve<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20-1024x762.png?resize=1024%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20.png?resize=1024%2C762&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20.png?resize=300%2C223&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20.png?resize=768%2C571&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20.png?resize=60%2C46&amp;ssl=1 60w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_20.png?w=1050&amp;ssl=1 1050w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Esto ejecutar\u00e1 el servidor de Laravel en <code>http:\/\/localhost:8000<\/code>. Abre esa URL en tu navegador y ver\u00e1s la p\u00e1gina de inicio utilizando Bootstrap 5.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"752\" src=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21-1024x752.png?resize=1024%2C752&#038;ssl=1\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?resize=1024%2C752&amp;ssl=1 1024w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?resize=768%2C564&amp;ssl=1 768w, https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?w=1314&amp;ssl=1 1314w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Paso 7. Personalizar tu aplicaci\u00f3n<\/h2>\n\n\n\n<p>Ahora que has integrado Bootstrap 5 y creado una plantilla principal, puedes seguir creando m\u00e1s vistas que extiendan esta plantilla. Puedes agregar tus propios estilos y scripts personalizados a trav\u00e9s de los archivos <code>app.css<\/code> y <code>app.js<\/code> que puedes ubicar dentro de la carpeta <code>public<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusi\u00f3n<\/h2>\n\n\n\n<p>En este tutorial, aprendiste c\u00f3mo configurar una plantilla principal para tu aplicaci\u00f3n Laravel utilizando <strong>Bootstrap 5<\/strong> descargado, <strong>Visual Studio Code<\/strong> en <strong>Windows<\/strong>. La plantilla principal te permite mantener un dise\u00f1o consistente en toda tu aplicaci\u00f3n y te facilita el desarrollo, evitando duplicaciones innecesarias de c\u00f3digo HTML.<\/p>\n\n\n\n<p>Bootstrap 5 te proporciona componentes y clases CSS listas para usar, mientras que Laravel te ofrece una estructura robusta de backend. Con estos pasos, est\u00e1s listo para construir aplicaciones web modernas y responsivas.<\/p>\n\n\n\n<p>\u00bfTienes alguna duda o comentario sobre este proceso? \u00a1D\u00e9jalos abajo y con gusto te ayudar\u00e9!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel es un potente framework PHP que, junto con Bootstrap, puede hacer que el desarrollo de interfaces sea mucho m\u00e1s r\u00e1pido y efectivo. En este tutorial, te ense\u00f1aremos c\u00f3mo crear una plantilla principal en Laravel usando Bootstrap 5 para mejorar el dise\u00f1o y la usabilidad de tu aplicaci\u00f3n. Adem\u00e1s, utilizaremos Visual Studio Code en Windows para escribir y organizar nuestro c\u00f3digo. Requisitos Previos Antes de comenzar, aseg\u00farate de cumplir con los siguientes requisitos: Paso 1. Instalar Laravel 1.1. Instalar Composer Si a\u00fan no has instalado Composer, desc\u00e1rgalo desde Composer y sigue los pasos del instalador. 1.2. Crear un Proyecto Laravel&#8230;<\/p>\n","protected":false},"author":1,"featured_media":173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[28,23,24],"class_list":["post-138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-bootstrap-5","tag-laravel","tag-layouts"],"acf":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io\" \/>\n<meta property=\"og:description\" content=\"Laravel es un potente framework PHP que, junto con Bootstrap, puede hacer que el desarrollo de interfaces sea mucho m\u00e1s r\u00e1pido y efectivo. En este tutorial, te ense\u00f1aremos c\u00f3mo crear una plantilla principal en Laravel usando Bootstrap 5 para mejorar el dise\u00f1o y la usabilidad de tu aplicaci\u00f3n. Adem\u00e1s, utilizaremos Visual Studio Code en Windows para escribir y organizar nuestro c\u00f3digo. Requisitos Previos Antes de comenzar, aseg\u00farate de cumplir con los siguientes requisitos: Paso 1. Instalar Laravel 1.1. Instalar Composer Si a\u00fan no has instalado Composer, desc\u00e1rgalo desde Composer y sigue los pasos del instalador. 1.2. Crear un Proyecto Laravel...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\" \/>\n<meta property=\"og:site_name\" content=\"L3oNeT.io\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/L3onet\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-17T02:05:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-17T02:05:57+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1314\" \/>\n\t<meta property=\"og:image:height\" content=\"965\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Leonel Gonz\u00e1lez Vidales\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@L3onet\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Leonel Gonz\u00e1lez Vidales\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\"},\"author\":{\"name\":\"Leonel Gonz\u00e1lez Vidales\",\"@id\":\"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029\"},\"headline\":\"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5\",\"datePublished\":\"2024-10-17T02:05:55+00:00\",\"dateModified\":\"2024-10-17T02:05:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\"},\"wordCount\":766,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1\",\"keywords\":[\"bootstrap 5\",\"laravel\",\"layouts\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\",\"url\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\",\"name\":\"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io\",\"isPartOf\":{\"@id\":\"https:\/\/leonet.io\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1\",\"datePublished\":\"2024-10-17T02:05:55+00:00\",\"dateModified\":\"2024-10-17T02:05:57+00:00\",\"author\":{\"@id\":\"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029\"},\"breadcrumb\":{\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1\",\"width\":1314,\"height\":965,\"caption\":\"Laravel y Bootstrap 5\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inicio\",\"item\":\"https:\/\/leonet.io\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/leonet.io\/#website\",\"url\":\"https:\/\/leonet.io\/\",\"name\":\"L3oNeT.io\",\"description\":\"Mis notas de docencia\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/leonet.io\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029\",\"name\":\"Leonel Gonz\u00e1lez Vidales\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g\",\"caption\":\"Leonel Gonz\u00e1lez Vidales\"},\"sameAs\":[\"http:\/\/leonet.io\",\"https:\/\/www.facebook.com\/L3onet\",\"https:\/\/www.instagram.com\/L3onet\",\"https:\/\/x.com\/L3onet\"],\"url\":\"https:\/\/leonet.io\/index.php\/author\/leonet-io\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/","og_locale":"en_US","og_type":"article","og_title":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io","og_description":"Laravel es un potente framework PHP que, junto con Bootstrap, puede hacer que el desarrollo de interfaces sea mucho m\u00e1s r\u00e1pido y efectivo. En este tutorial, te ense\u00f1aremos c\u00f3mo crear una plantilla principal en Laravel usando Bootstrap 5 para mejorar el dise\u00f1o y la usabilidad de tu aplicaci\u00f3n. Adem\u00e1s, utilizaremos Visual Studio Code en Windows para escribir y organizar nuestro c\u00f3digo. Requisitos Previos Antes de comenzar, aseg\u00farate de cumplir con los siguientes requisitos: Paso 1. Instalar Laravel 1.1. Instalar Composer Si a\u00fan no has instalado Composer, desc\u00e1rgalo desde Composer y sigue los pasos del instalador. 1.2. Crear un Proyecto Laravel...","og_url":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/","og_site_name":"L3oNeT.io","article_author":"https:\/\/www.facebook.com\/L3onet","article_published_time":"2024-10-17T02:05:55+00:00","article_modified_time":"2024-10-17T02:05:57+00:00","og_image":[{"width":1314,"height":965,"url":"http:\/\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png","type":"image\/png"}],"author":"Leonel Gonz\u00e1lez Vidales","twitter_card":"summary_large_image","twitter_creator":"@L3onet","twitter_misc":{"Written by":"Leonel Gonz\u00e1lez Vidales","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#article","isPartOf":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/"},"author":{"name":"Leonel Gonz\u00e1lez Vidales","@id":"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029"},"headline":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5","datePublished":"2024-10-17T02:05:55+00:00","dateModified":"2024-10-17T02:05:57+00:00","mainEntityOfPage":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/"},"wordCount":766,"commentCount":0,"image":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1","keywords":["bootstrap 5","laravel","layouts"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/","url":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/","name":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5 - L3oNeT.io","isPartOf":{"@id":"https:\/\/leonet.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage"},"image":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1","datePublished":"2024-10-17T02:05:55+00:00","dateModified":"2024-10-17T02:05:57+00:00","author":{"@id":"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029"},"breadcrumb":{"@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#primaryimage","url":"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1","contentUrl":"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1","width":1314,"height":965,"caption":"Laravel y Bootstrap 5"},{"@type":"BreadcrumbList","@id":"https:\/\/leonet.io\/index.php\/2024\/10\/17\/crea-una-plantilla-principal-espectacular-usando-visual-studio-code-y-bootstrap-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https:\/\/leonet.io\/"},{"@type":"ListItem","position":2,"name":"Crea una plantilla principal espectacular usando Visual Studio Code y Bootstrap 5"}]},{"@type":"WebSite","@id":"https:\/\/leonet.io\/#website","url":"https:\/\/leonet.io\/","name":"L3oNeT.io","description":"Mis notas de docencia","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/leonet.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/leonet.io\/#\/schema\/person\/cd71c969d24c0c22bd5d5eccc300d029","name":"Leonel Gonz\u00e1lez Vidales","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/945928953407747c753c751893c91c9ed28de03f892fc88c78bb34dff3061378?s=96&d=mm&r=g","caption":"Leonel Gonz\u00e1lez Vidales"},"sameAs":["http:\/\/leonet.io","https:\/\/www.facebook.com\/L3onet","https:\/\/www.instagram.com\/L3onet","https:\/\/x.com\/L3onet"],"url":"https:\/\/leonet.io\/index.php\/author\/leonet-io\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/leonet.io\/wp-content\/uploads\/2024\/10\/plantilla_21.png?fit=1314%2C965&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":14,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/posts\/138\/revisions\/175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/media\/173"}],"wp:attachment":[{"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leonet.io\/index.php\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}