stackprogramer's avatar

stackprogramer wrote a reply+100 XP

4mos ago

Finally I defined some critical tables like users,sessions and... and i restore them(critical tables) in final step. This advice was helpful for me. Thanks very much.

stackprogramer's avatar

stackprogramer liked a comment+100 XP

4mos ago

make sure you are not trying to restore any tables that are in use, like users, sessions or jobs.

stackprogramer's avatar

stackprogramer liked a comment+100 XP

4mos ago

stackprogramer's avatar

stackprogramer wrote a reply+100 XP

4mos ago

@martinbean

Hi, I work on a custom CMS based on Laravel. I want to develop a package restore (alike duplicator Wordpress) for Laravel. Our restore package is GUI and easy to use for end users. Really my goal is reverse engineering duplicator wp for our custom CMS. In duplicator it had a chunk to chunk importing (files and database).

@tray2

Thanks, Rather we need create our custom package for Custom CMS. I checked it before. https://packagist.org/packages/spatie/laravel-backup

stackprogramer's avatar

stackprogramer wrote a reply+100 XP

4mos ago

Thanks, I am developing a custom CMS on based Laravel. I need a tool like duplicator Wordpress like it. I want to users can backup and restore all files and db at a glance. I can't ignore some table in this situation.

stackprogramer's avatar

stackprogramer wrote a reply+100 XP

4mos ago

Thanks, But I don't access shell exec on CPanel Host providers. I want to use a way without shell executing. This is important for us.

stackprogramer's avatar

stackprogramer started a new conversation+100 XP

4mos ago

I need a chunk restore method, because db and files are too big, files extracts successfully. but for db after ajax request time 2 and 3 we had error in provider....middlewares.... I added exception for restore method but it wasn't fixed.....

Error:

[2025-12-18 14:53:53] local.ERROR: Attempt to read property "headers" on null {"userId":1,"exception":"[object] (ErrorException(code: 0): Attempt to read property \"headers\" on null at /home/adam/public_html/local/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:191)
[stacktrace]

Solutio that i tested but not solved it.

<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
  /**
   * Indicates whether the XSRF-TOKEN cookie should be set on the response.
   *
   * @var bool
   */
  protected $addHttpCookie = true;
  /**
   * The URIs that should be excluded from CSRF verification.
   *
   * @var array
   */
  protected $except = [
    //
    '/restore', // or whatever your actual route path is
    'restore',   // Matches your /restore/ path
    'restore/*', // Matches any sub-paths if necessary
  ];
}

Restore method

stackprogramer's avatar

stackprogramer wrote a reply+100 XP

5mos ago

It's great. But it should be a section that employer can post jobs in Laracast. I think from activities in Laracast they can choose better than a individual resume! All the best, stackprogramer

stackprogramer's avatar

stackprogramer liked a comment+100 XP

5mos ago

There is one called Larajobs.

https://larajobs.com/

stackprogramer's avatar

stackprogramer started a new conversation+100 XP

5mos ago

Hi, Laracast is a great forum for asking and answering Laravel Questions. I think if it had a Job channel for discussing people(exact like other forums) it can help Laravel developers communicate easily. Do you think is it possible ? Thanks in advance.