I try through DB::statement(Storage::get('tmp/test.backup')); restore the postgresql dump, but I get this error:
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "1" LINE 316: 1 1 2 1 {"1":"\\u041f\\u0435\\u0440\\u043c\\u044c","2":"\\u0... ^ (SQL: -- -- PostgreSQL database dump -- lines in dump:
COPY blocks (id, "order", tab_id, type_id, content) FROM stdin; 1 1 2 1 {"1":"\\u041f\\u0435\\u0440\\u043c\\u044c","2":"\\u041e\\u043f\\u0438\\u0441\\u0430\\u043d\\u0438\\u0435 \\u043f\\u0435\\u0440\\u043c\\u0438","3":2015,"4":"tratatatata.png"} \. dumped with the command:
$process = new Process('pg_dump business_card_base --schema test > '.storage_path('app/tmp/').'test.backup'); laravel 5.1, Postgresql 9.3.9
what could be wrong?