by Garth | Jul 18, 2023 | Laravel Blog Posts
public function import_data(Request $request) { $success = true; try { DB::beginTransaction(); foreach ($request->array_or_object as $item) { $record_payload = [ “name” => $item->name, “surname” => $item->surname, ]; $record_id = $item->id ??...
by Garth | May 15, 2023 | Laravel Blog Posts
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Temporary failure in name resolution (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = ‘BASE TABLE’) The...
by Garth | May 9, 2023 | Laravel Blog Posts
Create Project Just use one. The are multiple as examples. composer create-project –prefer-dist laravel/laravel blog “11.*” composer create-project –prefer-dist laravel/laravel blog “10.*” composer create-project –prefer-dist...