{"id":74470,"date":"2024-06-27T14:26:37","date_gmt":"2024-06-27T07:26:37","guid":{"rendered":"https:\/\/itviec.com\/blog\/?p=74470"},"modified":"2024-06-27T14:26:37","modified_gmt":"2024-06-27T07:26:37","slug":"huong-dan-cai-dat-laravel","status":"publish","type":"post","link":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">N\u1ed9i dung b\u00e0i vi\u1ebft<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Yeu_cau_ve_he_thong\" >Y\u00eau c\u1ea7u v\u1ec1 h\u1ec7 th\u1ed1ng<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Cai_dat_Laravel_qua_composer\" >C\u00e0i \u0111\u1eb7t Laravel qua composer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Huong_dan_cai_dat_Laravel_tren_macOS\" >H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean macOS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#_Huong_dan_cai_dat_Laravel_tren_Window\" >\u00a0H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean Window<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Huong_dan_cai_dat_Laravel_tren_Linux\" >H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Cau_hoi_thuong_gap_ve_cai_dat_Laravel\" >C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 c\u00e0i \u0111\u1eb7t Laravel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#Tong_ket\" >T\u1ed5ng k\u1ebft<\/a><\/li><\/ul><\/nav><\/div>\n<p><em><strong>Laravel l\u00e0 m\u1ed9t framework WebApp s\u1edf h\u1eefu c\u00fa ph\u00e1p tinh t\u1ebf, bi\u1ec3u c\u1ea3m.\u00a0Cho d\u00f9 b\u1ea1n l\u00e0 ng\u01b0\u1eddi m\u1edbi l\u00e0m quen v\u1edbi c\u00e1c framework web PHP hay \u0111\u00e3 c\u00f3 nhi\u1ec1u n\u0103m kinh nghi\u1ec7m, Laravel l\u00e0 m\u1ed9t framework c\u00f3 th\u1ec3 ph\u00e1t tri\u1ec3n c\u00f9ng v\u1edbi b\u1ea1n. B\u00e0i vi\u1ebft sau s\u1ebd gi\u00fap b\u1ea1n th\u1ef1c hi\u1ec7n nh\u1eefng b\u01b0\u1edbc tr\u1ea3i nghi\u1ec7m \u0111\u1ea7u ti\u00ean v\u1edbi Laravel v\u1edbi t\u01b0 c\u00e1ch l\u00e0 Web Developer b\u1eb1ng h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel chi ti\u1ebft, theo t\u1eebng b\u01b0\u1edbc v\u00e0 v\u1edbi t\u1eebng h\u1ec7 \u0111i\u1ec1u h\u00e0nh.<\/strong><\/em><\/p>\n<p><span style=\"font-weight: 400;\">\u0110\u1ecdc b\u00e0i vi\u1ebft n\u00e0y \u0111\u1ec3 t\u00ecm hi\u1ec3u th\u00eam:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Y\u00eau c\u1ea7u v\u1ec1 h\u1ec7 th\u1ed1ng tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">H\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t Laravel tr\u00ean c\u00e1c h\u1ec7 \u0111i\u1ec1u h\u00e0nh Windows, Linux, macOs<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">C\u00e1c c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p khi c\u00e0i \u0111\u1eb7t Laravel<\/span><\/li>\n<\/ul>\n<blockquote><p><em>\u0110\u1ecdc th\u00eam: <a href=\"https:\/\/itviec.com\/blog\/laravel-la-gi\/\" target=\"_blank\" rel=\"noopener\"><strong>Laravel l\u00e0 g\u00ec? T\u1ed5ng quan v\u1ec1 Laravel A-Z cho ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u<\/strong><\/a><\/em><\/p><\/blockquote>\n<h2><span class=\"ez-toc-section\" id=\"Yeu_cau_ve_he_thong\"><\/span><b> Y\u00eau c\u1ea7u v\u1ec1 h\u1ec7 th\u1ed1ng<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 c\u00e0i \u0111\u1eb7t Laravel, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o m\u00e1y ch\u1ee7 \u0111\u00e1p \u1ee9ng c\u00e1c y\u00eau c\u1ea7u sau:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Phi\u00ean b\u1ea3n PHP 8.2<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">BCMath PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ctype PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fileinfo PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">JSON PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Mbstring PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">OpenSSL PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PDO PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tokenizer PHP Extension<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">XML PHP Extension<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Cai_dat_Laravel_qua_composer\"><\/span><b>C\u00e0i \u0111\u1eb7t Laravel qua composer<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Laravel t\u1eadn d\u1ee5ng Composer \u0111\u1ec3 qu\u1ea3n l\u00fd c\u00e1c ph\u1ea7n ph\u1ee5 thu\u1ed9c trong h\u1ec7 sinh th\u00e1i. Do \u0111\u00f3, tr\u01b0\u1edbc khi b\u1eaft tay v\u00e0o s\u1eed d\u1ee5ng Laravel, vi\u1ec7c ki\u1ec3m tra \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft v\u1ec1 s\u1ef1 t\u1ed3n t\u1ea1i c\u1ee7a Composer tr\u00ean framework l\u00e0 \u0111i\u1ec1u c\u1ea7n thi\u1ebft.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 c\u00f3 th\u1ec3 ki\u1ec3m tra xem b\u1ea1n \u0111\u00e3 c\u00f3 s\u1eb5n composer ch\u01b0a th\u00ec c\u00f3 th\u1ec3 l\u00e0m nh\u01b0 sau:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Ki\u1ec3m tra phi\u00ean b\u1ea3n Composer hi\u1ec7n t\u1ea1i<\/strong>: M\u1edf terminal v\u00e0 nh\u1eadp l\u1ec7nh <\/span>\n<pre><span style=\"font-weight: 400;\">composer -v<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">N\u1ebfu Composer \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t, n\u00f3 s\u1ebd hi\u1ec3n th\u1ecb phi\u00ean b\u1ea3n hi\u1ec7n t\u1ea1i.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">N\u1ebfu b\u1ea1n ch\u01b0a c\u00e0i \u0111\u1eb7t Composer, h\u00e3y truy c\u1eadp trang web ch\u00ednh th\u1ee9c: <\/span><a href=\"https:\/\/getcomposer.org\/doc\/faqs\/how-to-install-composer-programmatically.md\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">https:\/\/getcomposer.org\/doc\/faqs\/how-to-install-composer-programmatically.md<\/span><\/a><span style=\"font-weight: 400;\"> v\u00e0 t\u1ea3i xu\u1ed1ng phi\u00ean b\u1ea3n ph\u00f9 h\u1ee3p v\u1edbi h\u1ec7 \u0111i\u1ec1u h\u00e0nh c\u1ee7a b\u1ea1n.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">B\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t composer b\u1eb1ng l\u1ec7nh t\u1ea1o d\u1ef1 \u00e1n Composer trong terminal c\u1ee7a m\u00ecnh:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">composer create-project laravel\/laravel {directory} 4.2 --prefer-dist<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">C\u00e0i \u0111\u1eb7t trong Apache T\u1ec7p public\/.htaccess do framework cung c\u1ea5p \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 cho ph\u00e9p c\u00e1c URL kh\u00f4ng c\u00f3 index.php. \u0110\u1ea3m b\u1ea3o k\u00edch ho\u1ea1t module mod_rewrite n\u1ebfu Apache \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 ph\u1ee5c v\u1ee5 \u1ee9ng d\u1ee5ng Laravel. V\u00ed d\u1ee5 c\u00e0i \u0111\u1eb7t n\u1ebfu t\u1ec7p .htaccess \u0111\u01b0\u1ee3c cung c\u1ea5p v\u1edbi Laravel kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng v\u1edbi c\u00e0i \u0111\u1eb7t Apache c\u1ee7a b\u1ea1n:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">Options +FollowSymLinks<\/span>\r\n\r\n<span style=\"font-weight: 400;\">RewriteEngine On<\/span>\r\n\r\n<span style=\"font-weight: 400;\">RewriteCond %{REQUEST_FILENAME} !-d<\/span>\r\n\r\n<span style=\"font-weight: 400;\">RewriteCond %<\/span>\r\n\r\n<span style=\"font-weight: 400;\">{REQUEST_FILENAME} !-f<\/span>\r\n\r\n<span style=\"font-weight: 400;\">RewriteRule ^ index.php [L]<\/span><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Huong_dan_cai_dat_Laravel_tren_macOS\"><\/span><b>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean macOS<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>C\u00e0i \u0111\u1eb7t Homebrew<\/strong>: Homebrew l\u00e0 tr\u00ecnh qu\u1ea3n l\u00fd g\u00f3i d\u00e0nh cho macOS gi\u00fap \u0111\u01a1n gi\u1ea3n h\u00f3a vi\u1ec7c c\u00e0i \u0111\u1eb7t ph\u1ea7n m\u1ec1m. \u0110\u1ec3 c\u00e0i \u0111\u1eb7t Homebrew, h\u00e3y m\u1edf Terminal v\u00e0 ch\u1ea1y l\u1ec7nh sau:<\/span><\/li>\n<\/ul>\n<pre><span style=\"font-weight: 400;\">\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/span><\/pre>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>C\u00e0i \u0111\u1eb7t Node.js v\u00e0 npm<\/strong>: C\u00e0i \u0111\u1eb7t Node.js v\u00e0 npm (tr\u00ecnh qu\u1ea3n l\u00fd g\u00f3i Node.js) b\u1eb1ng Homebrew. Trong Terminal, g\u00f5 l\u1ec7nh sau (c\u00e0i \u0111\u1eb7t c\u1ea3 Node.js v\u00e0 npm tr\u00ean h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n): <\/span>\n<pre><span style=\"font-weight: 400;\">brew install node<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>C\u00e0i \u0111\u1eb7t PHP<\/strong>: Sau khi c\u00e0i \u0111\u1eb7t Homebrew, b\u00e2y gi\u1edd b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 c\u00e0i \u0111\u1eb7t PHP. Ch\u1ea1y l\u1ec7nh sau trong Terminal: <\/span>\n<pre><span style=\"font-weight: 400;\">brew install php<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>C\u00e0i \u0111\u1eb7t Composer<\/strong>: Composer l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd ph\u1ee5 thu\u1ed9c d\u00e0nh cho PHP \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel. \u0110\u1ec3 c\u00e0i \u0111\u1eb7t Composer tr\u00ean macOS, h\u00e3y ch\u1ea1y c\u00e1c l\u1ec7nh sau trong Terminal: <\/span>\n<pre><span style=\"font-weight: 400;\">curl -sS https:\/\/getcomposer.org\/installer | php sudo mv composer<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>X\u00e1c minh c\u00e0i \u0111\u1eb7t PHP v\u00e0 Composer<\/strong>: C\u00e0i \u0111\u1eb7t Laravel b\u1eb1ng Composer: \u0110\u1ec3 x\u00e1c minh r\u1eb1ng PHP v\u00e0 Composer \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t ch\u00ednh x\u00e1c, h\u00e3y m\u1edf Terminal v\u00e0 ch\u1ea1y c\u00e1c l\u1ec7nh sau: <\/span>\n<pre><span style=\"font-weight: 400;\">php --version composer --version<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>C\u00e0i \u0111\u1eb7t b\u1eb1ng Composer<\/strong>: Sau khi c\u00e0i \u0111\u1eb7t Composer, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng Composer \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel. M\u1edf Terminal v\u00e0 ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel tr\u00ean to\u00e0n c\u1ea7u tr\u00ean h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n: <\/span><span style=\"font-weight: 400;\">composer global require laravel\/installer<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 x\u00e1c minh r\u1eb1ng Laravel \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t ch\u00ednh x\u00e1c, h\u00e3y m\u1edf Terminal v\u00e0 ch\u1ea1y l\u1ec7nh sau:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">laravel --version.<\/span><\/pre>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">T\u1ea1o m\u1ed9t d\u1ef1 \u00e1n m\u1edbi: S\u1eed d\u1ee5ng l\u1ec7nh sau trong Terminal: <\/span>\n<pre><span style=\"font-weight: 400;\">composer create-project --prefer-dist laravel\/laravel app-name<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sau \u0111\u00f3 thay th\u1ebf t\u00ean \u1ee9ng d\u1ee5ng b\u1eb1ng t\u00ean d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n. Ti\u1ebfp theo, \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn th\u01b0 m\u1ee5c d\u1ef1 \u00e1n v\u1eeba t\u1ea1o: <\/span><span style=\"font-weight: 400;\">cd app-name<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ch\u1ea1y m\u00e1y ch\u1ee7 Laravel: H\u00e3y th\u1ef1c hi\u1ec7n l\u1ec7nh sau trong th\u01b0 m\u1ee5c d\u1ef1 \u00e1n: <\/span><span style=\"font-weight: 400;\">php artisan serve<\/span><span style=\"font-weight: 400;\">. L\u1ec7nh n\u00e0y s\u1ebd kh\u1edfi ch\u1ea1y m\u00e1y ch\u1ee7 ph\u00e1t tri\u1ec3n c\u1ee5c b\u1ed9 tr\u00ean c\u1ed5ng 8000. B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp \u1ee9ng d\u1ee5ng Laravel b\u1eb1ng c\u00e1ch m\u1edf tr\u00ecnh duy\u1ec7t web v\u00e0 \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn http:\/\/127.0.0.1:8000\/<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"_Huong_dan_cai_dat_Laravel_tren_Window\"><\/span><b>\u00a0H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean Window<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t XAMPP:<\/b><span style=\"font-weight: 400;\"> XAMPP l\u00e0 g\u00f3i gi\u1ea3i ph\u00e1p m\u00e1y ch\u1ee7 web m\u00e3 ngu\u1ed3n m\u1edf v\u00e0 mi\u1ec5n ph\u00ed bao g\u1ed3m PHP, MySQL v\u00e0 Apache. Truy c\u1eadp <\/span><a href=\"https:\/\/www.apachefriends.org\/download.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">trang t\u1ea3i xu\u1ed1ng XAMPP<\/span><\/a><span style=\"font-weight: 400;\"> v\u00e0 t\u1ea3i xu\u1ed1ng tr\u00ecnh c\u00e0i \u0111\u1eb7t th\u00edch h\u1ee3p cho phi\u00ean b\u1ea3n Windows. Ch\u1ea1y tr\u00ecnh c\u00e0i \u0111\u1eb7t v\u00e0 l\u00e0m theo h\u01b0\u1edbng d\u1eabn tr\u00ean m\u00e0n h\u00ecnh. Trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, b\u1ea1n ch\u1ecdn c\u00e0i \u0111\u1eb7t PHP v\u00e0 MySQL. Sau khi c\u00e0i \u0111\u1eb7t, h\u00e3y kh\u1edfi ch\u1ea1y B\u1ea3ng \u0111i\u1ec1u khi\u1ec3n XAMPP v\u00e0 kh\u1edfi \u0111\u1ed9ng c\u00e1c d\u1ecbch v\u1ee5 Apache v\u00e0 MySQL.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t Composer:<\/b><span style=\"font-weight: 400;\"> Composer l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd d\u00e0nh cho PHP \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel. Truy c\u1eadp <\/span><a href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">trang t\u1ea3i xu\u1ed1ng Composer<\/span><\/a><span style=\"font-weight: 400;\"> v\u00e0 t\u1ea3i xu\u1ed1ng t\u1ec7p Composer-Setup.exe. Ch\u1ea1y t\u1ec7p Composer-Setup.exe v\u00e0 l\u00e0m theo h\u01b0\u1edbng d\u1eabn tr\u00ean m\u00e0n h\u00ecnh, khuy\u1ebfn ngh\u1ecb ch\u1ecdn Install for all users. \u0110\u1ea3m b\u1ea3o ch\u1ecdn \u0111\u00fang t\u1ec7p th\u1ef1c thi PHP trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t (th\u01b0\u1eddng n\u1eb1m trong th\u01b0 m\u1ee5c c\u00e0i \u0111\u1eb7t XAMPP trong xampp\/php\/php.exe). Nh\u1ea5p v\u00e0o Next \u0111\u1ec3 chuy\u1ec3n qua c\u00e1c h\u01b0\u1edbng d\u1eabn tr\u00ean m\u00e0n h\u00ecnh, sau \u0111\u00f3 nh\u1ea5p v\u00e0o Install. Sau khi c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t, nh\u1ea5p v\u00e0o Finish.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>X\u00e1c minh c\u00e0i \u0111\u1eb7t Composer:<\/b><span style=\"font-weight: 400;\"> M\u1edf Command Prompt v\u00e0 c\u00e0i \u0111\u1eb7t l\u1ec7nh: <\/span>\n<pre><span style=\"font-weight: 400;\">composer --version<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t b\u1eb1ng Composer:<\/b><span style=\"font-weight: 400;\"> B\u1ea1n s\u1eed d\u1ee5ng Composer \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel tr\u00ean to\u00e0n h\u1ec7 th\u1ed1ng. \u0110\u1ec3 l\u00e0m nh\u01b0 v\u1eady, h\u00e3y m\u1edf Command Prompt v\u00e0 ch\u1ea1y l\u1ec7nh: <\/span>\n<pre><span style=\"font-weight: 400;\">composer create-project laravel\/laravel app-name<\/span><\/pre>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">L\u1ec7nh n\u00e0y s\u1ebd t\u1ef1 \u0111\u1ed9ng t\u1ea3i xu\u1ed1ng t\u1ea5t c\u1ea3 c\u00e1c t\u1ec7p Laravel c\u00f3 li\u00ean quan \u0111\u1ec3 t\u1ea1o m\u1ed9t d\u1ef1 \u00e1n m\u1edbi.\u00a0 X\u00e1c minh c\u00e0i \u0111\u1eb7t Laravel b\u1eb1ng c\u00e1ch v\u00e0o Command Prompt v\u00e0 ch\u1ea1y l\u1ec7nh <\/span><span style=\"font-weight: 400;\">laravel &#8211;version<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 v\u00e0 ch\u1ea1y d\u1ef1 \u00e1n<\/strong>: Khi d\u1ef1 \u00e1n \u1ee9ng d\u1ee5ng m\u1edbi \u0111\u01b0\u1ee3c t\u1ea1o, b\u1ea1n s\u1ebd c\u1ea7n kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7. \u0110\u1ec3 th\u1ef1c hi\u1ec7n vi\u1ec7c n\u00e0y, h\u00e3y nh\u1eadp th\u00f4ng tin sau:\u00a0<\/span><\/li>\n<\/ul>\n<pre><span style=\"font-weight: 400;\">cd app-name\u00a0<\/span>\r\n\r\n<span style=\"font-weight: 400;\">php artisan serve<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Khi m\u00e1y ch\u1ee7 \u0111\u00e3 kh\u1edfi \u0111\u1ed9ng, b\u1ea1n s\u1ebd c\u00f3 th\u1ec3 truy c\u1eadp d\u1ef1 \u00e1n \u1ee9ng d\u1ee5ng c\u1ee7a m\u00ecnh th\u00f4ng qua tr\u00ecnh duy\u1ec7t web. H\u00e3y m\u1edf tr\u00ecnh duy\u1ec7t v\u00e0 truy c\u1eadp v\u00e0o ph\u1ea7n sau: <\/span><a href=\"https:\/\/localhost:8000\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">https:\/\/localhost:8000<\/span><\/a><span style=\"font-weight: 400;\">, sau \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u ph\u00e1t tri\u1ec3n c\u00e1c \u1ee9ng d\u1ee5ng web b\u1eb1ng Laravel tr\u00ean m\u00e1y Windows.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Huong_dan_cai_dat_Laravel_tren_Linux\"><\/span><b>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel tr\u00ean Linux<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t m\u00e1y ch\u1ee7 web Apache:<\/b><span style=\"font-weight: 400;\"> Tr\u01b0\u1edbc ti\u00ean, h\u00e3y c\u00e0i \u0111\u1eb7t Apache b\u1eb1ng c\u00e1ch ch\u1ea1y c\u00e1c l\u1ec7nh sau trong Terminal: <\/span>\n<pre><span style=\"font-weight: 400;\">sudo apt update sudo apt install apache2<\/span><\/pre>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Sau khi c\u00e0i \u0111\u1eb7t, k\u00edch ho\u1ea1t d\u1ecbch v\u1ee5 Apache v\u00e0 kh\u1edfi \u0111\u1ed9ng b\u1eb1ng l\u1ec7nh:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">sudo systemctl enable apache2 sudo systemctl start apache2<\/span><\/pre>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t PHP:<\/b><span style=\"font-weight: 400;\"> S\u1eed d\u1ee5ng l\u1ec7nh sau trong Terminal:<\/span>\n<pre><span style=\"font-weight: 400;\">udo apt install php libapache2-mod-php php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip php-bcmath php-tokenizer php-json php-pear<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t MariaDB:<\/b><span style=\"font-weight: 400;\"> MariaDB l\u00e0 m\u1ed9t h\u1ec7 th\u1ed1ng qu\u1ea3n l\u00fd c\u01a1 s\u1edf d\u1eef li\u1ec7u quan h\u1ec7 ngu\u1ed3n m\u1edf. C\u00e0i \u0111\u1eb7t MariaDB b\u1eb1ng c\u00e1ch ch\u1ea1y l\u1ec7nh sau: <\/span>\n<pre><span style=\"font-weight: 400;\">sudo apt install mariadb-server<\/span><\/pre>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Sau khi c\u00e0i \u0111\u1eb7t, h\u00e3y b\u1ea3o m\u1eadt c\u00e0i \u0111\u1eb7t MariaDB c\u1ee7a b\u1ea1n b\u1eb1ng c\u00e1ch ch\u1ea1y:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">sudo mysql_secure_installation<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">L\u00e0m theo h\u01b0\u1edbng d\u1eabn tr\u00ean m\u00e0n h\u00ecnh \u0111\u1ec3 thi\u1ebft l\u1eadp m\u1eadt kh\u1ea9u g\u1ed1c v\u00e0 c\u00e1c c\u00e0i \u0111\u1eb7t b\u1ea3o m\u1eadt kh\u00e1c.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t Composer:<\/b><span style=\"font-weight: 400;\"> T\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t Composer b\u1eb1ng c\u00e1ch th\u1ef1c hi\u1ec7n c\u00e1c l\u1ec7nh sau trong Terminal:<\/span><\/li>\n<\/ul>\n<pre><span style=\"font-weight: 400;\">curl -sS https:\/\/getcomposer.org\/installer | php<\/span>\r\n\r\n<span style=\"font-weight: 400;\">sudo mv composer.phar<\/span>\r\n\r\n<span style=\"font-weight: 400;\">sudo chmod +x \/usr\/local\/bin\/composer<\/span><\/pre>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<pre><\/pre>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"font-weight: 400;\"><b>X\u00e1c minh c\u00e0i \u0111\u1eb7t PHP, MariaDB v\u00e0 Composer:<\/b> \u0110\u1ea3m b\u1ea3o r\u1eb1ng PHP, MariaDB v\u00e0 Composer \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t ch\u00ednh x\u00e1c b\u1eb1ng c\u00e1ch ki\u1ec3m tra phi\u00ean b\u1ea3n c\u1ee7a ch\u00fang b\u1eb1ng c\u00e1c l\u1ec7nh sau: <\/span>\n<pre><span style=\"font-weight: 400;\">php -v mysql --version composer -V<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>C\u00e0i \u0111\u1eb7t b\u1eb1ng Composer:<\/b><span style=\"font-weight: 400;\"> Ch\u1ea1y l\u1ec7nh sau trong Terminal: <\/span>\n<pre><span style=\"font-weight: 400;\">composer create-project --prefer-dist laravel\/laravel app-name<\/span><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li aria-level=\"1\"><b>Ch\u1ea1y m\u00e1y ch\u1ee7 Laravel: <\/b><span style=\"font-weight: 400;\">\u0110\u1ec3 kh\u1edfi ch\u1ea1y m\u00e1y ch\u1ee7 ph\u00e1t tri\u1ec3n cho d\u1ef1 \u00e1n, h\u00e3y v\u00e0o th\u01b0 m\u1ee5c d\u1ef1 \u00e1n v\u00e0 ch\u1ea1y l\u1ec7nh \u0111\u00e3 ch\u1ec9 \u0111\u1ecbnh: <\/span>\n<pre><span style=\"font-weight: 400;\">php artisan serve<\/span><\/pre>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 truy c\u1eadp \u1ee9ng d\u1ee5ng Laravel c\u1ee7a b\u1ea1n, h\u00e3y ch\u1ea1y l\u1ec7nh n\u00e0y \u0111\u1ec3 kh\u1edfi ch\u1ea1y m\u00e1y ch\u1ee7 ph\u00e1t tri\u1ec3n c\u1ee5c b\u1ed9 tr\u00ean c\u1ed5ng 8000. Sau \u0111\u00f3, m\u1edf tr\u00ecnh duy\u1ec7t web c\u1ee7a b\u1ea1n v\u00e0 \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn: http:\/\/127.0.0.1:8000<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Cau_hoi_thuong_gap_ve_cai_dat_Laravel\"><\/span><b> C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 c\u00e0i \u0111\u1eb7t Laravel<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><b> L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Laravel?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">S\u1eed d\u1ee5ng l\u1ec7nh sau<\/span><span style=\"font-weight: 400;\">\u00a0\u0111<\/span><span style=\"font-weight: 400;\">\u1ec3 t\u1ea1o project Laravel m\u1edbi v\u1edbi t\u00ean project-name trong th\u01b0 m\u1ee5c hi\u1ec7n t\u1ea1i:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">composer create-project laravel\/laravel project-name<\/span><\/pre>\n<h3><b> L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 c\u00e0i \u0111\u1eb7t phi\u00ean b\u1ea3n Laravel m\u1edbi nh\u1ea5t?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">B\u1ea1n s\u1eed d\u1ee5ng l\u1ec7nh c\u00e0i \u0111\u1eb7t sau:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">composer create-project laravel\/laravel=\"x\"<\/span>\r\n\r\n<span style=\"font-weight: 400;\">(trong \u0111\u00f3, x l\u00e0 phi\u00ean b\u1ea3n b\u1ea1n mu\u1ed1n c\u00e0i \u0111\u1eb7t).<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">V\u00ed d\u1ee5, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t Laravel 11 th\u00ec d\u00f9ng l\u1ec7nh:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">composer create-project laravel\/laravel=\"11\"<\/span><\/pre>\n<h3><b> Ch\u1ea1y Laravel nh\u01b0 th\u1ebf n\u00e0o?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">\u0110\u1ec3 ch\u1ea1y laravel, c\u1ea7n ph\u1ea3i v\u1eeba t\u1ea1o th\u01b0 m\u1ee5c v\u1eeba c\u00e0i \u0111\u1eb7t laravel v\u00e0 ch\u1ea1y c\u00e2u l\u1ec7nh:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">php artisan serve<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">Tuy nhi\u00ean, c\u00e1ch ch\u1ea1y n\u00e0y ch\u1ec9 d\u00f9ng trong qu\u00e1 tr\u00ecnh ph\u00e1t tri\u1ec3n, ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c Developer. Trong tr\u01b0\u1eddng h\u1ee3p ch\u1ea1y tr\u00ean production th\u00ec c\u00e1c b\u1ea1n ph\u1ea3i c\u00e0i th\u00eam c\u00e1c web server nh\u01b0 nginx, apache,.. \u0111\u1ec3 ch\u1ea1y.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Tong_ket\"><\/span><b>T\u1ed5ng k\u1ebft<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Trong b\u00e0i vi\u1ebft n\u00e0y, ITviec \u0111\u00e3 \u0111\u1ec1 c\u1eadp \u0111\u1ebfn qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t Laravel tr\u00ean Windows, macOS v\u00e0 Linux. V\u1edbi nh\u1eefng t\u00ednh n\u0103ng m\u1edbi b\u1ed5 sung v\u00e0 c\u1ea3i ti\u1ebfn c\u1ee7a Laravel, sau khi c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh \u0111\u00e3 ch\u1ecdn, h\u00e3y b\u1eaft \u0111\u1ea7u x\u00e2y d\u1ef1ng c\u00e1c \u1ee9ng d\u1ee5ng web m\u1ea1nh m\u1ebd v\u00e0 \u0111\u1eb9p m\u1eaft b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng framework PHP ph\u1ed5 bi\u1ebfn n\u00e0y.<\/span><\/p>\n<blockquote><p><em>\u0110\u1ecdc th\u00eam: <a href=\"https:\/\/itviec.com\/blog\/tai-lieu-hoc-laravel\/\" target=\"_blank\" rel=\"noopener\"><strong>Top 18 t\u00e0i nguy\u00ean h\u1ecdc Laravel hay nh\u1ea5t n\u0103m 2024<\/strong><\/a><\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Laravel l\u00e0 m\u1ed9t framework WebApp s\u1edf h\u1eefu c\u00fa ph\u00e1p tinh t\u1ebf, bi\u1ec3u c\u1ea3m.\u00a0Cho d\u00f9 b\u1ea1n l\u00e0 ng\u01b0\u1eddi m\u1edbi l\u00e0m quen v\u1edbi c\u00e1c framework web PHP hay \u0111\u00e3 c\u00f3 nhi\u1ec1u n\u0103m kinh nghi\u1ec7m, Laravel l\u00e0 m\u1ed9t framework c\u00f3 th\u1ec3 ph\u00e1t tri\u1ec3n c\u00f9ng v\u1edbi b\u1ea1n. B\u00e0i vi\u1ebft sau s\u1ebd gi\u00fap b\u1ea1n th\u1ef1c hi\u1ec7n nh\u1eefng b\u01b0\u1edbc tr\u1ea3i nghi\u1ec7m [&hellip;]<\/p>\n","protected":false},"author":205,"featured_media":74736,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_gspb_post_css":"","footnotes":""},"categories":[109,10105],"tags":[],"class_list":["post-74470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chuyen-mon-it","category-tai-lieu-php"],"blocksy_meta":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft - ITviec Blog<\/title>\n<meta name=\"description\" content=\"B\u00e0i vi\u1ebft t\u1ed5ng h\u1ee3p h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel chi ti\u1ebft, theo t\u1eebng b\u01b0\u1edbc v\u00e0 v\u1edbi t\u1eebng h\u1ec7 \u0111i\u1ec1u h\u00e0nh nh\u01b0 macOs, Linux hay Windows.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft\" \/>\n<meta property=\"og:description\" content=\"Laravel l\u00e0 m\u1ed9t framework WebApp s\u1edf h\u1eefu c\u00fa ph\u00e1p tinh t\u1ebf, bi\u1ec3u c\u1ea3m.\u00a0Cho d\u00f9 b\u1ea1n l\u00e0 ng\u01b0\u1eddi m\u1edbi l\u00e0m quen v\u1edbi c\u00e1c framework web PHP hay \u0111\u00e3 c\u00f3 nhi\u1ec1u n\u0103m kinh\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"ITviec Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ITviec\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-27T07:26:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"790\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"H\u00e0 My\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ITviec\" \/>\n<meta name=\"twitter:site\" content=\"@ITviec\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"H\u00e0 My\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 ph\u00fat\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft - ITviec Blog","description":"B\u00e0i vi\u1ebft t\u1ed5ng h\u1ee3p h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel chi ti\u1ebft, theo t\u1eebng b\u01b0\u1edbc v\u00e0 v\u1edbi t\u1eebng h\u1ec7 \u0111i\u1ec1u h\u00e0nh nh\u01b0 macOs, Linux hay Windows.","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:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/","og_locale":"vi_VN","og_type":"article","og_title":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft","og_description":"Laravel l\u00e0 m\u1ed9t framework WebApp s\u1edf h\u1eefu c\u00fa ph\u00e1p tinh t\u1ebf, bi\u1ec3u c\u1ea3m.\u00a0Cho d\u00f9 b\u1ea1n l\u00e0 ng\u01b0\u1eddi m\u1edbi l\u00e0m quen v\u1edbi c\u00e1c framework web PHP hay \u0111\u00e3 c\u00f3 nhi\u1ec1u n\u0103m kinh","og_url":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/","og_site_name":"ITviec Blog","article_publisher":"https:\/\/www.facebook.com\/ITviec","article_published_time":"2024-06-27T07:26:37+00:00","og_image":[{"width":1500,"height":790,"url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg","type":"image\/jpeg"}],"author":"H\u00e0 My","twitter_card":"summary_large_image","twitter_creator":"@ITviec","twitter_site":"@ITviec","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"H\u00e0 My","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"9 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#article","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/"},"author":{"name":"H\u00e0 My","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/7bd099db44e5079508c9b7e8c0161e3c"},"headline":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft","datePublished":"2024-06-27T07:26:37+00:00","mainEntityOfPage":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/"},"wordCount":2201,"publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"image":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg","articleSection":["Chuy\u00ean m\u00f4n IT","T\u00e0i li\u1ec7u PHP"],"inLanguage":"vi"},{"@type":"WebPage","@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/","url":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/","name":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft - ITviec Blog","isPartOf":{"@id":"https:\/\/itviec.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#primaryimage"},"image":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg","datePublished":"2024-06-27T07:26:37+00:00","description":"B\u00e0i vi\u1ebft t\u1ed5ng h\u1ee3p h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Laravel chi ti\u1ebft, theo t\u1eebng b\u01b0\u1edbc v\u00e0 v\u1edbi t\u1eebng h\u1ec7 \u0111i\u1ec1u h\u00e0nh nh\u01b0 macOs, Linux hay Windows.","breadcrumb":{"@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#primaryimage","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/06\/cai-dat-Laravel-thumbnail-vippro.jpg","width":1500,"height":790,"caption":"c\u00e0i \u0111\u1eb7t laravel - itviec blog"},{"@type":"BreadcrumbList","@id":"https:\/\/itviec.com\/blog\/huong-dan-cai-dat-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Chuy\u00ean m\u00f4n IT","item":"https:\/\/itviec.com\/blog\/chuyen-mon-it\/"},{"@type":"ListItem","position":2,"name":"C\u00e0i \u0111\u1eb7t Laravel m\u1edbi nh\u1ea5t v\u1edbi h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc chi ti\u1ebft"}]},{"@type":"WebSite","@id":"https:\/\/itviec.com\/blog\/#website","url":"https:\/\/itviec.com\/blog\/","name":"ITviec Blog","description":"IT Jobs &amp; People in Vietnam","publisher":{"@id":"https:\/\/itviec.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itviec.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/itviec.com\/blog\/#organization","name":"ITviec","url":"https:\/\/itviec.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2018\/12\/itviec-black-square-facebook.png","width":1800,"height":1800,"caption":"ITviec"},"image":{"@id":"https:\/\/itviec.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ITviec","https:\/\/x.com\/ITviec","https:\/\/www.linkedin.com\/company\/itviec","https:\/\/www.youtube.com\/channel\/UCYthAQ3bcGr57M_ag5gHDvQ"]},{"@type":"Person","@id":"https:\/\/itviec.com\/blog\/#\/schema\/person\/7bd099db44e5079508c9b7e8c0161e3c","name":"H\u00e0 My","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/ha-my-author-e1709882319892-100x100.jpeg","url":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/ha-my-author-e1709882319892-100x100.jpeg","contentUrl":"https:\/\/itviec.com\/blog\/wp-content\/uploads\/2024\/03\/ha-my-author-e1709882319892-100x100.jpeg","caption":"H\u00e0 My"},"url":"https:\/\/itviec.com\/blog\/author\/ha-my\/"}]}},"_links":{"self":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/74470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/comments?post=74470"}],"version-history":[{"count":0,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/posts\/74470\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media\/74736"}],"wp:attachment":[{"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/media?parent=74470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/categories?post=74470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itviec.com\/blog\/wp-json\/wp\/v2\/tags?post=74470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}