{"id":13237,"date":"2023-08-08T12:06:42","date_gmt":"2023-08-08T11:06:42","guid":{"rendered":"https:\/\/sobberr.com\/web-tools\/?page_id=13237"},"modified":"2023-08-08T12:07:49","modified_gmt":"2023-08-08T11:07:49","slug":"wp2laravelmigrate","status":"publish","type":"page","link":"https:\/\/sobberr.com\/web-tools\/wp2laravelmigrate\/","title":{"rendered":"WP2LaravelMigrate"},"content":{"rendered":"\r\n<div class=\"wplc-container\">\r\n    \r\n    <h1>WordPress to Laravel Converter<\/h1>\r\n    <form id=\"uploadForm\">\r\n        <h2>Select the WordPress XML file to upload:<\/h2>\r\n        <label for=\"xmlFileInput\" class=\"custom-file-upload\">\r\n            <i class=\"fa fa-cloud-upload\"><\/i><input type=\"file\" id=\"xmlFileInput\" \/>\r\n        <\/label>\r\n\r\n        <span class=\"loading-spinner\">Converting...  <br><br> Please wait. Do not refresh, close, or go back. <br> <br> Your downloadable material will be ready at the end of the process. <\/span>\r\n        <button id=\"convertButton\" onclick=\"handleFileUpload(event)\">Convert and Download<\/button>\r\n        <p id=\"file_size_notice\"> Max file size: 1MB For files larger than that, please <a href=\"https:\/\/sobberr.com\/contact\" target=\"_blank\">contact us<\/a>.<\/p>\r\n    <\/form>\r\n    <span class=\"loading-spinner\">Converting...  <br><br> Please wait. Do not refresh, close, or go back. <br> <br> Your downloadable material will be ready at the end of the process. <\/span>\r\n\r\n    <!--<div id=\"conversionResult\" style=\"display: none;\">-->\r\n    <!--    <h2>Conversion Result<\/h2>-->\r\n    <!--    <p id=\"conversionMessage\"><\/p>-->\r\n    <!--    <a id=\"downloadLink\" style=\"display: none;\" href=\"#\" download=\"user_files.zip\">Download Generated Files<\/a>-->\r\n    <!--<\/div>-->\r\n    <div id=\"conversionResult\" style=\"display: none;\">\r\n    <h2>Conversion Result<\/h2>\r\n    <p id=\"conversionMessage\"><\/p>\r\n    <p id=\"linkExpirationNotice\" style=\"color: red;\">This download link will expire in one hour.<\/p>\r\n    <a id=\"downloadLink\" style=\"display: none;\" href=\"#\" download=\"user_files.zip\">Download Generated Files<\/a>\r\n<\/div>\r\n<\/div>\r\n<div class=\"instructions\">\r\n    <!--<h2>Instructions:<\/h2>-->\r\n    <p>1. The XML file should contain the exported pages from your WordPress site.<\/p>\r\n    <p>2. After conversion, Extract the zip file to get two folders: <strong>views<\/strong> and <strong>routes<\/strong>.<\/p>\r\n    <p>3. The <strong>views<\/strong> folder contains all your WordPress pages converted to Blade files (Laravel pages).<\/p>\r\n    <p>4. Copy the contents of the <strong>views<\/strong> folder and paste them inside your existing <code>\/resources\/views<\/code> directory.<\/p>\r\n    <p>5. The <strong>routes<\/strong> folder contains the <code>web.php<\/code> file with necessary routes for the new converted pages.<\/p>\r\n    <p>6. Copy the content of the generated <code>web.php<\/code> and paste it to the end of your existing <code>\/routes\/web.php<\/code> file.<\/p>\r\n    <p>7. Note that routing for the converted WordPress pages is static, simply calling the view, and no controllers are created. If you have some logic on a certain page that requires a controller, feel free to create it or <a href=\"https:\/\/sobberr.com\/contact\" target=\"_blank\">contact us<\/a>.<\/p>\r\n<\/div>\r\n\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-13237","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/pages\/13237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/comments?post=13237"}],"version-history":[{"count":3,"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/pages\/13237\/revisions"}],"predecessor-version":[{"id":13240,"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/pages\/13237\/revisions\/13240"}],"wp:attachment":[{"href":"https:\/\/sobberr.com\/web-tools\/wp-json\/wp\/v2\/media?parent=13237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}