{"id":1902,"date":"2025-08-19T05:39:41","date_gmt":"2025-08-19T05:39:41","guid":{"rendered":"https:\/\/documentation.iqonic.design\/handyman\/?p=1902"},"modified":"2025-08-19T06:15:22","modified_gmt":"2025-08-19T06:15:22","slug":"update-the-laravel-code","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/handyman\/update-the-laravel-code\/","title":{"rendered":"Update the Laravel code"},"content":{"rendered":"<div class=\"nolwrap\">\n<p><strong>1. Backup First <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Take a <strong>backup of your database<\/strong>.<\/li>\n\n\n\n<li>Backup important project files, especially:\n<ul class=\"wp-block-list\">\n<li><strong>.env<\/strong><\/li>\n\n\n\n<li><strong>storage\/<\/strong><\/li>\n\n\n\n<li><strong>public\/storage\/<\/strong><\/li>\n\n\n\n<li>Any <strong>custom changes<\/strong> you made.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>2. Upload New Code <\/strong><\/p>\n\n\n\n<p>Extract the new update package on your local system.<\/p>\n\n\n\n<p>Replace project files on the server, but <strong>do not replace<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>.env<\/strong> (contains your Database and App configurations).<\/li>\n\n\n\n<li><strong>storage\/<\/strong>(contains user uploads, logs, cache).<\/li>\n\n\n\n<li><strong>public\/storage\/<\/strong> or any custom folders.<\/li>\n<\/ul>\n\n\n\n<p><strong>3. Install Dependencies <\/strong><\/p>\n\n\n\n<p>Go to the project root folder and run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer install<\/code><\/pre>\n\n\n\n<p>\ud83d\udc49 This will install\/update the Laravel packages.<\/p>\n\n\n\n<p><strong>4. Run Migrations (if DB changes exist)<\/strong><br>If the update includes database changes, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<p><strong>5. Clear &amp; Rebuild Cache <\/strong><br>Run these commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan config:clear\nphp artisan cache:clear\nphp artisan route:clear\nphp artisan view:clear\nphp artisan config:cache<\/code><\/pre>\n\n\n\n<p>\ud83d\udc49 This will clear the old cache and rebuild a new one.<\/p>\n\n\n\n<p><strong>6. Set Permissions (Linux Server \u0aaa\u0ab0)<\/strong><br>Make sure the following folders are <strong>writable<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod -R 775 storage bootstrap\/cache<\/code><\/pre>\n\n\n\n<p><strong>7. Check Version in Admin Panel <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>After updating, login to the Admin Panel.<\/li>\n\n\n\n<li>Go to <strong>Settings \u2192 System Info<\/strong>.<\/li>\n\n\n\n<li>Confirm if the new version is showing.<\/li>\n<\/ul>\n\n\n\n<p>\u2705 Following these steps will help you update your Laravel project successfully.<\/p>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>1. Backup First 2. Upload New Code Extract the new update package on your local system. Replace project files on the server, but do not replace: 3. Install Dependencies Go to the project root folder and run: \ud83d\udc49 This will install\/update the Laravel packages. 4. Run Migrations (if DB changes exist)If the update includes database [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":120,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1902","post","type-post","status-publish","format-standard","hentry","category-handyman-services"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/handyman\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/1902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/comments?post=1902"}],"version-history":[{"count":4,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/1902\/revisions"}],"predecessor-version":[{"id":1908,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/1902\/revisions\/1908"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/posts\/120"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/media?parent=1902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/categories?post=1902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/handyman\/wp-json\/wp\/v2\/tags?post=1902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}